raimohanska / worzone

Game programming experiment with Bacon.js (no more RxJs)

Home Page:https://raimohanska.github.io/worzone/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Game programming experiment with Bacon.js (no more RxJs)

https://raimohanska.github.io/worzone/


Languages

Language:JavaScript 99.4%Language:HTML 0.6%