The game library provides support for moving the player and detecting collisions with baddies. The player is moved by using the keys that make up the joystick. In our game library they player is the piece under our control, it is represented by a Player object. Source for this library and ziip download are available on git hub: Parts of the game library Our player Getting the source codeīear in mind that this game library is currently pre BETA, I'm presently improving the documentation, code and diagrams. Options for writing games are limited on a 20x4 display, but we've managed to put a few games together. ![]() In addition we need collision detection to work out when a baddie has been caught or the game is over because the player was hit. 20x4 display (other size will work too)įor a simple game we need some baddies, a player (that we can move) and possibly the ability to fire.First, let's start by taking a look at the parts needed to use this library: There is quite a lot of stuff going on in this library, so I'd like to start slow and build up. Here we discuss a game library that provides an easy way to write games with 20x4 parallel display and a few micro-switches.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |