Hacker News new | past | comments | ask | show | jobs | submit login

some time ago i wanted to learn how to create a canvas games, so i started with http://www.html5rocks.com/en/tutorials/canvas/notearsgame/ and took it from there. now it's a little bit osmosis and asteroids, and it's unfinished and MIT. so please take it, fork it or just read the source. hope it's useful (and/or fun) for someone.



Just one comment, from what I've noticed(haven't checked the code to make sure), the size of spawned bubbles is a random function biased by your current size. While I think that's a good idea in general I think they should be overall smaller.

Right now, when you get to a certain size it just spawns 4~5 giant bubbles that fill almost all the screen and make it impossible to move without dying.


Thanks for providing your "source" -- when I wanted to write a boardgame in Python, I followed much the same method, adapting a tic-tac-toe game demo.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: