Singe API for Scoreboards (USB and Bezel) #100
DirtBagXon
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Singe now has the ability to create Bezel Scoreboards, or use the Arduino USB Scoreboard, for player Scores, Lives and Credits.
The
typefor board styles are:0 -
IMAGE- Standard Dragon's Lair IMAGE Bezel Scoreboard1 -
BEZEL- An unlabelled, and re-positioned, version of the above for use with transparency and bezel backgrounds.2 -
USB- Use the Arduino USB Scoreboard. Use-usbscoreboardargument to configure hardware.3 -
PANEL- Use the Dragon's Lair external multi-screen Panel based Scoreboard. Only in-8bit_overlayGames
Game LUA will need to be adjusted to enable, and update, the scoreboard using the API calls above.
A basic example is as follows:
Enable
BEZELstyle scoreboard, including Player 2 elements:Then DIM the Player 2, six segment score display, by default, as we want to use it for auxiliary functions:
Set some global variables to ensure updates are only made on an event:
We then alter a
drawLives()function to draw only on updates to Player 1:Do the same with
drawScores()Bullet games can do something similar, we can
blinksomething on Player 2 Score panel and use the Lives panel for bullets:Note: Show constraint on blink intervals, as some displays may have issues.
Finally, update Credits whenever they are changed:
Runing Hypseus
hypseus, after 0db8c36, does not need any arguments to allow the Scoreboard API.However, you may wish to resize, or position, the bezel with the following arguments.
A background bezel can offer labellling to a transparent scoreboard bezel:
-bezelSee an demo of MadDog McCree running the
BEZELScoreboard via API calls, using the above examples:Call Arguments
scoreBezelEnable(true)- Enable/Disable the Bezel. (Boolean).scoreBezelClear()- Will clear all LEDs to the OFF state until next update.scoreBezelGetState()- will return boolean true/false if Bezel has been enabled.scoreBezelTwinScoreOn(true)- Will allow score/lives update to Player 2 panels. Otherwise the LEDs will show OFFPassing a score, or lives, value in the minus range to
scoreBezelScore()orscoreBezelLives()will give the following results.Beta Was this translation helpful? Give feedback.
All reactions