Test_Scene is now Level 6
This commit is contained in:
parent
be3a7c429b
commit
c49a72528b
@ -5,7 +5,7 @@ extends Spatial
|
||||
# var a = 2
|
||||
# var b = "text"
|
||||
var enemycount = 5
|
||||
onready var NEXTSCENE = "res://Test_Scene.tscn"
|
||||
onready var NEXTSCENE = "res://Level04.tscn"
|
||||
|
||||
onready var WinMess = $Messages/Win
|
||||
onready var EndTimer = $End
|
||||
|
24
Levels/Level06.gd
Normal file
24
Levels/Level06.gd
Normal file
@ -0,0 +1,24 @@
|
||||
extends Spatial
|
||||
|
||||
var enemycount = 1
|
||||
onready var NEXTSCENE = "res://Levels/Level07.tscn"
|
||||
|
||||
onready var WinMess = $Messages/Win
|
||||
onready var EndTimer = $End
|
||||
onready var FirstTime = $Timer
|
||||
|
||||
onready var HUD = $"Player/HUD/MenuLayer/Start"
|
||||
|
||||
func _ready():
|
||||
FirstTime.start()
|
||||
|
||||
|
||||
func _on_Enemy_dying():
|
||||
enemycount -= 1
|
||||
if enemycount == 0:
|
||||
WinMess.show()
|
||||
EndTimer.start()
|
||||
|
||||
|
||||
func _on_Win_timeout():
|
||||
get_tree().change_scene(NEXTSCENE)
|
@ -1,16 +1,17 @@
|
||||
[gd_scene load_steps=9 format=2]
|
||||
[gd_scene load_steps=11 format=2]
|
||||
|
||||
[ext_resource path="res://AllSkyFree_Skyboxes/Deep Dusk Equirect.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Player.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Textures/MetalCorrodedHeavy001/MetalCorrodedHeavy001_NRM_1K_METALNESS.jpg" type="Texture" id=3]
|
||||
[ext_resource path="res://Test_Scene.gd" type="Script" id=6]
|
||||
[ext_resource path="res://Audio/mood.ogg" type="AudioStream" id=7]
|
||||
[ext_resource path="res://Player.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Textures/MetalCorrodedHeavy001/MetalCorrodedHeavy001_NRM_1K_METALNESS.jpg" type="Texture" id=2]
|
||||
[ext_resource path="res://Audio/mood.ogg" type="AudioStream" id=3]
|
||||
[ext_resource path="res://AllSkyFree_Skyboxes/Deep Dusk Equirect.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Levels/Level06.gd" type="Script" id=5]
|
||||
[ext_resource path="res://fonts/TorontoSubwayRegular.ttf" type="DynamicFontData" id=6]
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=5]
|
||||
albedo_texture = ExtResource( 3 )
|
||||
albedo_texture = ExtResource( 2 )
|
||||
|
||||
[sub_resource type="PanoramaSky" id=4]
|
||||
panorama = ExtResource( 1 )
|
||||
panorama = ExtResource( 4 )
|
||||
|
||||
[sub_resource type="Environment" id=2]
|
||||
background_mode = 2
|
||||
@ -43,8 +44,16 @@ glow_bloom = 0.02
|
||||
glow_hdr_threshold = 0.44
|
||||
glow_bicubic_upscale = true
|
||||
|
||||
[node name="Spatial" type="Spatial"]
|
||||
script = ExtResource( 6 )
|
||||
[sub_resource type="DynamicFont" id=6]
|
||||
size = 64
|
||||
outline_size = 4
|
||||
outline_color = Color( 0, 0, 0, 1 )
|
||||
use_mipmaps = true
|
||||
use_filter = true
|
||||
font_data = ExtResource( 6 )
|
||||
|
||||
[node name="lvl6" type="Spatial"]
|
||||
script = ExtResource( 5 )
|
||||
|
||||
[node name="CSGCombiner" type="CSGCombiner" parent="."]
|
||||
use_collision = true
|
||||
@ -56,7 +65,7 @@ height = 1.0
|
||||
depth = 1000.0
|
||||
material = SubResource( 5 )
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource( 2 )]
|
||||
[node name="Player" parent="." instance=ExtResource( 1 )]
|
||||
transform = Transform( -0.965926, 0, 0.258819, 0, 1, 0, -0.258819, 0, -0.965926, 0, 2.85127, 0 )
|
||||
|
||||
[node name="WorldEnvironment_EpicBlueSky" type="WorldEnvironment" parent="."]
|
||||
@ -78,5 +87,27 @@ light_indirect_energy = 0.283
|
||||
light_specular = 0.0
|
||||
|
||||
[node name="Music" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 7 )
|
||||
stream = ExtResource( 3 )
|
||||
pitch_scale = 0.8
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 15.0
|
||||
|
||||
[node name="Messages" type="Control" parent="."]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
|
||||
[node name="Win" type="Label" parent="Messages"]
|
||||
visible = false
|
||||
margin_left = 775.0
|
||||
margin_top = 469.0
|
||||
margin_right = 1187.0
|
||||
margin_bottom = 627.0
|
||||
custom_fonts/font = SubResource( 6 )
|
||||
text = "You're Winner!"
|
||||
|
||||
[node name="End" type="Timer" parent="."]
|
||||
wait_time = 3.0
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_Enemy_dying"]
|
||||
[connection signal="timeout" from="End" to="." method="_on_Win_timeout"]
|
2
Start.gd
2
Start.gd
@ -15,7 +15,7 @@ onready var Levels = {
|
||||
"lvl3": "Level 3 - But not too straight.",
|
||||
"lvl4": "Level 4 - ",
|
||||
"lvl5": "Level 5 - ",
|
||||
"lvl6": "Level 6 - ",
|
||||
"lvl6": "Level 6 - Remain calm.",
|
||||
"lvl7": "Level 7 - ",
|
||||
"lvl8": "Level 8 - ",
|
||||
"lvl9": "Level 9 - ",
|
||||
|
@ -1,6 +0,0 @@
|
||||
extends Spatial
|
||||
|
||||
|
||||
func _physics_process(delta):
|
||||
if Input.is_action_just_pressed("reset_map"):
|
||||
get_tree().reload_current_scene()
|
Loading…
x
Reference in New Issue
Block a user