cfox cheat works now (fixes #187)
This commit is contained in:
parent
17aabe2eb9
commit
876dabddda
3 changed files with 22 additions and 10 deletions
|
@ -61,12 +61,14 @@ onready var oxygen_timer = $OxygenTimer
|
|||
onready var low_oxygen_label = $"%LowOxygenLabel"
|
||||
onready var edge_detector = $Graphics/EdgeDetector
|
||||
onready var body_shape: CollisionShape2D = $"%BodyShape"
|
||||
onready var cfox: Sprite = $"%CFox"
|
||||
|
||||
# OVERRIDES #
|
||||
func _ready() -> void:
|
||||
#set palette
|
||||
var palette = load("res://graphics/player/palettes/%s.png" % Game.current_palette)
|
||||
sprite.material.set_shader_param("palette", palette)
|
||||
$Graphics/CFox.material.set_shader_param("palette", palette)
|
||||
# death handling
|
||||
Game.respawn_point = global_position
|
||||
connect("died", Game, "_on_player_died")
|
||||
|
@ -127,12 +129,6 @@ func _physics_process(delta: float) -> void:
|
|||
else:
|
||||
#NOT UNDERWATER
|
||||
low_oxygen_label.text = ""
|
||||
|
||||
#Cheats
|
||||
#CFox mode
|
||||
if Debug.cfox_mode == true:
|
||||
animation_player.play("idle")
|
||||
animation_player.set_speed_scale(0)
|
||||
|
||||
|
||||
# HELPER FUNCTIONS #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue