Level01
This commit is contained in:
parent
540cf81a6b
commit
3e9c55e3b4
23
Levels/Level01.gd
Normal file
23
Levels/Level01.gd
Normal file
@ -0,0 +1,23 @@
|
||||
extends Spatial
|
||||
|
||||
var enemycount = 1
|
||||
onready var NEXTSCENE = "res://Levels/Level02.tscn"
|
||||
|
||||
onready var WinMess = $Messages/Win
|
||||
onready var EndTimer = $End
|
||||
|
||||
onready var HUD = $"Player/HUD/MenuLayer/Start"
|
||||
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_Enemy_dying():
|
||||
enemycount -= 1
|
||||
if enemycount == 0:
|
||||
WinMess.show()
|
||||
EndTimer.start()
|
||||
|
||||
|
||||
func _on_Win_timeout():
|
||||
get_tree().change_scene(NEXTSCENE)
|
@ -1,10 +1,56 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
[gd_scene load_steps=12 format=2]
|
||||
|
||||
[ext_resource path="res://Materials/Dark_ProtoMat.tres" type="Material" id=1]
|
||||
[ext_resource path="res://Scenes/InfoScreen.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Player.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Scenes/Enemy.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://Audio/DiJazz.ogg" type="AudioStream" id=5]
|
||||
[ext_resource path="res://Levels/Level01.gd" type="Script" id=6]
|
||||
[ext_resource path="res://AllSkyFree_Skyboxes/Epic_BlueSunset_EquiRect_flat.png" type="Texture" id=7]
|
||||
[ext_resource path="res://fonts/TorontoSubwayRegular.ttf" type="DynamicFontData" id=8]
|
||||
|
||||
[node name="Spatial" type="Spatial"]
|
||||
[sub_resource type="PanoramaSky" id=9]
|
||||
panorama = ExtResource( 7 )
|
||||
|
||||
[sub_resource type="Environment" id=10]
|
||||
background_mode = 2
|
||||
background_sky = SubResource( 9 )
|
||||
ambient_light_energy = 0.5
|
||||
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=11]
|
||||
size = 64
|
||||
outline_size = 4
|
||||
outline_color = Color( 0, 0, 0, 1 )
|
||||
use_mipmaps = true
|
||||
use_filter = true
|
||||
font_data = ExtResource( 8 )
|
||||
|
||||
[node name="lvl1" type="Spatial"]
|
||||
script = ExtResource( 6 )
|
||||
|
||||
[node name="CSGCombiner" type="CSGCombiner" parent="."]
|
||||
use_collision = true
|
||||
@ -36,3 +82,37 @@ transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -8.9641
|
||||
text = "Slap the ball into
|
||||
the other one
|
||||
[hold and release left_click to slap]"
|
||||
|
||||
[node name="Enemy" parent="." instance=ExtResource( 4 )]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, -3 )
|
||||
|
||||
[node name="Enemy2" parent="." instance=ExtResource( 4 )]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, -16 )
|
||||
|
||||
[node name="Music" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 5 )
|
||||
bus = "Music"
|
||||
|
||||
[node name="WorldEnvironment_EpicBlueSky" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource( 10 )
|
||||
|
||||
[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( 11 )
|
||||
text = "You're Winner!"
|
||||
align = 1
|
||||
|
||||
[node name="End" type="Timer" parent="."]
|
||||
wait_time = 3.0
|
||||
|
||||
[connection signal="dying" from="Enemy" to="." method="_on_Enemy_dying"]
|
||||
[connection signal="dying" from="Enemy2" to="." method="_on_Enemy_dying"]
|
||||
[connection signal="timeout" from="End" to="." method="_on_Win_timeout"]
|
||||
|
@ -1,10 +1,11 @@
|
||||
[gd_scene load_steps=18 format=2]
|
||||
[gd_scene load_steps=19 format=2]
|
||||
|
||||
[ext_resource path="res://Player.gd" type="Script" id=1]
|
||||
[ext_resource path="res://BlenderStuff/Hand/protohand.obj" type="ArrayMesh" id=2]
|
||||
[ext_resource path="res://Textures/kenney_prototype_textures/purple/texture_01.png" type="Texture" id=3]
|
||||
[ext_resource path="res://HUD.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://Audio/whoosh.wav" type="AudioStream" id=5]
|
||||
[ext_resource path="res://Materials/Black_Contour.tres" type="Material" id=6]
|
||||
[ext_resource path="res://Scripts/HitBox.gd" type="Script" id=7]
|
||||
[ext_resource path="res://Audio/step2.wav" type="AudioStream" id=8]
|
||||
[ext_resource path="res://Audio/step3.wav" type="AudioStream" id=9]
|
||||
@ -21,6 +22,7 @@ height = 3.0
|
||||
extents = Vector3( 0.983522, 2, 1.55035 )
|
||||
|
||||
[sub_resource type="SpatialMaterial" id=4]
|
||||
next_pass = ExtResource( 6 )
|
||||
flags_no_depth_test = true
|
||||
albedo_texture = ExtResource( 3 )
|
||||
uv1_triplanar = true
|
||||
|
Loading…
Reference in New Issue
Block a user