forked from team-sg/hero-mark-2
commit of blade's bane
This commit is contained in:
parent
7c94312749
commit
133ee9a326
2 changed files with 5 additions and 1 deletions
|
@ -116,7 +116,7 @@ func _process_idle_walk():
|
||||||
#Goto Jump
|
#Goto Jump
|
||||||
check_jump()
|
check_jump()
|
||||||
#Goto Sword
|
#Goto Sword
|
||||||
if Input.is_action_just_pressed("sword"):
|
if Debug.allow_sword && Input.is_action_just_pressed("sword"):
|
||||||
Game.play_sound(Game.a_sword,Game.ac_jump)
|
Game.play_sound(Game.a_sword,Game.ac_jump)
|
||||||
current_state = State.SWORD
|
current_state = State.SWORD
|
||||||
return
|
return
|
||||||
|
|
|
@ -14,6 +14,7 @@ var lines: int = 0
|
||||||
var time: float = 0.0
|
var time: float = 0.0
|
||||||
var n: int = 0
|
var n: int = 0
|
||||||
var debug = false
|
var debug = false
|
||||||
|
var allow_sword = false
|
||||||
|
|
||||||
# cheat code entry
|
# cheat code entry
|
||||||
var entry_index = 0
|
var entry_index = 0
|
||||||
|
@ -116,3 +117,6 @@ func _enter_code():
|
||||||
debug = true
|
debug = true
|
||||||
"6DOUBLOONS":
|
"6DOUBLOONS":
|
||||||
Debug.print(get_tree().get_nodes_in_group("gold").size())
|
Debug.print(get_tree().get_nodes_in_group("gold").size())
|
||||||
|
"EVILSBANE":
|
||||||
|
allow_sword = true
|
||||||
|
Input.action_press("sword")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue