105 lines
4.6 KiB
Text
105 lines
4.6 KiB
Text
[gd_scene format=3 uid="uid://bxdnehietcpkj"]
|
|
|
|
[ext_resource type="Script" uid="uid://dhfun46prq3uk" path="res://scripts/game.gd" id="1_gee14"]
|
|
[ext_resource type="Script" uid="uid://crf3d7dpjvlsl" path="res://scripts/player_camera.gd" id="1_lnu2h"]
|
|
[ext_resource type="Script" uid="uid://66iq60cxqomg" path="res://scripts/player.gd" id="1_yqjtg"]
|
|
[ext_resource type="Texture2D" uid="uid://b6krbvbco0jt6" path="res://textures/shadow.png" id="4_lbhrr"]
|
|
[ext_resource type="PackedScene" uid="uid://cnii80nh1mxr2" path="res://scenes/assets/dreamer_body.tscn" id="4_p57ef"]
|
|
[ext_resource type="PackedScene" uid="uid://b0kty7juk7rfo" path="res://models/stalagmite.gltf" id="5_iywne"]
|
|
[ext_resource type="Script" uid="uid://ddhrcj4ljm446" path="res://scripts/test_enemy.gd" id="6_u5sy4"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_lbhrr"]
|
|
albedo_color = Color(0.61, 0.28791997, 0.17079999, 1)
|
|
|
|
[sub_resource type="Environment" id="Environment_uwrxv"]
|
|
|
|
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_yqjtg"]
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_0tnpc"]
|
|
size = Vector3(1, 1, 1.3)
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_yqjtg"]
|
|
radius = 0.25
|
|
height = 1.0
|
|
|
|
[node name="Game" type="Node3D" unique_id=1358608749]
|
|
script = ExtResource("1_gee14")
|
|
|
|
[node name="CSGBox3D" type="CSGBox3D" parent="." unique_id=1781956012]
|
|
use_collision = true
|
|
size = Vector3(16, 1, 16)
|
|
material = SubResource("StandardMaterial3D_lbhrr")
|
|
|
|
[node name="PlayerCamera" type="Camera3D" parent="." unique_id=1101523944]
|
|
transform = Transform3D(0.70710677, -0.32650557, 0.62721133, 0, 0.8870108, 0.46174863, -0.70710677, -0.32650557, 0.62721133, 4, 6, 4)
|
|
environment = SubResource("Environment_uwrxv")
|
|
attributes = SubResource("CameraAttributesPractical_yqjtg")
|
|
fov = 70.0
|
|
script = ExtResource("1_lnu2h")
|
|
|
|
[node name="Player" type="CharacterBody3D" parent="." unique_id=1201448850]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0)
|
|
script = ExtResource("1_yqjtg")
|
|
|
|
[node name="HitCollision" type="Area3D" parent="Player" unique_id=1708789602]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1500001, 0)
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Player/HitCollision" unique_id=653786925]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, 0, 0)
|
|
shape = SubResource("BoxShape3D_0tnpc")
|
|
|
|
[node name="DreamerBody" parent="Player" unique_id=723408850 instance=ExtResource("4_p57ef")]
|
|
|
|
[node name="Shadow" type="Sprite3D" parent="Player" unique_id=495232250]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0)
|
|
modulate = Color(1, 1, 1, 0.5764706)
|
|
pixel_size = 0.03
|
|
axis = 1
|
|
texture_filter = 0
|
|
texture = ExtResource("4_lbhrr")
|
|
|
|
[node name="Collision" type="CollisionShape3D" parent="Player" unique_id=1487040988]
|
|
shape = SubResource("CapsuleShape3D_yqjtg")
|
|
|
|
[node name="Floorcast" type="RayCast3D" parent="Player" unique_id=991770843]
|
|
target_position = Vector3(0, -16, 0)
|
|
|
|
[node name="EnemyTest" type="CharacterBody3D" parent="." unique_id=109591127]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 3, 0)
|
|
script = ExtResource("6_u5sy4")
|
|
|
|
[node name="HitCollision" type="Area3D" parent="EnemyTest" unique_id=736307848]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1500001, 0)
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="EnemyTest/HitCollision" unique_id=1336116220]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, 0, 0)
|
|
shape = SubResource("BoxShape3D_0tnpc")
|
|
|
|
[node name="DreamerBody" parent="EnemyTest" unique_id=780505789 instance=ExtResource("4_p57ef")]
|
|
|
|
[node name="Shadow" type="Sprite3D" parent="EnemyTest" unique_id=521501658]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0)
|
|
modulate = Color(1, 1, 1, 0.5764706)
|
|
pixel_size = 0.03
|
|
axis = 1
|
|
texture_filter = 0
|
|
texture = ExtResource("4_lbhrr")
|
|
|
|
[node name="Collision" type="CollisionShape3D" parent="EnemyTest" unique_id=1794588893]
|
|
shape = SubResource("CapsuleShape3D_yqjtg")
|
|
|
|
[node name="Floorcast" type="RayCast3D" parent="EnemyTest" unique_id=1411083951]
|
|
target_position = Vector3(0, -16, 0)
|
|
|
|
[node name="HealthLabel" type="Label3D" parent="EnemyTest" unique_id=1869384013]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8399999, 0)
|
|
pixel_size = 0.01
|
|
billboard = 1
|
|
text = "hello!"
|
|
|
|
[node name="Sun" type="DirectionalLight3D" parent="." unique_id=1000747668]
|
|
transform = Transform3D(5.337265e-08, 0.90171933, -0.4323222, -0.3453802, 0.40571806, 0.8462301, 0.93846303, 0.14931537, 0.31143594, 0, 0, 0)
|
|
shadow_enabled = true
|
|
|
|
[node name="blockbench_export" parent="." unique_id=1479648799 instance=ExtResource("5_iywne")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.48141205, 3)
|