added moon jump cheat

This commit is contained in:
pennyrigate 2023-02-04 03:12:18 -05:00
parent 656087741d
commit abeac3504e
2 changed files with 5 additions and 1 deletions

View file

@ -90,6 +90,8 @@ func _physics_process(delta):
velocity.y = 0 velocity.y = 0
#Apply velocity #Apply velocity
move_and_slide(velocity,Vector2.UP) move_and_slide(velocity,Vector2.UP)
#Moon Jump
if Debug.moon_jump == true: can_doublejump = true
func _process_idle(): func _process_idle():
if anims.get_current_animation() != "idle": anims.play("idle") if anims.get_current_animation() != "idle": anims.play("idle")

View file

@ -15,7 +15,7 @@ var time: float = 0.0
var n: int = 0 var n: int = 0
var debug = false var debug = false
var allow_sword = false var allow_sword = false
var moon_jump = false
# cheat code entry # cheat code entry
var entry_index = 0 var entry_index = 0
var entry = false var entry = false
@ -120,3 +120,5 @@ func _enter_code():
"EVILSBANE": "EVILSBANE":
allow_sword = true allow_sword = true
Input.action_press("sword") Input.action_press("sword")
"REDFEATHER":
moon_jump = true