Skip to content

Commit

Permalink
prettier/nicer feeling note hits (#483)
Browse files Browse the repository at this point in the history
* prettier/nicer feeling note hits

still not the best I can do, but its pretty good for something I worked on during class
changes a note hit animations for the track a tad to make them feel and look a little nicer

* Green Mario's track has hit anims to

* couple more edits

* idk what im doing anymore

* title fix (might need a second commit?)
  • Loading branch information
FBI-Donut authored May 4, 2022
1 parent 150e98c commit fdf9186
Show file tree
Hide file tree
Showing 3 changed files with 268 additions and 20 deletions.
10 changes: 9 additions & 1 deletion scenes/DDR/track/Track.gd
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ func set_tick(tick):
var note_tick = note["tick"]
if last_tick < note_tick and note_tick <= tick:
_set_pose(note["pose"])
match note["pose"]:
"up":
$Up/AnimationPlayer.play("hit")
"down":
$Down/AnimationPlayer.play("hit")
"left":
$Left/AnimationPlayer.play("hit")
"right":
$Right/AnimationPlayer.play("hit")
if last_tick + spawn_delay < note_tick and note_tick <= tick + spawn_delay:
_spawn_note(i, note["pose"], note_tick)
if last_tick < note_tick + max_hit_delta and note_tick + max_hit_delta <= tick:
Expand Down Expand Up @@ -68,7 +77,6 @@ func _spawn_note(index, pose, note_tick):
node.init_tick = note_tick - spawn_delay
node.target_tick = note_tick
node.target_pos = position.y
node.index = index

connect("set_tick", node, "set_tick")
add_child(node)
Expand Down
Loading

2 comments on commit fdf9186

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.