diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-09-19 21:41:34 +0100 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-09-19 21:41:34 +0100 |
commit | 91f52909087dca648df82ea7fe77c2348a18c06f (patch) | |
tree | 95a2b1aa37b0a6c063ca2628dd9850529988ab98 /prefabs | |
parent | 0abec8156bd944aa883d544850ee1187219ba943 (diff) |
bsp_level_generator: Add 3D floor and wall generation
Still need to figure out how to place and generator doors between rooms
Diffstat (limited to 'prefabs')
-rw-r--r-- | prefabs/bsp_level_generator.tscn | 4 | ||||
-rw-r--r-- | prefabs/test_arena.tscn | 10 |
2 files changed, 6 insertions, 8 deletions
diff --git a/prefabs/bsp_level_generator.tscn b/prefabs/bsp_level_generator.tscn index 9b3c198..dbb62a5 100644 --- a/prefabs/bsp_level_generator.tscn +++ b/prefabs/bsp_level_generator.tscn @@ -2,7 +2,5 @@ [ext_resource type="Script" path="res://scripts/bsp_level_generator.gd" id="1_6jn1x"] -[node name="BspLevelGenerator" type="Node2D"] +[node name="BspLevelGenerator" type="Node3D"] script = ExtResource("1_6jn1x") - -[node name="Camera2D" type="Camera2D" parent="."] diff --git a/prefabs/test_arena.tscn b/prefabs/test_arena.tscn index 7b7a510..b5e45db 100644 --- a/prefabs/test_arena.tscn +++ b/prefabs/test_arena.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=9 format=3 uid="uid://dlevowk0jrhlg"] +[gd_scene load_steps=10 format=3 uid="uid://dlevowk0jrhlg"] [ext_resource type="PackedScene" uid="uid://cc1m2a1obsyn4" path="res://addons/fpc/character.tscn" id="1_vc6b5"] [ext_resource type="Script" path="res://scripts/player.gd" id="2_puqns"] [ext_resource type="PackedScene" uid="uid://cuad3khwmhnsa" path="res://prefabs/enemy.tscn" id="3_4ykmj"] +[ext_resource type="PackedScene" uid="uid://w7hxcvuvud" path="res://prefabs/bsp_level_generator.tscn" id="4_501hd"] [sub_resource type="Environment" id="Environment_2poci"] background_color = Color(0.130548, 0.170599, 0.433834, 1) @@ -79,6 +80,7 @@ transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, [node name="Player" parent="." node_paths=PackedStringArray("HEAD", "HEADBOB_ANIMATION") instance=ExtResource("1_vc6b5")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.97532, -1.28752, 0.602886) +motion_mode = 1 HEAD = NodePath("PlayerCam") HEADBOB_ANIMATION = NodePath("PlayerCam/HeadAnimation") LEFT = "left" @@ -89,6 +91,7 @@ jumping_enabled = false in_air_momentum = false sprint_enabled = false crouch_enabled = false +gravity_enabled = false [node name="PlayerCam" type="Node3D" parent="Player"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0) @@ -114,7 +117,4 @@ motion_mode = 0 target = NodePath("../Player") gravity_enabled = true -[node name="CSGBox3D" type="CSGBox3D" parent="."] -use_collision = true -flip_faces = true -size = Vector3(20, 4, 20) +[node name="BspLevelGenerator" parent="." instance=ExtResource("4_501hd")] |