mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-23 23:33:55 +00:00
score on song
This commit is contained in:
parent
dcb69d2a61
commit
acc1382023
|
@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
### Added
|
### Added
|
||||||
- Music playing on the freeplay menu.
|
- Music playing on the freeplay menu.
|
||||||
- UI sounds on freeplay menu
|
- UI sounds on freeplay menu
|
||||||
|
- Score now shows mid-song.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Moved all the intro texts to its own txt file instead of being hardcoded, this allows for much easier customization. File is in the data folder, called "introText.txt", follow the format in there and you're probably good to go!
|
- Moved all the intro texts to its own txt file instead of being hardcoded, this allows for much easier customization. File is in the data folder, called "introText.txt", follow the format in there and you're probably good to go!
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -83,6 +83,7 @@ class PlayState extends MusicBeatState
|
||||||
|
|
||||||
var talking:Bool = true;
|
var talking:Bool = true;
|
||||||
var songScore:Int = 0;
|
var songScore:Int = 0;
|
||||||
|
var scoreTxt:FlxText;
|
||||||
|
|
||||||
public static var campaignScore:Int = 0;
|
public static var campaignScore:Int = 0;
|
||||||
|
|
||||||
|
@ -252,6 +253,11 @@ class PlayState extends MusicBeatState
|
||||||
// healthBar
|
// healthBar
|
||||||
add(healthBar);
|
add(healthBar);
|
||||||
|
|
||||||
|
scoreTxt = new FlxText(healthBarBG.x + healthBarBG.width - 190, healthBarBG.y + 30, 0, "", 20);
|
||||||
|
scoreTxt.setFormat("assets/fonts/vcr.ttf", 16, FlxColor.WHITE, RIGHT);
|
||||||
|
scoreTxt.scrollFactor.set();
|
||||||
|
add(scoreTxt);
|
||||||
|
|
||||||
healthHeads = new FlxSprite();
|
healthHeads = new FlxSprite();
|
||||||
var headTex = FlxAtlasFrames.fromSparrow(AssetPaths.healthHeads__png, AssetPaths.healthHeads__xml);
|
var headTex = FlxAtlasFrames.fromSparrow(AssetPaths.healthHeads__png, AssetPaths.healthHeads__xml);
|
||||||
healthHeads.frames = headTex;
|
healthHeads.frames = headTex;
|
||||||
|
@ -277,6 +283,7 @@ class PlayState extends MusicBeatState
|
||||||
healthBar.cameras = [camHUD];
|
healthBar.cameras = [camHUD];
|
||||||
healthBarBG.cameras = [camHUD];
|
healthBarBG.cameras = [camHUD];
|
||||||
healthHeads.cameras = [camHUD];
|
healthHeads.cameras = [camHUD];
|
||||||
|
scoreTxt.cameras = [camHUD];
|
||||||
doof.cameras = [camHUD];
|
doof.cameras = [camHUD];
|
||||||
|
|
||||||
// if (SONG.song == 'South')
|
// if (SONG.song == 'South')
|
||||||
|
@ -586,6 +593,8 @@ class PlayState extends MusicBeatState
|
||||||
{
|
{
|
||||||
super.update(elapsed);
|
super.update(elapsed);
|
||||||
|
|
||||||
|
scoreTxt.text = "Score:" + songScore;
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.ENTER && startedCountdown)
|
if (FlxG.keys.justPressed.ENTER && startedCountdown)
|
||||||
{
|
{
|
||||||
persistentUpdate = false;
|
persistentUpdate = false;
|
||||||
|
|
Loading…
Reference in a new issue