add bloody tankman song event
This commit is contained in:
committed by
Cameron Taylor
parent
7231b3f645
commit
63a8403e7b
+1
-1
Submodule assets updated: a00f6520ec...a609d87a47
@@ -15,6 +15,8 @@ import funkin.data.song.SongData.SongEventData;
|
||||
* "v": {
|
||||
* "char": 0,
|
||||
* "id": "bf-pixel",
|
||||
*
|
||||
* // Optional params:
|
||||
* "scale": 1.0,
|
||||
* "flipX": false,
|
||||
* "isPixel": false,
|
||||
@@ -53,8 +55,10 @@ class SetHealthIconSongEvent extends SongEvent
|
||||
switch (data?.value?.char ?? 0)
|
||||
{
|
||||
case 0:
|
||||
trace('Applying Player health icon via song event: ${healthIconData.id}');
|
||||
PlayState.instance.iconP1.configure(healthIconData);
|
||||
case 1:
|
||||
trace('Applying Opponent health icon via song event: ${healthIconData.id}');
|
||||
PlayState.instance.iconP2.configure(healthIconData);
|
||||
default:
|
||||
trace('[WARN] Unknown character index: ' + data.value.char);
|
||||
|
||||
Reference in New Issue
Block a user