Wednesday, March 21, 2012

Recording input experiment

I've had this idea in my head to make a game where recording the input of the player is one of the key mechanics of the game. I haven't decided where I'm going to go elsewhere as far as gameplay, but I've seen a few games that have used this idea and they were all puzzle games. I think I'm going to try an implement it in some type of action game, but I haven't quite figured it out yet.

Anyways, the first thing I wanted to do was get started on figuring out how I would accomplish recording the players movements. I thought about it for some time (probably longer than I took to program it) and came up with the solution shown above. While there was a few ideas I came up with, I felt the best would be to just record the players input and re-simulate all of the actions. While this means that more processing power is going to be spent calculating collision and such when I start adding other elements to the game, I felt that since I'm going for a 2D game it wouldn't be too big of an issue. Doing it this way saves me from having to record the players position every frame, which will be a hefty memory savings in the long run. When I start adding in running, jumping, shooting, or whatever else, the way I set the system up is pretty flexible, so that process shouldn't be too painful. Check back soon for more updates as I continue to experiment with this idea.

No comments:

Post a Comment