diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-11-14 19:36:06 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-11-14 19:36:06 +0100 |
| commit | 1b126744d96d61c36eb25e87b5d35cc75b1e7e56 (patch) | |
| tree | 88018e03fdd2402b5d4dbc4eb65c9619b8cc73ec /Spatial.tscn | |
| parent | e48d0f47fac4f6a07a1a851fea7b9ae08154ebb6 (diff) | |
| download | nj26-1b126744d96d61c36eb25e87b5d35cc75b1e7e56.tar.gz | |
WIP
Diffstat (limited to 'Spatial.tscn')
| -rw-r--r-- | Spatial.tscn | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/Spatial.tscn b/Spatial.tscn index 6a748d5..04ec6c7 100644 --- a/Spatial.tscn +++ b/Spatial.tscn @@ -1,6 +1,7 @@ [gd_scene load_steps=16 format=2] [ext_resource path="res://floor.png" type="Texture" id=1] +[ext_resource path="res://sky.tscn" type="PackedScene" id=2] [ext_resource path="res://jail.tscn" type="PackedScene" id=3] [ext_resource path="res://Spatial.gd" type="Script" id=4] [ext_resource path="res://basefloor.gd" type="Script" id=5] @@ -17,20 +18,18 @@ extents = Vector3( 10, 1, 20 ) [sub_resource type="SpatialMaterial" id=12] albedo_texture = ExtResource( 1 ) -[sub_resource type="ProceduralSky" id=6] -sky_horizon_color = Color( 0.329412, 0.0784314, 0.368627, 1 ) - [sub_resource type="Environment" id=7] -background_mode = 2 -background_sky = SubResource( 6 ) +ambient_light_color = Color( 1, 1, 1, 1 ) +ambient_light_sky_contribution = 0.25 [sub_resource type="BoxShape" id=5] -extents = Vector3( 1, 40, 9 ) +extents = Vector3( 1, 40, 10 ) [sub_resource type="BoxShape" id=3] extents = Vector3( 1, 40, 12 ) [sub_resource type="CylinderShape" id=9] +height = 1.0 radius = 1.8 [sub_resource type="CylinderMesh" id=10] @@ -71,7 +70,7 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 ) shape = SubResource( 2 ) [node name="Camera" type="Camera" parent="."] -transform = Transform( 1, 0, 0, 0, 0.702315, 0.711867, 0, -0.711867, 0.702315, 0, 7.46512, 8.14918 ) +transform = Transform( 1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 7.46512, 8.14918 ) environment = SubResource( 7 ) [node name="walls" type="Spatial" parent="."] @@ -88,7 +87,7 @@ shape = SubResource( 5 ) [node name="MeshInstance" type="MeshInstance" parent="walls/Node4"] [node name="Node3" type="StaticBody" parent="walls"] -transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 7 ) +transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 7.5 ) collision_layer = 3 collision_mask = 3 @@ -124,17 +123,17 @@ shadow_enabled = true [node name="jail" parent="." instance=ExtResource( 3 )] transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 15.315, 0 ) -collision_layer = 4 -collision_mask = 4 +continuous_cd = true [node name="reserved" type="RigidBody" parent="."] collision_layer = 4 collision_mask = 4 mode = 1 continuous_cd = true +can_sleep = false [node name="CollisionShape" type="CollisionShape" parent="reserved"] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.8, 0 ) +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.16622, 0 ) shape = SubResource( 9 ) [node name="MeshInstance" type="MeshInstance" parent="reserved"] @@ -172,6 +171,15 @@ text = "Team Pink: 0" align = 1 valign = 1 +[node name="time_left" type="Label" parent="CanvasLayer"] +margin_right = 672.0 +margin_bottom = 40.0 +rect_scale = Vector2( 2, 2 ) +custom_colors/font_color = Color( 1, 1, 1, 1 ) +text = "Time left: 00:00" +align = 1 +valign = 1 + [node name="blue" type="Label" parent="CanvasLayer"] margin_left = 1162.0 margin_right = 1237.0 @@ -183,3 +191,8 @@ align = 1 valign = 1 [node name="powerup_timer" type="Timer" parent="."] + +[node name="sky" parent="." instance=ExtResource( 2 )] +transform = Transform( 15, 0, 0, 0, 10.6066, 10.6066, 0, -10.6066, 10.6066, 0, 0, 0 ) + +[node name="game_time" type="Timer" parent="."] |
