Saturday, August 27, 2011

Restricting Camera Movement & Invisible Generators

There isn't too much in this release.  I added a bounds check to the engine so that the camera won't leave the map.  I've also put in 3 ghost generators that run a script to pop ghosts into the map every 2, 4, and 5 seconds respectively.

Besides the restriction on the camera, there was some general cleanup and bug fixes in the code which aren't obvious at first glance.  For instance, the map was offset by 8 pixels (half of the block size of the map) due to some math errors on my part.

I want to give a big call out to the author of Orthello for a great product.  In addition to a very good framework that costs nothing to get started with, the support turn around time has been incredible.  I really am looking forward to the release of the professional edition of the tool and the later components as time goes on.

I'll continue plodding along on the game one day at a time.  I hope tomorrow to smooth out my movement a bit (anyone notice that diagonal movement is faster than vertical or horizontal movement?) and maybe add an arrow you can shoot.  We'll see what inspires me next.

You can find my "EnemyGenerator" script on the Free Stuff page of the blog.

As always, the demo can be found by clicking "read more" below.


0 comments:

Post a Comment