forked from team-sg/hero-mark-2
changed level data
This commit is contained in:
parent
9e24f35c03
commit
71880a48d8
9 changed files with 166 additions and 15 deletions
|
@ -40,7 +40,7 @@ script = ExtResource( 1 )
|
|||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
material = SubResource( 1 )
|
||||
frames = SubResource( 5 )
|
||||
frame = 3
|
||||
frame = 2
|
||||
playing = true
|
||||
centered = false
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ func _ready():
|
|||
#Label
|
||||
label.visible = true
|
||||
label.set_text(str(cost))
|
||||
label.rect_position.y = scale.y / 2
|
||||
label.rect_position.y = scale.y / 2 + label_offset.y
|
||||
|
||||
func _physics_process(delta):
|
||||
#Open
|
||||
|
|
|
@ -156,9 +156,9 @@ func _process_climb():
|
|||
if axis.y == -1:
|
||||
#Auto Jump
|
||||
velocity.y = -jump_force
|
||||
Game.ac_climb.set_stream(null)
|
||||
Game.play_sound(Game.a_jump,Game.ac_jump)
|
||||
#Auto dismount
|
||||
Game.ac_climb.set_stream(null)
|
||||
current_state = State.FALL
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue