Test_Scene is now Level 6
This commit is contained in:
@@ -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)
|
113
Levels/Level06.tscn
Normal file
113
Levels/Level06.tscn
Normal file
@@ -0,0 +1,113 @@
|
||||
[gd_scene load_steps=11 format=2]
|
||||
|
||||
[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( 2 )
|
||||
|
||||
[sub_resource type="PanoramaSky" id=4]
|
||||
panorama = ExtResource( 4 )
|
||||
|
||||
[sub_resource type="Environment" id=2]
|
||||
background_mode = 2
|
||||
background_sky = SubResource( 4 )
|
||||
background_energy = 0.25
|
||||
ambient_light_energy = 0.67
|
||||
fog_enabled = true
|
||||
fog_color = Color( 0.305882, 0.372549, 0.52549, 1 )
|
||||
fog_sun_color = Color( 0.901961, 0.803922, 0.752941, 1 )
|
||||
fog_sun_amount = 1.0
|
||||
fog_depth_begin = 98.8
|
||||
fog_depth_end = 1444.5
|
||||
fog_depth_curve = 0.466516
|
||||
fog_transmit_enabled = true
|
||||
fog_transmit_curve = 0.659754
|
||||
fog_height_enabled = true
|
||||
fog_height_min = 148.2
|
||||
fog_height_max = -48.0
|
||||
fog_height_curve = 4.59481
|
||||
ssao_radius = 8.1
|
||||
ssao_intensity = 4.3
|
||||
ssao_radius2 = 40.7
|
||||
ssao_intensity2 = 14.6
|
||||
ssao_bias = 0.059
|
||||
ssao_color = Color( 0.180392, 0.207843, 0.25098, 1 )
|
||||
glow_enabled = true
|
||||
glow_intensity = 1.86
|
||||
glow_strength = 0.87
|
||||
glow_bloom = 0.02
|
||||
glow_hdr_threshold = 0.44
|
||||
glow_bicubic_upscale = true
|
||||
|
||||
[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
|
||||
|
||||
[node name="CSGBox" type="CSGBox" parent="CSGCombiner"]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.437965, 0 )
|
||||
width = 1000.0
|
||||
height = 1.0
|
||||
depth = 1000.0
|
||||
material = SubResource( 5 )
|
||||
|
||||
[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="."]
|
||||
environment = SubResource( 2 )
|
||||
|
||||
[node name="DirectionalLight_EpicBlueSky" type="DirectionalLight" parent="."]
|
||||
transform = Transform( 1, 0, 0, 0, 0.849579, 0.527461, 0, -0.527461, 0.849579, 0, 26.5368, 0 )
|
||||
light_color = Color( 0.54902, 0.192157, 0.0823529, 1 )
|
||||
light_energy = 1.294
|
||||
light_indirect_energy = 1.363
|
||||
light_specular = 16.0
|
||||
shadow_enabled = true
|
||||
|
||||
[node name="DirectionalLight" type="DirectionalLight" parent="."]
|
||||
transform = Transform( 0.72831, 0.357922, 0.584342, 0.224814, -0.930353, 0.289658, 0.647319, -0.0795927, -0.758052, -51.5559, 23.8185, -5.9078 )
|
||||
visible = false
|
||||
light_energy = 0.0
|
||||
light_indirect_energy = 0.283
|
||||
light_specular = 0.0
|
||||
|
||||
[node name="Music" type="AudioStreamPlayer" parent="."]
|
||||
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"]
|
Reference in New Issue
Block a user