Jump to content

Photo

2playerlives Minikernel


2 replies to this topic

#1 Karl G OFFLINE  

Karl G

    Dragonstomper

  • 561 posts

Posted Sat Nov 3, 2018 7:12 AM

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.:

    const lives_max_height=8

Here is the minikernel, and simple demo game that makes use of it.

 

cannons.bas_15.png

 

Attached File  cannons.bas   5.28KB   9 downloads

 

2playerlives 0.1:

 

Attached File  2playerlives.asm   1.57KB   8 downloads



#2 Lewis2907 OFFLINE  

Lewis2907

    Moonsweeper

  • 286 posts
  • Location:Senatobia, MS

Posted Mon Nov 5, 2018 6:56 PM

I maybe asking a lot, but is it possible to have one player or two player and 32?. The other request is DPC 1 player. I could use this as I plan to revisit the game I was working on. Thanks if you are able to make the .asm files.



#3 Karl G OFFLINE  

Karl G

    Dragonstomper

  • Topic Starter
  • 561 posts

Posted Mon Nov 5, 2018 9:33 PM

The 6lives minikernel bundled with bB should cover any one player scenarios. In theory this minikernel could be used for one player by setting the other lives variable to zero, but I don't really see an advantage to that over using the 6lives minikernel. I don't know what you mean by "32" here.

I don't know how to make my minikernel compatible with the DPC+ kernel due to the player data being stored differently. I'm thinking that getting the 6lives minikernel working would be easier depending on what you are trying to do. I'll help if I can.




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users