From 7111fadc087193909e985937519e313b670658e8 Mon Sep 17 00:00:00 2001 From: Henrique Alves Date: Sat, 16 Jul 2022 18:24:54 -0300 Subject: Obstacle material change --- Scenes/Obstacle.tscn | 7 ++++--- Scenes/Player.tscn | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Scenes/Obstacle.tscn b/Scenes/Obstacle.tscn index aeb41d6..f8fb257 100644 --- a/Scenes/Obstacle.tscn +++ b/Scenes/Obstacle.tscn @@ -1,12 +1,13 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=5 format=2] [ext_resource path="res://Scenes/Entity.gd" type="Script" id=1] +[ext_resource path="res://Assets/Environment/Obstacle.png" type="Texture" id=2] [sub_resource type="CubeMesh" id=6] -size = Vector3( 0.8, 0.8, 0.8 ) +size = Vector3( 1, 1, 1 ) [sub_resource type="SpatialMaterial" id=5] -albedo_color = Color( 0.976471, 0.541176, 0.541176, 1 ) +albedo_texture = ExtResource( 2 ) [node name="Obstacle" type="Spatial"] script = ExtResource( 1 ) diff --git a/Scenes/Player.tscn b/Scenes/Player.tscn index a24398f..4d67f5e 100644 --- a/Scenes/Player.tscn +++ b/Scenes/Player.tscn @@ -29,6 +29,9 @@ albedo_texture = ExtResource( 6 ) script = ExtResource( 1 ) actionable = true +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +root_node = NodePath("../Mesh") + [node name="Mesh" type="Spatial" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0 ) -- cgit v1.2.3