mirror of
https://github.com/HarmonyHoney/ROTA.git
synced 2026-07-17 16:46:17 +00:00
Upgrade to 3.5.2 + NPC in 3A/0, BG.gd posmod()
This commit is contained in:
parent
76784bbfaf
commit
a91de0702f
2 changed files with 15 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ func _ready():
|
|||
self.colors = 0
|
||||
|
||||
func set_colors(arg := 0):
|
||||
colors = clamp(arg, 0, (palette.size() / 2) - 1)
|
||||
colors = posmod(arg, palette.size() / 2)
|
||||
#print("BG: ", colors, " pal: ", palette.size(), " / 2 = ", palette.size() / 2)
|
||||
if mat:
|
||||
mat.set_shader_param("col1", palette[colors * 2])
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=15 format=2]
|
||||
[gd_scene load_steps=16 format=2]
|
||||
|
||||
[ext_resource path="res://src/detail/Tree.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://src/detail/Lamppost.tscn" type="PackedScene" id=2]
|
||||
|
|
@ -14,6 +14,7 @@
|
|||
[ext_resource path="res://src/detail/FlowerPetals.tscn" type="PackedScene" id=12]
|
||||
[ext_resource path="res://src/detail/RockSquare.tscn" type="PackedScene" id=13]
|
||||
[ext_resource path="res://src/detail/RockCircle.tscn" type="PackedScene" id=14]
|
||||
[ext_resource path="res://src/actor/NPC.tscn" type="PackedScene" id=15]
|
||||
|
||||
[node name="Map" type="Node2D"]
|
||||
|
||||
|
|
@ -62,6 +63,18 @@ scene_path = "res://src/map/worlds/3A/5.tscn"
|
|||
position = Vector2( 2050, 250 )
|
||||
scene_path = "res://src/map/worlds/3A/6.tscn"
|
||||
|
||||
[node name="NPC" parent="Actors" instance=ExtResource( 15 )]
|
||||
position = Vector2( 1650, 475 )
|
||||
dir = 3
|
||||
dye = {
|
||||
"eye": 2,
|
||||
"fit": 2,
|
||||
"hair": 1,
|
||||
"skin": 0
|
||||
}
|
||||
hairstyle_back = 3
|
||||
hairstyle_front = 4
|
||||
|
||||
[node name="Details" type="Node2D" parent="."]
|
||||
|
||||
[node name="Rocks" type="Node2D" parent="Details"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue