Game programming experiment with Bacon.js (no more RxJs)
JavaScript
Latest commit c0a1e94 Mar 21, 2012 @raimohanska updated bacon.js

README.md

Worzone

This simple game, strongly inspired by the C64 classic Wizard Of Wor, is an experiment on using Reactive Functional Programming on a game. I did this first with RxJs (Reactive Extensions of Javascript) but lately I wrote my own FRP framework, bacon.js, and converted Worzone to use that instead.

See the online demo.

I have described the basic ideas in my blog posting Game Programming With RxJs.

The switch from RxJs to Bacon.js did not dramatically change the internal structure of the game, except for some simplification made possible by including stuff like Bus in the framework itself. Performance seems to be pretty much the same, too. Profiling with Chrome shows that most CPU time is wasted in Raphaël rendering, so maybe I (or you) should try replacing that with HTML canvas.