Skip to content

Commit

Permalink
aggh got the hold anim to play, now I just need them to connect
Browse files Browse the repository at this point in the history
  • Loading branch information
yophlox committed Oct 28, 2024
1 parent 46161f4 commit de1e3a7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
8 changes: 4 additions & 4 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

## v1.0.0 RELEASE

- Get hold notes to work. (Might ask a friend to help me with this.)
- [x] Get hold notes to work. (Thanks Joalor64GH!)

- Improve the UI. (Aghh anyone know a UI designer?...)
- [ ] Improve the UI. (Aghh anyone know a UI designer?...)

- Improve the Song Downloader.
- [ ] Improve the Song Downloader.

- Improve the Chart Editor.
- [ ] Improve the Chart Editor.
3 changes: 3 additions & 0 deletions source/game/Note.hx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class Note extends FlxSprite {

public var offsets = [0, 0];

public var isEndNote:Bool = false;
public var nextNote:Note = null;

public function new(x, y, direction:Int = 0, ?strum:Float, ?noteskin:String = 'default', ?isSustainNote:Bool = false, ?keyCount:Int = 4) {
super(x, y);

Expand Down
11 changes: 11 additions & 0 deletions source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,17 @@ class PlayState extends SwagState {

var sustainNote:Note = new Note(strum.x, strum.y, daNoteData, daStrumTime + (Conductor.stepCrochet * susNote) + Conductor.stepCrochet, Options.getNoteskins()[Options.getData("ui-skin")], true, keyCount);
sustainNote.scrollFactor.set();
sustainNote.lastNote = oldNote;
sustainNote.isSustainNote = true;

if (susNote == Math.floor(susLength) - 1) {
sustainNote.isEndNote = true;
sustainNote.playAnim('holdend');
} else {
sustainNote.playAnim('hold');
}

oldNote.nextNote = sustainNote;
spawnNotes.push(sustainNote);
}
}
Expand Down

0 comments on commit de1e3a7

Please sign in to comment.