Since the Minikernel Developer's Guide has been completed, I now have a completed 2playerlives minikernel to share. This will display between 0 to 3 live icons for each player in the shape and color of the current player graphics for each player. This has only been tested with the standard kernel so far.
The variables p0lives and p1lives hold the number of lives for each player (between 0 and 3). These have already been defined for you, and don't require any extra variables.
A constant "lives_max_height" may optionally be set to limit the maximum height for the lives icons, e.g.:
Here is the minikernel, and simple demo game that makes use of it.
cannons.bas 5.28KB 9 downloads
2playerlives.asm 1.57KB 9 downloads