make arrows follow player's palette :)
This commit is contained in:
parent
f1ad9d5825
commit
7993b1d4e5
14 changed files with 94 additions and 13 deletions
|
@ -1,8 +1,14 @@
|
|||
extends Node2D
|
||||
|
||||
|
||||
export var value = 1
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
var palette = load("res://graphics/player/palettes/%s.tex" % Game.current_palette)
|
||||
$Sprite.material.set_shader_param("palette", palette)
|
||||
|
||||
|
||||
func _on_Area2D_body_entered(body: Node) -> void:
|
||||
#Collect
|
||||
if body.is_in_group("player"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue