made script to recolor graphics representing sg (fixes #208)

This commit is contained in:
pennyrigate 2023-10-30 14:26:02 -04:00
parent 8b1ccd366f
commit b9aec6ac38
2 changed files with 9 additions and 2 deletions

5
scripts/sg_palette.gd Normal file
View file

@ -0,0 +1,5 @@
extends Node2D
func _ready():
var palette = load("res://graphics/player/palettes/%s.png" % Game.current_palette)
material.set_shader_param("palette", palette)