Strawberry Alert: Day 1
Today I have started working on the Week of Awesome V challenge. The working title for the project is Strawberry Alert. I generated it randomly and it is very unlikely to change due to time constraints.
The themes I want to try are Alien invasion and Castles. My intention is to create a side scroller where the hero must defend her castle from an alien invasion.
With this project I want to explore whether functional reactive programming can be successfully used in games. I intend to capture the user input and time effects into streams, apply map-reduce to these streams to generate the game state, and finally render that game state to the screen.
I will be happy if I can deliver something playable by the end of the week. Unfortunately, this week I'm back to work after vacation and I've got a few social commitments that I must honour, so I expect to be able to dedicate only about twelve hours more to the project.
So far, I have managed to put together a parallax background and the walking animation for the hero sprite.
I am using a hero sprite and castle tiles created by Jetrel. I still need to find sprites for the alien enemies.
- pixi.js: a rendering library for WebGL and Canvas.
- cyclejs: a functional reactive framework.
- xstream: a stream library designed to work well with cyclejs.
The code is available on GitHub and, since it is a browser game, I will deploy my daily progress so that you guys can try it out.