forked from team-sg/hero-mark-2
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,4 +1,4 @@
|
|||
[gd_scene load_steps=27 format=2]
|
||||
[gd_scene load_steps=28 format=2]
|
||||
|
||||
[ext_resource path="res://shaders/ska_plane.gdshader" type="Shader" id=1]
|
||||
[ext_resource path="res://ui/theme.tres" type="Theme" id=2]
|
||||
|
@ -17,6 +17,7 @@
|
|||
[ext_resource path="res://menus/level_select_scholar.tscn" type="PackedScene" id=15]
|
||||
[ext_resource path="res://graphics/player/palettes/cosmological_redshift.png" type="Texture" id=16]
|
||||
[ext_resource path="res://graphics/player/palettes/gravitational_redshift.png" type="Texture" id=17]
|
||||
[ext_resource path="res://graphics/player/palettes/elaine.tex" type="Texture" id=18]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=1]
|
||||
shader = ExtResource( 1 )
|
||||
|
@ -32,7 +33,7 @@ shader_param/uv_transform = Transform2D( 0.5, -0.5, 0.5, 1, 0, 0 )
|
|||
shader = ExtResource( 4 )
|
||||
shader_param/border_color = Color( 0, 0, 0, 1 )
|
||||
shader_param/border_corners = true
|
||||
shader_param/palette = ExtResource( 7 )
|
||||
shader_param/palette = ExtResource( 18 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=5]
|
||||
atlas = ExtResource( 10 )
|
||||
|
|
|
@ -27,6 +27,8 @@ func _notification(what: int) -> void:
|
|||
|
||||
|
||||
func _ready() -> void:
|
||||
var palette = load("res://graphics/player/palettes/%s.tex" % Game.current_palette)
|
||||
$"%ArrowBonus".material.set_shader_param("palette", palette)
|
||||
#preload final score
|
||||
text_3d = Text3D.instance()
|
||||
text_3d.anim = "final score"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=19 format=2]
|
||||
[gd_scene load_steps=21 format=2]
|
||||
|
||||
[ext_resource path="res://shaders/wibble_wobble.gdshader" type="Shader" id=1]
|
||||
[ext_resource path="res://shaders/ska_plane.gdshader" type="Shader" id=2]
|
||||
|
@ -10,6 +10,8 @@
|
|||
[ext_resource path="res://graphics/hud/final_score.png" type="Texture" id=8]
|
||||
[ext_resource path="res://ui/2ndpuberty_outline.tres" type="Material" id=9]
|
||||
[ext_resource path="res://ui/theme.tres" type="Theme" id=10]
|
||||
[ext_resource path="res://shaders/recolor_border.shader" type="Shader" id=11]
|
||||
[ext_resource path="res://graphics/player/palettes/default.tex" type="Texture" id=12]
|
||||
[ext_resource path="res://menus/results.gd" type="Script" id=13]
|
||||
[ext_resource path="res://menus/results_icon.tscn" type="PackedScene" id=14]
|
||||
|
||||
|
@ -24,9 +26,10 @@ shader_param/cycle_alternation = Vector2( 2, 0 )
|
|||
shader_param/uv_transform = Transform2D( 1, 1, 0, 1, 0, 0 )
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=7]
|
||||
shader = ExtResource( 3 )
|
||||
shader = ExtResource( 11 )
|
||||
shader_param/border_color = Color( 0, 0, 0, 1 )
|
||||
shader_param/border_corners = false
|
||||
shader_param/palette = ExtResource( 12 )
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=8]
|
||||
shader = ExtResource( 3 )
|
||||
|
@ -470,6 +473,7 @@ theme = ExtResource( 10 )
|
|||
text = "+500"
|
||||
|
||||
[node name="ArrowBonus" type="Sprite" parent="ShardsAndBonuses/Bonuses"]
|
||||
unique_name_in_owner = true
|
||||
material = SubResource( 7 )
|
||||
position = Vector2( 24, 120 )
|
||||
rotation = -1.5708
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue