So, we’ve decided to make a game. Not just any game though - it’s a game about a chicken with super space powers. It’s drawn with jawsjs with help from underscore.js.
The Javascript is also generated on the fly in Common Lisp because I hate javascript with all of my little black heart.
As a test, draw all of the sprites from the powerups sheet so we can confirm that they’re being cut correctly.
expanded javascript:
expands to:
Granted, this is just basic substitution and could be done with any reasonably adept editor with an expansion plugin. My next sub-project, however, is to insert the code to move ramdomly, and depending on the situation, attack the player, and I want that to be bound as closely to the individual enemy as possible. Then, later, I’m going to have to define levels in json (probably json) and then build a level around the player on demand. Oh, and then there’s the fact that powerups need to actually do something to the player. Plus, the lower level mechanics need to be easily tweakable until I get it just right.