Hello all,
I'm sorry I have to post this oh so probably way too noobish question here. When you have problems though, you have problems. Basically, I have had to set aside my old Tetris clone thing because I was having issues with trying to solve how to store things and such (long story, probably just means I need more practice).
So, I decided I would start even more basic than that. Simon!! Everyone knows that right? (Link if you don't: http://en.wikipedia.org/wiki/Simon_%28game%29). Ok, I decided I would make a "class" to handle the playing surface, which is nothing more than 4 rectangles color coded to the four buttons on the Xbox gamepad. So, I managed that and here is what I did:
http://pastebin.com/f1793649c
Each of the squares created in that code is just a "dull" color. What I am stuck on is where to create the Intense colors for when the particular color is "playing" and where I should put the code creating a list and maintaining the order in which to play those notes. Well, I guess I should also say, how should I switch between, computer is playing colors, or computer is waiting for user input to see if it matches previous colors played? If that makes any sense...
I am putting this in Game Design because I can't decide, should I create another class that say handles "Hey my note (color) is playing)" and another class that handles switching between "Play the series of notes so far then switch to wait on the user".
This should be something so simple, and I am probably trying to overcomplicate it (trust me, I make small ordeals complicated). Any help or tips would be appreciated! I would just like to actually be able to finish something I am trying to do as far as XNA goes, instead of starting and getting side tracked on something else, which leads to another side track.....
Thanks,
Shawn
*Edit* - Maybe to make this a more general question, I guess I could just ask, what makes someone decide that "Hey, this would work better in a class by itself!". Reading all about things being too tightly coupled and such here lately has gotten me a bit confused maybe. But, storing the "hey im playing, not reading the controller right now" and switching over to "hey im waiting for your input", still confusing, and I guess that is state management....