different colour slimes
This commit is contained in:
parent
90a94cb16a
commit
fb915405d6
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=22 format=3 uid="uid://3d51hjh2st8a"]
|
[gd_scene load_steps=23 format=3 uid="uid://3d51hjh2st8a"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://d2d4uv7o5gx5p" path="res://Level/World/screen_shader.tscn" id="1_huyen"]
|
[ext_resource type="PackedScene" uid="uid://d2d4uv7o5gx5p" path="res://Level/World/screen_shader.tscn" id="1_huyen"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b35w4hlh4n1jt" path="res://Level/World/world_environment.tscn" id="2_lerrn"]
|
[ext_resource type="PackedScene" uid="uid://b35w4hlh4n1jt" path="res://Level/World/world_environment.tscn" id="2_lerrn"]
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
[ext_resource type="PackedScene" uid="uid://bj8le45u845v3" path="res://Models/beach_decor/floatie.tscn" id="15_2v7p7"]
|
[ext_resource type="PackedScene" uid="uid://bj8le45u845v3" path="res://Models/beach_decor/floatie.tscn" id="15_2v7p7"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dhrnbubumgi5h" path="res://Models/buildings/buildingruined.tscn" id="15_6cbuu"]
|
[ext_resource type="PackedScene" uid="uid://dhrnbubumgi5h" path="res://Models/buildings/buildingruined.tscn" id="15_6cbuu"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dvpank15vkvtv" path="res://Models/beach_decor/parsol.tscn" id="21_dlhqg"]
|
[ext_resource type="PackedScene" uid="uid://dvpank15vkvtv" path="res://Models/beach_decor/parsol.tscn" id="21_dlhqg"]
|
||||||
[ext_resource type="PackedScene" path="res://villager_shared.tscn" id="21_hxwg1"]
|
[ext_resource type="PackedScene" uid="uid://c4s6y758n77lw" path="res://villager_shared.tscn" id="21_hxwg1"]
|
||||||
[ext_resource type="PackedScene" uid="uid://7utef1nnena8" path="res://player.tscn" id="22_cuxj6"]
|
[ext_resource type="PackedScene" uid="uid://7utef1nnena8" path="res://player.tscn" id="22_cuxj6"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b3aus2kigf8xt" path="res://Models/beach_decor/cooler.tscn" id="24_sl7ne"]
|
[ext_resource type="PackedScene" uid="uid://b3aus2kigf8xt" path="res://Models/beach_decor/cooler.tscn" id="24_sl7ne"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bw3k2c75qavce" path="res://Models/beach_decor/bucket.tscn" id="27_f3p1i"]
|
[ext_resource type="PackedScene" uid="uid://bw3k2c75qavce" path="res://Models/beach_decor/bucket.tscn" id="27_f3p1i"]
|
||||||
|
@ -247,3 +247,6 @@ transform = Transform3D(1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0, 1.40507, -2.10425)
|
||||||
|
|
||||||
[node name="Player" parent="." instance=ExtResource("22_cuxj6")]
|
[node name="Player" parent="." instance=ExtResource("22_cuxj6")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.192051, 2.60275, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.192051, 2.60275, 0)
|
||||||
|
|
||||||
|
[node name="villager" parent="." instance=ExtResource("21_hxwg1")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.948, 0)
|
||||||
|
|
|
@ -5,6 +5,8 @@ extends Node3D
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
var color = colors[randi() % colors.size()]
|
var color = colors[randi() % colors.size()]
|
||||||
|
var mat = $Armature/Skeleton3D/Slime.get_active_material(3).duplicate()
|
||||||
|
$Armature/Skeleton3D/Slime.set_surface_override_material(3, mat)
|
||||||
$Armature/Skeleton3D/Slime.get_active_material(3).albedo_color = color
|
$Armature/Skeleton3D/Slime.get_active_material(3).albedo_color = color
|
||||||
|
|
||||||
func walk():
|
func walk():
|
||||||
|
|
|
@ -33,13 +33,13 @@ colors = Array[Color]([Color(0, 0.113725, 0.905882, 1), Color(0.592157, 0, 0.243
|
||||||
transform = Transform3D(0.859505, 0, -0.511128, 0, 1, 0, 0.511128, 0, 0.859505, 0, 0, 0)
|
transform = Transform3D(0.859505, 0, -0.511128, 0, 1, 0, 0.511128, 0, 0.859505, 0, 0, 0)
|
||||||
|
|
||||||
[node name="Skeleton3D" parent="Armature" index="0"]
|
[node name="Skeleton3D" parent="Armature" index="0"]
|
||||||
bones/1/position = Vector3(0, 0.426907, 0)
|
bones/1/position = Vector3(0, 0.532995, 0)
|
||||||
bones/2/rotation = Quaternion(-0.0627444, 0.00212883, -0.213248, 0.974979)
|
bones/2/rotation = Quaternion(-0.0627444, 0.00212883, -0.213248, 0.974979)
|
||||||
bones/3/rotation = Quaternion(0.100834, -0.698956, 0.0125015, 0.707911)
|
bones/3/rotation = Quaternion(0.100834, -0.698956, 0.0125015, 0.707911)
|
||||||
bones/7/rotation = Quaternion(-0.258758, 2.37407e-09, 2.7412e-09, 0.965942)
|
bones/7/rotation = Quaternion(-0.129267, 2.66294e-09, 2.4271e-09, 0.99161)
|
||||||
bones/8/rotation = Quaternion(0.188737, -8.6127e-10, -4.72466e-10, 0.982028)
|
bones/8/rotation = Quaternion(0.591049, -1.01643e-09, -4.6686e-11, 0.806635)
|
||||||
bones/10/rotation = Quaternion(0.253668, -5.6372e-08, -4.28241e-09, 0.967291)
|
bones/10/rotation = Quaternion(0.085015, -4.52807e-08, -6.64593e-08, 0.99638)
|
||||||
bones/11/rotation = Quaternion(-0.191712, 1.11242e-07, 9.37652e-08, 0.981451)
|
bones/11/rotation = Quaternion(-0.613365, 5.48373e-08, 5.89338e-08, 0.789799)
|
||||||
|
|
||||||
[node name="AnimationTree" type="AnimationTree" parent="." index="2"]
|
[node name="AnimationTree" type="AnimationTree" parent="." index="2"]
|
||||||
tree_root = SubResource("AnimationNodeStateMachine_prt7l")
|
tree_root = SubResource("AnimationNodeStateMachine_prt7l")
|
||||||
|
|
|
@ -24,3 +24,6 @@ shape = SubResource("ConcavePolygonShape3D_x4p8c")
|
||||||
|
|
||||||
[node name="villager" parent="." instance=ExtResource("2_oxniy")]
|
[node name="villager" parent="." instance=ExtResource("2_oxniy")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.513896)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.513896)
|
||||||
|
|
||||||
|
[node name="villager2" parent="." instance=ExtResource("2_oxniy")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.543042, 0, 0)
|
||||||
|
|
|
@ -10,3 +10,6 @@ spin_chance = 0.2
|
||||||
walk_speed = 0.5
|
walk_speed = 0.5
|
||||||
dir_correction_rate = 0.95
|
dir_correction_rate = 0.95
|
||||||
dir_accuracy = 0.00174533
|
dir_accuracy = 0.00174533
|
||||||
|
|
||||||
|
[node name="slime" parent="." index="0"]
|
||||||
|
transform = Transform3D(0.035, 0, 0, 0, 0.035, 0, 0, 0, 0.035, 0, 0, 0)
|
||||||
|
|
Loading…
Reference in New Issue