forked from team-sg/hero-mark-2
added cfox code
This commit is contained in:
parent
ce964f5567
commit
aa7714066c
3 changed files with 16 additions and 4 deletions
|
@ -16,6 +16,7 @@ var n: int = 0
|
|||
var debug = false
|
||||
var allow_sword = false
|
||||
var moon_jump = false
|
||||
var cfox_mode = false
|
||||
# cheat code entry
|
||||
var entry_index = 0
|
||||
var entry = false
|
||||
|
@ -141,3 +142,5 @@ func _enter_code():
|
|||
Game.get_map().get_node("Player").sprite.material.set_shader_param("border_color",Color.blue)
|
||||
"BEESKNEES":
|
||||
Game.get_map().rotation_degrees = -2
|
||||
"CFOX":
|
||||
cfox_mode = true
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -104,6 +104,10 @@ func _physics_process(delta):
|
|||
move_and_slide(velocity,Vector2.UP)
|
||||
#Moon Jump
|
||||
if Debug.moon_jump == true: can_doublejump = true
|
||||
#2011
|
||||
if Debug.cfox_mode == true:
|
||||
anims.play("idle")
|
||||
anims.set_speed_scale(0)
|
||||
|
||||
func _process_idle():
|
||||
if anims.get_current_animation() != "idle": anims.play("idle")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue