changed sg sprite to work better with palettes

This commit is contained in:
pennyrigate 2023-06-02 18:03:44 -04:00
parent 463b7952b1
commit a5f4c34236
34 changed files with 356 additions and 9 deletions

View file

@ -54,6 +54,9 @@ onready var pushable_detector: RayCast2D = $"%PushableDetector"
# 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)
# death handling
Game.respawn_point = global_position
connect("died", Game, "_on_player_died")