I'm back from about 2 months without programming, had a lot of exams in the meantime, sorry 'bout that.

To get back in to the groove I thought of making a Simon Says game (the one where you have to click on the colors in the right order every round and each round one step gets added)

Doesn't seem too hard. It would be nice to be able to use the cursor, but although Chili once told someone it on the forum, I must've forgotten. So I'll stick with WASD for now.One thing I don't know how to do is the memory for the rounds every game, so I need an expandable "box", think they were called vectors, but again, I'm rusty. Accessing and manipulating it shouldn't be too hard, I hope.

But, this will probably be a hard project, since I had the same attitude when I made Pong .Anyways, I'm looking forward to programming again!

// Future Zedtho here. I was completely wrong, this would not be an easy project. Atleast, not the way I handled it.

Last edited by Zedtho on July 15th, 2017, 2:14 pm, edited 2 times in total.

Thanks yumtard for the link. zedtho, go to the wiki and search for mouse, and you will have all the info you need bro

As for how to accomplish your task, vector is great (I'll be covering it soon in the tutorials). I recommend having 1 vector store the answer, and then another vector to store the user input. When the user enters the correct number of inputs (or whatever other stopping condition you set), then you can just do answer == userInput to test for correctness.

Not absolutely sure about this, but it seems that you try to get user inputs with std::cin using the console and the console subsystem is not active in your project so you may not get any input from that.

You could switch it on or use other ways of handling user input for your game like chilis Keyboard class provides (up, down, left right to match these colors for example).

forgot to use chili's keyboard woops, will be in final patch obviously.I'm running into some errors when I run it in debug mode. As far as I know they aren't caused by std::cin (although I'll have to change that soon).

Last edited by Zedtho on July 15th, 2017, 2:16 pm, edited 1 time in total.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum