changed sg sprite to work better with palettes
This commit is contained in:
parent
463b7952b1
commit
a5f4c34236
34 changed files with 356 additions and 9 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue