And so it begins…

So I made a simple program to switch states so that the game we are making can change from the menu to the game or any other such thing we might need. I mostly took the code from another program I had written earlier to save time and effort. Unfortunately I then wasted any time I saved on that when I could have gone, “I can do some more seeing as I have time on my hands.” I did not and now I feel bad for my team mates. So one of the first things I should do is get serious if I want to be anything really. As for the code itself it functions mostly by having a number of states that a manager program calls using a string(a word or sentence, in this case a name) held by each state. When the program is first started a specific state is always set, otherwise it would not work. Then the manager calls the state so that it can tell it what happens in that specific state, what to draw out and how to react to certain input. Then when the current state tells the manager it’s done the manager asks what state to go to next and the current state provides that information. It could probably be done in a better way and my explanation might not properly explain what it is. Here is a little picture of how the program looked when I tested if it worked.
StateManagerPic
That doesn’t tell anyone much about it at all now that I look at it, sorry. I suppose the main reason I copied much of the code was due to a lack of experience in coding as well as for the sake of saving time. This means that while I understand what it does I can’t really explain well. Some things for me to think about till next time is, work harder, work more and write the reflection about it earlier(to better help remember what it does). The code itself also still need some more work to make sure it integrates properly into the game but that should hopefully be relatively minor(that’s going to bite me in my rear end later) not to mention to get rid of the test code. All in all I’m currently the least productive of our team so in hopes of berating myself enough to get more motivated and do more(and to fill out space) I’ll repeat myself, sorry again. Work more! End of reflective blog post.