Simon Says Game

The Partridge Family were neither partridges nor a family. Discuss.
User avatar
Zedtho
Posts: 189
Joined: February 14th, 2017, 7:32 pm

Re: Im back! Some questions...

Post by Zedtho » June 21st, 2017, 5:05 am

I don't have much experience with vectors, I think I'll go for an array with the size 100 or something.
Thanks for the answers though!

xu2201g
Posts: 33
Joined: April 19th, 2017, 12:49 pm
Location: Germany

Re: Im back! Some questions...

Post by xu2201g » June 21st, 2017, 2:53 pm

Its is worth to learn about those containers cause they re very comfortable when u take the time to understand how they are used properly.

I just wanted to show you how to solve problems by checking out documentations.

If u want to get the number of elements the vector is holding, you tried to get it with .size, which is almost correct. The thing is that its a function so even if it has 0 parameters you need to place those brackets () to tell the compiler hey thats a function here not just a variable.

So Input.size() should be placed there to get the number of elements. If u re not sure if it is a function or a member or something else you can look up that stuff in a documentation.

Like in here http://en.cppreference.com/w/cpp/container/vector/size. I like this site, you get all information you need usually and they provide some short examples as well.

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Im back! Some questions...

Post by albinopapa » June 21st, 2017, 7:19 pm

I prefer cplusplus.com, the layout is much easier on the eyes.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

User avatar
Zedtho
Posts: 189
Joined: February 14th, 2017, 7:32 pm

Re: Im back! Some questions...

Post by Zedtho » June 22nd, 2017, 4:40 am

I'll stick with vectors then, thanks a lot for the answers!

User avatar
Zedtho
Posts: 189
Joined: February 14th, 2017, 7:32 pm

Re: Im back! Some questions...

Post by Zedtho » June 24th, 2017, 4:44 pm

I might restart the whole thing and plan it out better, but I'll update the github. It's not finished yet, but I'm having some errors up to this point. Also, please tell me if I should restart :D
https://github.com/Zedtho/Simon-Says
(Updated the github)

User avatar
Zedtho
Posts: 189
Joined: February 14th, 2017, 7:32 pm

Re: Simon Says Game

Post by Zedtho » June 27th, 2017, 9:17 am

I wrote down pseudo-code before making the actual code after the restart and it seems to be going a lot better. There's a thing on the wiki that kind of messed me up though:
http://wiki.planetchili.net/index.php?t ... Framework)
Here it states that for the enter button to work you must use VK_ENTER , but that might've changed, because I can only use VK_RETURN now.
Last edited by Zedtho on June 27th, 2017, 9:24 am, edited 2 times in total.

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Simon Says Game

Post by albinopapa » June 27th, 2017, 9:27 am

Thanks for the info, it's been fixed to say VK_RETURN.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

User avatar
Zedtho
Posts: 189
Joined: February 14th, 2017, 7:32 pm

Re: Simon Says Game

Post by Zedtho » June 27th, 2017, 2:20 pm

Finished Simon Says, but it isn't working as planned... Still buggy


Also, now github wont take my game anymore either, because it has 100 or more files :(.
Image

User avatar
Yumtard
Posts: 575
Joined: January 19th, 2017, 10:28 pm
Location: Idiot from northern Europe

Re: Simon Says Game

Post by Yumtard » June 27th, 2017, 5:50 pm

Does your push get stuck saying "deltafying objects"?

In that case have you tried increasing the postbuffer?

https://stackoverflow.com/questions/688 ... ng-objects

This worked for me when I was working on spaceballs

User avatar
Zedtho
Posts: 189
Joined: February 14th, 2017, 7:32 pm

Re: Simon Says Game

Post by Zedtho » June 28th, 2017, 5:05 am

Nope, it starts out saying Im not allowed to upload it because it has 100 or more files. I'll try copy-pasting the code from this file to a new sln file and try again. Perhaps I screwed up something making it have a lot more files? Apart from that, 100 seems like a rather odd number to stop uploading. I'd think 128 or 64 files, but here it just looks like they want to screw me over
Last edited by Zedtho on July 15th, 2017, 2:19 pm, edited 1 time in total.

Post Reply