Skip to content

Commit

Permalink
Add more cheats
Browse files Browse the repository at this point in the history
davnotdev committed May 20, 2024
1 parent d49c1ce commit 9b807bf
Showing 3 changed files with 18 additions and 9 deletions.
8 changes: 7 additions & 1 deletion character_scripts/Player.gd
Original file line number Diff line number Diff line change
@@ -176,7 +176,13 @@ func move():
#remove this before releasing the game
if Input.is_action_just_pressed("reroll"):
WeaponManager.reset()

if Input.is_action_just_pressed("next_level"):
await LevelTransition.fade_to_black(1)
Progression.next_level()
get_tree().change_scene_to_file("res://scenes/test_world.tscn")
LevelTransition.fade_from_black(1)
if Input.is_action_just_pressed("heal"):
set_health(player_max_health)

velocity = player_velocity.normalized() * movement_speed + bounce_velocity
bounce_velocity += Vector2.ONE * bounce_acceleration
10 changes: 10 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
@@ -119,6 +119,16 @@ shake={
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":81,"key_label":0,"unicode":113,"echo":false,"script":null)
]
}
next_level={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":47,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
heal={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":61,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}

[layer_names]

9 changes: 1 addition & 8 deletions scenes/slime.tscn

Large diffs are not rendered by default.

0 comments on commit 9b807bf

Please sign in to comment.