August 2011
2 posts
GameJS and a simple demo
I’m using this library called gamejs to abstract over the HTML5 canvas API. It’s an incomplete reimplementation of pygame, which is a very popular 2d graphics (among other things) package for Python, in Javascript. Here’s where I’m hosting a simple demo of my game code in action: http://rain-game-dev.s3-website-us-east-1.amazonaws.com/
Aug 18th
So no more flying players in my new game
I finally realized I could simply track when the player hit a horizontal surface and set a ‘onGround’ flag, and then turn that off when you jump. then each jump attempt checks the flag, if it’s not set it won’t let you jump. Obviously, I tried a much more complicated method first. So no more flying players in my new game! (at least unless I add jet pack or something)
Aug 18th