BLINKENmini games
-----------------

bmgames is a set of simple games for BLINKENmini. If you do not know what BLINKENmini is take a look at http://blinkenmini.1stein.no-ip.com/.



Life (game)
-----------

Conway's Game Of Life. You can move the cursor, place some stones and run the game with the rules:
A stone survives, if it has got 2 or 3 neghbours.
A stone is born on a free field, if it has got 3 neighbours.

Select: calculate next step
Start: start / stop game
Left, Right, Up, Down: move cursor
B: remove stone
Y: create stone
(only controller 0 is used)



Pong (game)
-----------

A ball bounces in a box. The players have to bounce the ball. If a player misses the ball, it loses.

Select: join / leave game
Left, Right: move top / bottom player
Up, Down: move left / right player



Snake (game)
------------

A snake moves around the screen and eates mice. If it eats one it gets longer. The player has to ensure that the snake does not crash into its body or a wall (the edges of the display).

Left, Right, Up, Down: set direction of snake
(only controller 0 is used)



Tetris (game)
-------------

Some blocks falling down have to be arranged at the screen. Completely filled lines disappear.

Left, Right: move block
Down: drop block
B, Y: rotate block
(only controller 0 is used)



Tron (game)
-----------

Every player moves a pixel around the screen. Theese pixels leave a wall behind them when moving. If a player crashes into such a wall it loses.

Select: join a game / close finished game
Start: toggle ready-state (if all joined players are ready, the game starts)
Left, Right, Up, Down: change moving direction of pixel



Compiling
---------

Since you are reading this, you already unpacked the archive into a directory. So you should be able to compile:

  make

This should create a file named bmgames.



Using with bmdrv
----------------

Just type:

  ./bmgames /dev/bmdrv.out /dev/bmdrv.in <game>

Then you should see some status messages on the console and the game starting on the BLINKENmini hardware.



Using with bmsim
----------------

Just type:

  ./bmgames <path-to-bmsim>/bmsim.out <path-to-bmsim>/bmsim.in <game>

Then you should see some status messages on the console and the game starting on the console where bmsim is running.

