Thursday, January 16, 2014

Nick Wolf Post-Mortem

Working in javascript went well considering I had never used it before, it was fairly straightforward to pick up. Figuring out how to work the JSON text and loading it into my game went wrong because there where a lot of small technical aspects to loading the file that I had to learn how to do and it was frustrating. The biggest surprise was probably how much I enjoyed making the game, despite my slow progress. I am pretty pleased with it even though it is not very complex. The first few days I spent creating a JSON file and then figuring out how to load it. Then I spent time making enemies and creating the interaction of killing enemies and losing to enemies. I created powerups and the ability to fire projectiles. Then I spent time creating the new portion of the map, and figuring out how to create and infinite map. Then I created different types of enemies and figured out how to randomly generate them on the map. Lastly I did the scoring system and health bar, and allowed for adjustments in the animation when the stamina bar gets lower. If I redid the game I would change how I set the position of the rectangles in the game, currently their positions are set at the upper left corner of the rectangle instead of coding their position at the center or bottom of the rectangle. This means I have to make many small adjustments when checking for collision interactions, and it will probably make switching to sprites difficult.







1 comment:

  1. >If I redid the game I would change how I set the position of the rectangles in the game, currently their positions are set at the upper left corner of the rectangle instead of coding their position at the center or bottom of the rectangle. This means I have to make many small adjustments when checking for collision interactions, and it will probably make switching to sprites difficult.

    This sounds like something that can be handled programmatically, so long as you keep track of the rectangle's height and width. Let me know if you want to work through the math together.

    ReplyDelete