From 7c15467c313a2340f4a17161e3db39d9d1d3fdb1 Mon Sep 17 00:00:00 2001 From: unfa Date: Sun, 14 Jun 2020 00:17:45 +0200 Subject: [PATCH] Initial CSG level, initial player, test rigid body. --- Game.tscn | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ default_env.tres | 2 ++ project.godot | 1 + 3 files changed, 54 insertions(+) create mode 100644 Game.tscn diff --git a/Game.tscn b/Game.tscn new file mode 100644 index 0000000..5a825e4 --- /dev/null +++ b/Game.tscn @@ -0,0 +1,51 @@ +[gd_scene load_steps=5 format=2] + +[sub_resource type="BoxShape" id=1] + +[sub_resource type="CubeMesh" id=2] + +[sub_resource type="CapsuleShape" id=3] + +[sub_resource type="CapsuleMesh" id=4] + +[node name="Game" type="Spatial"] + +[node name="Level" type="Spatial" parent="."] + +[node name="RigidBody" type="RigidBody" parent="Level"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.22547, 0 ) + +[node name="CollisionShape" type="CollisionShape" parent="Level/RigidBody"] +shape = SubResource( 1 ) + +[node name="MeshInstance" type="MeshInstance" parent="Level/RigidBody"] +mesh = SubResource( 2 ) +material/0 = null + +[node name="CSGCombiner" type="CSGCombiner" parent="Level"] +use_collision = true + +[node name="CSGBox" type="CSGBox" parent="Level/CSGCombiner"] +width = 14.0 +depth = 14.0 + +[node name="CSGBox2" type="CSGBox" parent="Level/CSGCombiner"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 ) +operation = 2 +width = 12.0 +depth = 12.0 + +[node name="Player" type="KinematicBody" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 12.2035, 0 ) + +[node name="CollisionShape" type="CollisionShape" parent="Player"] +transform = Transform( 1, 0, 0, 0, -1.62921e-07, 1, 0, -1, -1.62921e-07, 0, 0, 0 ) +shape = SubResource( 3 ) + +[node name="MeshInstance" type="MeshInstance" parent="Player"] +transform = Transform( 1, 0, 0, 0, -1.62921e-07, 1, 0, -1, -1.62921e-07, 0, 0, 0 ) +mesh = SubResource( 4 ) +material/0 = null + +[node name="Camera" type="Camera" parent="."] +transform = Transform( 1, 0, 0, 0, 0.750734, 0.660605, 0, -0.660605, 0.750734, 0, 17.0162, 15.1792 ) diff --git a/default_env.tres b/default_env.tres index 98f26a7..20207a4 100644 --- a/default_env.tres +++ b/default_env.tres @@ -1,5 +1,7 @@ [gd_resource type="Environment" load_steps=2 format=2] + [sub_resource type="ProceduralSky" id=1] + [resource] background_mode = 2 background_sky = SubResource( 1 ) diff --git a/project.godot b/project.godot index 4fd88a9..6525d19 100644 --- a/project.godot +++ b/project.godot @@ -16,6 +16,7 @@ _global_script_class_icons={ [application] config/name="jam-01" +run/main_scene="res://Game.tscn" config/icon="res://icon.png" [rendering]