cfox cheat works now (fixes #187)

This commit is contained in:
pennyrigate 2023-10-08 21:43:13 -04:00
parent 17aabe2eb9
commit 876dabddda
3 changed files with 22 additions and 10 deletions

View file

@ -144,7 +144,9 @@ func _enter_code():
Game.get_map().rotation_degrees = -2
#doesnt work
"CFOX":
cfox_mode = true
var player = get_tree().get_nodes_in_group("player").pop_back()
player.sprite.visible = false
player.cfox.visible = true
"BANDANA":
infinite_arrows = true
"ESCARGOD":
@ -177,6 +179,7 @@ func _enter_code():
var texture = load("res://graphics/player/palettes/" + file_name)
# add step to the tween for that texture
tween.tween_property(player.sprite, "material:shader_param/palette", texture, 0.0)
tween.tween_property(player.cfox, "material:shader_param/palette", texture, 0.0)
tween.tween_interval(0.2)
file_name = dir.get_next()
dir.list_dir_end()