Page 2 of 7

Re: Im back! Some questions...

Posted: June 21st, 2017, 5:05 am
by Zedtho
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!

Re: Im back! Some questions...

Posted: June 21st, 2017, 2:53 pm
by xu2201g
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.

Re: Im back! Some questions...

Posted: June 21st, 2017, 7:19 pm
by albinopapa
I prefer cplusplus.com, the layout is much easier on the eyes.

Re: Im back! Some questions...

Posted: June 22nd, 2017, 4:40 am
by Zedtho
I'll stick with vectors then, thanks a lot for the answers!

Re: Im back! Some questions...

Posted: June 24th, 2017, 4:44 pm
by Zedtho
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)

Re: Simon Says Game

Posted: June 27th, 2017, 9:17 am
by Zedtho
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.

Re: Simon Says Game

Posted: June 27th, 2017, 9:27 am
by albinopapa
Thanks for the info, it's been fixed to say VK_RETURN.

Re: Simon Says Game

Posted: June 27th, 2017, 2:20 pm
by Zedtho
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

Re: Simon Says Game

Posted: June 27th, 2017, 5:50 pm
by Yumtard
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

Re: Simon Says Game

Posted: June 28th, 2017, 5:05 am
by Zedtho
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