Skip to content

Commit

Permalink
Indie Game Lyon corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
geegaz committed Feb 20, 2022
1 parent 77cfa9a commit d5bf78c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Addons/SimpleNodes/MusicManager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ func change_music(new_music: String, crossfade_time: float = 0.0)->void:
_Tween.interpolate_property(
_Tracks[-1], "volume_db",
_Tracks[-1].volume_db, 0,
crossfade_time
crossfade_time,
Tween.TRANS_CUBIC, Tween.EASE_IN
)
_Tween.interpolate_property(
_Tracks[0], "volume_db",
_Tracks[0].volume_db, -80,
crossfade_time
crossfade_time,
Tween.TRANS_CUBIC, Tween.EASE_OUT
)
_Tween.start()
else:
Expand Down
2 changes: 1 addition & 1 deletion Scenes/Gameplay/Player.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ z_index = 1
texture = ExtResource( 10 )
hframes = 10
vframes = 9
frame = 4
frame = 3

[node name="Collider" type="CollisionShape2D" parent="."]
position = Vector2( 0, 1 )
Expand Down
2 changes: 1 addition & 1 deletion Scenes/Levels/Tutorial_1.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func _ready() -> void:

func _on_Tips_goto_next_offset(offset_id:int) -> void:
if offset_id == 0:
Global._Music.change_music(\"Part1_intro\", 0.0)
Global._Music.change_music(\"Part1_intro\", 0.2)
Global._Music.queue_music(\"Part1_loop\")
$AnimationPlayer.play(\"title_drop\",-1, 2.0)

Expand Down
4 changes: 4 additions & 0 deletions Scripts/UI/controls/ControlScreen.gd
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ func _process(delta):
# var vtrans = get_canvas_transform()
# return -vtrans.get_origin() / vtrans.get_scale()

func _input(event: InputEvent) -> void:
if event.is_action_pressed("retrieve"):
retrieve_all()

func reparent(node: Node2D, target: Node):
# Detach from old parent
var source = node.get_parent()
Expand Down
7 changes: 7 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@ jump={
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"unicode":0,"echo":false,"script":null)
]
}
retrieve={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777237,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":4,"pressure":0.0,"pressed":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":5,"pressure":0.0,"pressed":false,"script":null)
]
}

[layer_names]

Expand Down

0 comments on commit d5bf78c

Please sign in to comment.