Update StartingRoom.tscn, game_manager.gd, game_manager.tscn, and 1 more file
This commit is contained in:
parent
e9a896a912
commit
311c0395ab
4 changed files with 35 additions and 2 deletions
|
|
@ -104,7 +104,8 @@ volumetric_fog_albedo = Color(1, 0, 0, 1)
|
|||
volumetric_fog_emission = Color(1, 0, 0, 1)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_itc1d"]
|
||||
albedo_color = Color(0.571354, 1, 0.475134, 1)
|
||||
transparency = 1
|
||||
albedo_color = Color(0, 0.672276, 0, 0.439216)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_lcav8"]
|
||||
material = SubResource("StandardMaterial3D_itc1d")
|
||||
|
|
@ -167,7 +168,7 @@ environment = SubResource("Environment_u27ip")
|
|||
[node name="Gui" parent="." instance=ExtResource("3_60lfp")]
|
||||
|
||||
[node name="EndZone" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.3626, 2.6528, 7.56273)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.1374, 1.6528, -2.93727)
|
||||
mesh = SubResource("BoxMesh_lcav8")
|
||||
|
||||
[node name="Area3D" type="Area3D" parent="EndZone"]
|
||||
|
|
|
|||
22
game_manager.gd
Normal file
22
game_manager.gd
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
extends Node
|
||||
|
||||
@export var levels : Array[String] = [
|
||||
""
|
||||
]
|
||||
var current_level = 0
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
func load_next_level():
|
||||
if current_level+1 < levels.size():
|
||||
get_tree().change_scene_to_file(levels[current_level+1])
|
||||
else:
|
||||
#ending screen
|
||||
pass
|
||||
6
game_manager.tscn
Normal file
6
game_manager.tscn
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://d387n4cp3duhn"]
|
||||
|
||||
[ext_resource type="Script" path="res://game_manager.gd" id="1_rsuf4"]
|
||||
|
||||
[node name="GameManager" type="Node"]
|
||||
script = ExtResource("1_rsuf4")
|
||||
|
|
@ -15,6 +15,10 @@ run/main_scene="res://Levels/StartingRoom.tscn"
|
|||
config/features=PackedStringArray("4.2", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[autoload]
|
||||
|
||||
GameManager="*res://game_manager.gd"
|
||||
|
||||
[editor]
|
||||
|
||||
movie_writer/movie_file="/home/clevertop/Videos/video.avi"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue