it's michael, what's michael
This commit is contained in:
10
dungeon_test/Camera3d.cs
Normal file
10
dungeon_test/Camera3d.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class Camera3d : Node3D
|
||||
{
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
this.RotateY((float)delta);
|
||||
}
|
||||
}
|
||||
31
dungeon_test/camera.tscn
Normal file
31
dungeon_test/camera.tscn
Normal file
@@ -0,0 +1,31 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://ccnks05btp3f1"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dcgj5i52i76gj" path="res://src/enemy/enemy_types/michael/Michael.tscn" id="1_1iqeh"]
|
||||
[ext_resource type="Script" path="res://src/enemy/enemy_types/michael/RotationTest.cs" id="2_c7eon"]
|
||||
[ext_resource type="Script" path="res://dungeon_test/Camera3d.cs" id="3_ddadm"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4ork2"]
|
||||
albedo_color = Color(0.282353, 0.172549, 0.521569, 1)
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
|
||||
[node name="Michael" parent="." instance=ExtResource("1_1iqeh")]
|
||||
script = ExtResource("2_c7eon")
|
||||
|
||||
[node name="CurrentFrameLabel" type="Label" parent="Michael"]
|
||||
unique_name_in_owner = true
|
||||
offset_left = 467.0
|
||||
offset_top = 71.0
|
||||
offset_right = 1081.0
|
||||
offset_bottom = 291.0
|
||||
|
||||
[node name="CSGBox3D" type="CSGBox3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.962679, 0)
|
||||
material_override = SubResource("StandardMaterial3D_4ork2")
|
||||
|
||||
[node name="CamBase" type="Node3D" parent="."]
|
||||
script = ExtResource("3_ddadm")
|
||||
|
||||
[node name="TestCamera" type="Camera3D" parent="CamBase"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.357711, 2.14968)
|
||||
38
dungeon_test/dungeon_generator_3d.tscn
Normal file
38
dungeon_test/dungeon_generator_3d.tscn
Normal file
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://xneiqls2cte6"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonGenerator3D.gd" id="1_2rl20"]
|
||||
[ext_resource type="PackedScene" uid="uid://bs25ojrv57lvf" path="res://dungeon_test/dungeon_room.tscn" id="2_gw3xb"]
|
||||
[ext_resource type="PackedScene" uid="uid://cf3eviiwpqb5r" path="res://dungeon_test/node_3d.tscn" id="3_08u4w"]
|
||||
[ext_resource type="Script" path="res://CharacterBody3d.cs" id="4_02x0n"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_1hq3o"]
|
||||
height = 1.5
|
||||
|
||||
[node name="DungeonGenerator3D" type="Node3D"]
|
||||
script = ExtResource("1_2rl20")
|
||||
room_scenes = Array[PackedScene]([ExtResource("2_gw3xb")])
|
||||
corridor_room_scene = ExtResource("3_08u4w")
|
||||
dungeon_size = Vector3i(10, 1, 10)
|
||||
voxel_scale = Vector3(2, 2, 4)
|
||||
generate_on_ready = false
|
||||
|
||||
[node name="CharacterBody3D" type="CharacterBody3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.710277, -0.335599, 2.8987)
|
||||
axis_lock_linear_x = true
|
||||
axis_lock_linear_y = true
|
||||
axis_lock_linear_z = true
|
||||
axis_lock_angular_x = true
|
||||
axis_lock_angular_y = true
|
||||
axis_lock_angular_z = true
|
||||
motion_mode = 1
|
||||
platform_on_leave = 2
|
||||
script = ExtResource("4_02x0n")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"]
|
||||
shape = SubResource("CapsuleShape3D_1hq3o")
|
||||
|
||||
[node name="OmniLight3D" type="OmniLight3D" parent="CharacterBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.43104, 0, 0.890184)
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.710277, -0.0942499, 2.5558)
|
||||
26
dungeon_test/dungeon_room.tscn
Normal file
26
dungeon_test/dungeon_room.tscn
Normal file
@@ -0,0 +1,26 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bs25ojrv57lvf"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_el8eh"]
|
||||
|
||||
[node name="DungeonRoom3D" type="Node3D"]
|
||||
script = ExtResource("1_el8eh")
|
||||
size_in_voxels = Vector3i(4, 1, 4)
|
||||
voxel_scale = Vector3(2, 2, 4)
|
||||
|
||||
[node name="CSGBox3D" type="CSGBox3D" parent="."]
|
||||
use_collision = true
|
||||
size = Vector3(8, 2, 16)
|
||||
|
||||
[node name="DOOR" type="CSGBox3D" parent="CSGBox3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.05512, -0.38466, 7.81272)
|
||||
operation = 2
|
||||
size = Vector3(0.938965, 1.02429, 1.09424)
|
||||
|
||||
[node name="DOOR2" type="CSGBox3D" parent="CSGBox3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.05512, -0.487854, -8.40126)
|
||||
operation = 2
|
||||
size = Vector3(0.938965, 1.02429, 1.09424)
|
||||
|
||||
[node name="CSGBox3D" type="CSGBox3D" parent="CSGBox3D"]
|
||||
operation = 2
|
||||
size = Vector3(7, 1.8, 15)
|
||||
39
dungeon_test/node_3d.tscn
Normal file
39
dungeon_test/node_3d.tscn
Normal file
@@ -0,0 +1,39 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cf3eviiwpqb5r"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_xrnk3"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/corridor/remove_unused_doors.gd" id="2_w6qw3"]
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
script = ExtResource("1_xrnk3")
|
||||
voxel_scale = Vector3(2, 2, 4)
|
||||
|
||||
[node name="CSGBox3D" type="CSGBox3D" parent="."]
|
||||
use_collision = true
|
||||
size = Vector3(2, 2, 4)
|
||||
|
||||
[node name="CSGBox3D" type="CSGBox3D" parent="CSGBox3D"]
|
||||
operation = 2
|
||||
size = Vector3(1.8, 1.8, 3)
|
||||
|
||||
[node name="DOOR?1" type="CSGBox3D" parent="CSGBox3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.777139, -0.424666, -0.00854689)
|
||||
operation = 2
|
||||
size = Vector3(1.41699, 0.9375, 0.851501)
|
||||
|
||||
[node name="DOOR?2" type="CSGBox3D" parent="CSGBox3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.13129, -0.424666, -0.00854689)
|
||||
operation = 2
|
||||
size = Vector3(1.41699, 0.9375, 0.851501)
|
||||
|
||||
[node name="DOOR?3" type="CSGBox3D" parent="CSGBox3D"]
|
||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -0.0484848, -0.424666, 2.16393)
|
||||
operation = 2
|
||||
size = Vector3(1.41699, 0.9375, 0.851501)
|
||||
|
||||
[node name="DOOR?4" type="CSGBox3D" parent="CSGBox3D"]
|
||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0.1513, -0.424666, -1.79225)
|
||||
operation = 2
|
||||
size = Vector3(1.41699, 0.9375, 0.851501)
|
||||
|
||||
[node name="RemoveUnusedDoors" type="Node" parent="."]
|
||||
script = ExtResource("2_w6qw3")
|
||||
Reference in New Issue
Block a user