Simon Says Game
Re: Im back! Some questions...
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!
Thanks for the answers though!
Re: Im back! Some questions...
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.
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.
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Im back! Some questions...
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
Re: Im back! Some questions...
I'll stick with vectors then, thanks a lot for the answers!
Re: Im back! Some questions...
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
https://github.com/Zedtho/Simon-Says
(Updated the github)
https://github.com/Zedtho/Simon-Says
(Updated the github)
Re: Simon Says Game
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.
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.
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Simon Says Game
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
Re: Simon Says Game
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 .
Also, now github wont take my game anymore either, because it has 100 or more files .
Re: Simon Says Game
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
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
Re: Simon Says Game
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.