Score Entry
Basic Score mode with charachter selection for players at end of game
Scene Tree breadown
- ColorRect = Black background color
- SelectedChar
- Label = HI_SCORE_ENTRY
- CenterContainer = Shows selected char center screen
- ColorRect2 = used as red marker under a letter
Exports (ScoreEntry.cs)
- _includeZeroToNine
- _nameMaxLength
- _playerMessage _selectCharMargin = space when changing between chars with flippers _selectedChar
Overrides
_Ready
Sets IsPlayerEnteringScore to true quits the scene if no players or MoveNextPlayer
_Input
If scene is visible and IsPlayerEnteringScore then flippers and start button actions are watched to then be able to select letter.
Creating custom Score Entry scene"
- Filter Godot files by
ScoreEntry - Duplicate the
ScoreEntry.tscnand move to yourres://autoloaddirectory - Add the packed scene location, replacing any existing in the
res:autoload/Resources.tscn - Add the new scene into the
Game.tscnso it knows where your version is - Edit away without effecting the
addonsand script. You can take it further than cosmetic from here with a script.
Things you can try in the scene:
- Setting a theme on the top control
ScoreEntry, which will set all in the scene, provided you have made custom theme entries likeLabelthemes. - Changing the labels font and colors, sizes, outlines, shadows.
- If you change the size you can
Select Char Marginto adjust the distance between the characters.