Skip to content

Commit

Permalink
Added balloon sprite to game, though it doesnt do anything yet
Browse files Browse the repository at this point in the history
  • Loading branch information
villuna committed Feb 13, 2024
1 parent a784d57 commit dfbfc9a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/app/taiko_mode/note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@ impl VisualNote {
VisualNote::Roll { start, body }
}

NoteType::BalloonRoll(_, _) => Self::Note(Sprite::new(
get_texture("balloon.png"),
// The balloon texture is 300x100.
// the notehead is at [50, 50]
// so this is the offset we need to move the centre to the centre of the notehead
[100.0, 0.0, 0.0],
device,
true,
)),

_ => return None,
})
}
Expand Down

0 comments on commit dfbfc9a

Please sign in to comment.