Skip to content

Commit

Permalink
Idk make lock icon ig
Browse files Browse the repository at this point in the history
  • Loading branch information
poec987 committed Jun 25, 2024
1 parent b4332aa commit cb72b46
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export/
.vscode/
APIStuff.hx
APIStuff.hx
*.bat
Binary file modified assets/preload/images/iconGrid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions source/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class FreeplayState extends MusicBeatState
if (FlxG.save.data.beatSongs.contains(songName.toLowerCase()))
songs.push(new SongMetadata(songName, weekNum, songCharacter));
else
songs.push(new SongMetadata("LOCKED", 1, "monster"));
songs.push(new SongMetadata("LOCKED", 1, "lock"));
} else {
songs.push(new SongMetadata(songName, weekNum, songCharacter));
}
Expand All @@ -159,7 +159,7 @@ class FreeplayState extends MusicBeatState
if (FlxG.save.data.beatSongs.contains(songName.toLowerCase()))
return new SongMetadata(songName, weekNum, songCharacter);
else
return new SongMetadata("LOCKED", 1, "monster");
return new SongMetadata("LOCKED", 1, "lock");
}
return new SongMetadata(songName, weekNum, songCharacter);
}
Expand Down Expand Up @@ -286,6 +286,10 @@ class FreeplayState extends MusicBeatState
FlxG.switchState(new MainMenuState());
}

if (FlxG.keys.justPressed.ONE) { // Clear beat songs data key for testing purposes. (Also for exterminating your pesky memory leaks :3)
FlxG.save.data.beatSongs = [];
}

if (accepted)
{
try {
Expand Down
1 change: 1 addition & 0 deletions source/HealthIcon.hx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class HealthIcon extends FlxSprite
animation.add('dave', [26, 27], 0, false, isPlayer);
animation.add('impostor', [29, 30], 0, false, isPlayer);
animation.add('sonicexe', [31, 32], 0, false, isPlayer);
animation.add('lock', [33, 33], 0, false, isPlayer);
animation.play(char);
scrollFactor.set();
}
Expand Down
2 changes: 1 addition & 1 deletion vscode-project.hxml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#automatically generated do not edit
#@date Thu Jun 20 2024 15:36:17 GMT-0500 (Central Daylight Time)
#@date Tue Jun 25 2024 08:30:06 GMT-0500 (Central Daylight Time)
-cp c:\users\cam\appdata\local\temp\8e05707c7e067ab4e2ebd5dea47d22f51847e1bb

0 comments on commit cb72b46

Please sign in to comment.