2024-01-27 00:05:04 +01:00
|
|
|
[gd_scene load_steps=14 format=3 uid="uid://b1nm5h3yccr16"]
|
2024-01-26 21:07:19 +01:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://entities/Player.gd" id="1_ca7jo"]
|
|
|
|
[ext_resource type="Script" path="res://scenes/World.gd" id="1_gtcjp"]
|
2024-01-27 00:05:04 +01:00
|
|
|
[ext_resource type="Texture2D" uid="uid://cek45oeqv3jvj" path="res://assets/textures/test_world_color_texture_viewport.png" id="3_bvxb7"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bnsrnuuq28p4d" path="res://assets/textures/player_draw_mask.png" id="4_dipd5"]
|
|
|
|
[ext_resource type="Material" uid="uid://bg3dawo5kkosg" path="res://materials/GrassNoiseMaterial.tres" id="4_pseda"]
|
2024-01-26 21:07:19 +01:00
|
|
|
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_yle83"]
|
|
|
|
size = Vector3(0.24, 0.75, 0.24)
|
|
|
|
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_rwgp3"]
|
|
|
|
height = 0.75
|
|
|
|
radius = 0.15
|
|
|
|
|
|
|
|
[sub_resource type="Environment" id="Environment_f3jci"]
|
|
|
|
ambient_light_source = 3
|
|
|
|
ambient_light_color = Color(0.521569, 0.521569, 0.521569, 1)
|
|
|
|
ambient_light_energy = 2.64
|
|
|
|
|
2024-01-27 00:05:04 +01:00
|
|
|
[sub_resource type="World3D" id="World3D_s7kgt"]
|
2024-01-26 21:07:19 +01:00
|
|
|
|
2024-01-27 00:05:04 +01:00
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_p0rqu"]
|
2024-01-26 21:07:19 +01:00
|
|
|
|
2024-01-27 00:05:04 +01:00
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_237xr"]
|
2024-01-26 21:07:19 +01:00
|
|
|
|
2024-01-27 00:05:04 +01:00
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_bwn4a"]
|
|
|
|
material = ExtResource("4_pseda")
|
|
|
|
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_mneaf"]
|
|
|
|
size = Vector3(100, 2, 100)
|
|
|
|
|
|
|
|
[node name="World" type="Node3D"]
|
|
|
|
script = ExtResource("1_gtcjp")
|
2024-01-26 21:07:19 +01:00
|
|
|
|
|
|
|
[node name="Player1" type="CharacterBody3D" parent="."]
|
2024-01-27 00:05:04 +01:00
|
|
|
collision_mask = 3
|
2024-01-26 21:07:19 +01:00
|
|
|
script = ExtResource("1_ca7jo")
|
2024-01-27 00:05:04 +01:00
|
|
|
color = null
|
2024-01-26 21:07:19 +01:00
|
|
|
move_right_action = "move_right_p1"
|
|
|
|
move_left_action = "move_left_p1"
|
|
|
|
move_down_action = "move_down_p1"
|
|
|
|
move_up_action = "move_up_p1"
|
2024-01-27 00:05:04 +01:00
|
|
|
dash_action = null
|
2024-01-26 21:07:19 +01:00
|
|
|
|
|
|
|
[node name="Geometry" type="MeshInstance3D" parent="Player1"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.472544, 0)
|
|
|
|
mesh = SubResource("BoxMesh_yle83")
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Player1"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.496337, 0)
|
|
|
|
shape = SubResource("CylinderShape3D_rwgp3")
|
|
|
|
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
|
|
environment = SubResource("Environment_f3jci")
|
|
|
|
|
|
|
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
|
|
|
transform = Transform3D(-4.37114e-08, -0.528438, 0.848972, 0, 0.848972, 0.528438, -1, 2.30988e-08, -3.71097e-08, 0.936448, 2.01321, 1.19116)
|
|
|
|
shadow_enabled = true
|
|
|
|
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="."]
|
2024-01-27 00:05:04 +01:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 0.305147, 0.952305, 0, -0.952305, 0.305147, 0, 10, 1.966)
|
|
|
|
|
|
|
|
[node name="Sprite3D" type="Sprite3D" parent="."]
|
|
|
|
transform = Transform3D(20, 0, 0, 0, -8.74228e-07, 50, 0, -20, -2.18557e-06, 0, 0, 0)
|
|
|
|
modulate = Color(1, 1, 1, 0.32549)
|
|
|
|
|
|
|
|
[node name="WorldColoringViewport" type="SubViewport" parent="."]
|
|
|
|
own_world_3d = true
|
|
|
|
world_3d = SubResource("World3D_s7kgt")
|
|
|
|
transparent_bg = true
|
|
|
|
size = Vector2i(1001, 1001)
|
|
|
|
render_target_clear_mode = 1
|
|
|
|
render_target_update_mode = 4
|
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="WorldColoringViewport"]
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
texture = ExtResource("3_bvxb7")
|
|
|
|
|
|
|
|
[node name="Player1TextureRect" type="TextureRect" parent="WorldColoringViewport"]
|
|
|
|
offset_right = 40.0
|
|
|
|
offset_bottom = 40.0
|
|
|
|
texture = ExtResource("4_dipd5")
|
|
|
|
|
|
|
|
[node name="Level" type="Node3D" parent="."]
|
|
|
|
|
|
|
|
[node name="Box" type="StaticBody3D" parent="Level"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1)
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Level/Box"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
|
|
|
shape = SubResource("BoxShape3D_p0rqu")
|
|
|
|
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Level/Box"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
|
|
|
mesh = SubResource("BoxMesh_237xr")
|
|
|
|
|
|
|
|
[node name="Platform2" type="StaticBody3D" parent="Level"]
|
|
|
|
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Level/Platform2"]
|
|
|
|
transform = Transform3D(101, 0, 0, 0, 2, 0, 0, 0, 101, 0, -1, 0)
|
|
|
|
mesh = SubResource("BoxMesh_bwn4a")
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Level/Platform2"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
|
|
|
|
shape = SubResource("BoxShape3D_mneaf")
|
|
|
|
|
|
|
|
[node name="BoxNorthEast" type="StaticBody3D" parent="Level"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -50, 0, -50)
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Level/BoxNorthEast"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
|
|
|
shape = SubResource("BoxShape3D_p0rqu")
|
|
|
|
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Level/BoxNorthEast"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
|
|
|
mesh = SubResource("BoxMesh_237xr")
|
|
|
|
|
|
|
|
[node name="BoxSouthWest" type="StaticBody3D" parent="Level"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 50, 0, 50)
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Level/BoxSouthWest"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
|
|
|
shape = SubResource("BoxShape3D_p0rqu")
|
|
|
|
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Level/BoxSouthWest"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
|
|
|
mesh = SubResource("BoxMesh_237xr")
|