First Map Tests, Player + Movement and Spawning.
This commit is contained in:
parent
1351ce3178
commit
c483a438c7
7 changed files with 145 additions and 8 deletions
18
scenes/entities/player.tscn
Normal file
18
scenes/entities/player.tscn
Normal file
|
@ -0,0 +1,18 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://dpdxe3muj2o26"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/entities/player.gd" id="1_r7f2r"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_yly5q"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_7frjr"]
|
||||
|
||||
[node name="Player" type="CharacterBody3D"]
|
||||
script = ExtResource("1_r7f2r")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("CapsuleMesh_yly5q")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("CapsuleShape3D_7frjr")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
|
@ -1,3 +1,28 @@
|
|||
[gd_scene format=3 uid="uid://cbyee7drds7qu"]
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cbyee7drds7qu"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/maps/map.gd" id="1_4npcs"]
|
||||
|
||||
[node name="Testmap" type="Node3D"]
|
||||
script = ExtResource("1_4npcs")
|
||||
|
||||
[node name="CSGBox3D" type="CSGBox3D" parent="."]
|
||||
use_collision = true
|
||||
size = Vector3(50, 1, 50)
|
||||
|
||||
[node name="PlayerSpawn" type="Node3D" parent="."]
|
||||
|
||||
[node name="0" type="Node3D" parent="PlayerSpawn"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -17, 3, 0)
|
||||
|
||||
[node name="1" type="Node3D" parent="PlayerSpawn"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16, 4, 0)
|
||||
|
||||
[node name="2" type="Node3D" parent="PlayerSpawn"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 15)
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(0.707107, -0.353553, 0.612372, 0, 0.866025, 0.5, -0.707107, -0.353553, 0.612372, 43, 20, 43)
|
||||
current = true
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.965926, 0.258819, 0, -0.224144, -0.836516, 0.5, 0.12941, 0.482963, 0.866025, 0, 0, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue