forked from team-sg/hero-mark-2
palette textures! working with palettes will be a breezegit status!
This commit is contained in:
parent
7974ac26c4
commit
f1ad9d5825
10 changed files with 65 additions and 8 deletions
|
@ -60,7 +60,7 @@ func refresh():
|
|||
$"%DeathCounter".text = "%04d" % file.get_total_deaths()
|
||||
$"%TimeCounter".text = "%02d:%02d" % [file.play_time / 3600.0, fmod(file.play_time / 60.0, 60.0)]
|
||||
$"%Difficulty".text = Game.DIFFICULTY_NAMES[file.difficulty]
|
||||
var palette = load("res://graphics/player/palettes/%s.png" % file.palette)
|
||||
var palette = load("res://graphics/player/palettes/%s.tex" % file.palette)
|
||||
$"%Palette".material.set_shader_param("palette", palette)
|
||||
else:
|
||||
file = null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue