267 lines
6.6 KiB
Plaintext
267 lines
6.6 KiB
Plaintext
[gd_scene load_steps=15 format=2]
|
|
|
|
[ext_resource path="res://gamescene.gd" type="Script" id=1]
|
|
[ext_resource path="res://art/wall.png" type="Texture" id=2]
|
|
[ext_resource path="res://art/bg.png" type="Texture" id=3]
|
|
[ext_resource path="res://Ground.tscn" type="PackedScene" id=4]
|
|
[ext_resource path="res://cam.gd" type="Script" id=5]
|
|
[ext_resource path="res://player.tscn" type="PackedScene" id=6]
|
|
[ext_resource path="res://Wall_Spawner.tscn" type="PackedScene" id=7]
|
|
[ext_resource path="res://Effects.gd" type="Script" id=8]
|
|
[ext_resource path="res://WallOfDeath.tscn" type="PackedScene" id=9]
|
|
[ext_resource path="res://art/player.png" type="Texture" id=10]
|
|
[ext_resource path="res://RunTimeInfo.tscn" type="PackedScene" id=11]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
|
|
custom_solver_bias = 0.0
|
|
extents = Vector2( 32, 15.6897 )
|
|
|
|
[sub_resource type="Shader" id=2]
|
|
|
|
code = "shader_type canvas_item;
|
|
uniform float sweep_pos;
|
|
|
|
void fragment(){
|
|
if(UV.x < sweep_pos)
|
|
COLOR = vec4(0,0,0,1);
|
|
else
|
|
discard;
|
|
}"
|
|
|
|
[sub_resource type="ShaderMaterial" id=3]
|
|
|
|
render_priority = 0
|
|
shader = SubResource( 2 )
|
|
shader_param/sweep_pos = null
|
|
|
|
[node name="Gamescene" type="Node2D" index="0"]
|
|
|
|
script = ExtResource( 1 )
|
|
_sections_unfolded = [ "Material" ]
|
|
starting_wall_diff = 1
|
|
starting_laser_diff = 1
|
|
input_map_seed = -1
|
|
|
|
[node name="leveltimer" type="Timer" parent="." index="0"]
|
|
|
|
process_mode = 1
|
|
wait_time = 3.0
|
|
one_shot = true
|
|
autostart = true
|
|
|
|
[node name="fieldwall" type="StaticBody2D" parent="." index="1"]
|
|
|
|
editor/display_folded = true
|
|
position = Vector2( 320, -16 )
|
|
scale = Vector2( 10.125, 1 )
|
|
input_pickable = false
|
|
collision_layer = 1
|
|
collision_mask = 1
|
|
constant_linear_velocity = Vector2( 0, 0 )
|
|
constant_angular_velocity = 0.0
|
|
friction = 1.0
|
|
bounce = 0.0
|
|
__meta__ = {
|
|
"_edit_lock_": true
|
|
}
|
|
|
|
[node name="Sprite" type="Sprite" parent="fieldwall" index="0"]
|
|
|
|
texture = ExtResource( 2 )
|
|
_sections_unfolded = [ "Animation", "Transform" ]
|
|
__meta__ = {
|
|
"_edit_lock_": true
|
|
}
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="fieldwall" index="1"]
|
|
|
|
position = Vector2( 0, -1.67308 )
|
|
scale = Vector2( 1, 0.945607 )
|
|
shape = SubResource( 1 )
|
|
__meta__ = {
|
|
"_edit_lock_": true
|
|
}
|
|
|
|
[node name="bg" type="Sprite" parent="." index="2"]
|
|
|
|
position = Vector2( 320, 240 )
|
|
z_index = -1
|
|
texture = ExtResource( 3 )
|
|
region_enabled = true
|
|
region_rect = Rect2( 0, 0, 800, 480 )
|
|
_sections_unfolded = [ "Animation", "Offset", "Region", "Z Index" ]
|
|
__meta__ = {
|
|
"_edit_lock_": true
|
|
}
|
|
|
|
[node name="Ground" parent="." index="3" instance=ExtResource( 4 )]
|
|
|
|
n_lines = 15
|
|
x_offset_spd = -250.0
|
|
start_y = 322
|
|
alpha = 0.1
|
|
|
|
[node name="cam" type="Camera2D" parent="." index="4"]
|
|
|
|
position = Vector2( 296, 240 )
|
|
anchor_mode = 1
|
|
rotating = false
|
|
current = true
|
|
zoom = Vector2( 1, 1 )
|
|
limit_left = -10000000
|
|
limit_top = -10000000
|
|
limit_right = 10000000
|
|
limit_bottom = 10000000
|
|
limit_smoothed = false
|
|
drag_margin_h_enabled = true
|
|
drag_margin_v_enabled = true
|
|
smoothing_enabled = false
|
|
smoothing_speed = 5.0
|
|
offset_v = 0.0
|
|
offset_h = 0.0
|
|
drag_margin_left = 0.2
|
|
drag_margin_top = 0.2
|
|
drag_margin_right = 0.2
|
|
drag_margin_bottom = 0.2
|
|
editor_draw_screen = true
|
|
editor_draw_limits = false
|
|
editor_draw_drag_margin = false
|
|
script = ExtResource( 5 )
|
|
_sections_unfolded = [ "Material" ]
|
|
|
|
[node name="Player" parent="." index="5" instance=ExtResource( 6 )]
|
|
|
|
position = Vector2( 199.446, 96.3989 )
|
|
|
|
[node name="Wall_Spawner" parent="." index="6" instance=ExtResource( 7 )]
|
|
|
|
position = Vector2( 630, 80 )
|
|
wall_density = 0.5
|
|
wall_dens_variance = 0.0
|
|
shift_probability = 0.1
|
|
laser_density = 0.5
|
|
ordered_lasers = false
|
|
|
|
[node name="Effects" type="Node2D" parent="." index="7"]
|
|
|
|
editor/display_folded = true
|
|
z_index = 2
|
|
script = ExtResource( 8 )
|
|
_sections_unfolded = [ "Z Index" ]
|
|
|
|
[node name="WallOfDeath" parent="Effects" index="0" instance=ExtResource( 9 )]
|
|
|
|
position = Vector2( -11.0032, 0 )
|
|
z_index = 1
|
|
_sections_unfolded = [ "Material", "Z Index" ]
|
|
|
|
[node name="blackout" type="TextureRect" parent="Effects" index="1"]
|
|
|
|
material = SubResource( 3 )
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = -50.0
|
|
margin_top = -20.0
|
|
margin_right = 680.0
|
|
margin_bottom = 520.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 1
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
texture = ExtResource( 10 )
|
|
expand = true
|
|
stretch_mode = 0
|
|
_sections_unfolded = [ "Material" ]
|
|
|
|
[node name="RunTimeInfo" parent="." index="8" instance=ExtResource( 11 )]
|
|
|
|
visible = false
|
|
margin_left = 430.0
|
|
margin_top = 410.0
|
|
margin_right = 470.0
|
|
margin_bottom = 478.0
|
|
_sections_unfolded = [ "Material", "Pause", "Visibility" ]
|
|
|
|
[node name="DifficultyInfo" type="VBoxContainer" parent="." index="9"]
|
|
|
|
editor/display_folded = true
|
|
visible = false
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 450.0
|
|
margin_top = 10.0
|
|
margin_right = 490.0
|
|
margin_bottom = 60.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 1
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
alignment = 0
|
|
__meta__ = {
|
|
"_edit_group_": true
|
|
}
|
|
|
|
[node name="Wall_diff_label" type="Label" parent="DifficultyInfo" index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_right = 40.0
|
|
margin_bottom = 14.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 2
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 4
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
|
|
[node name="Laser_diff_label" type="Label" parent="DifficultyInfo" index="1"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_top = 18.0
|
|
margin_right = 40.0
|
|
margin_bottom = 32.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 2
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 4
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
|
|
[connection signal="timeout" from="leveltimer" to="." method="_on_leveltimer_timeout"]
|
|
|
|
[connection signal="dead_player" from="Player" to="." method="_on_Player_dead_player"]
|
|
|
|
[connection signal="gameover" from="Player" to="." method="_on_Player_gameover"]
|
|
|
|
[connection signal="bomb_spawned" from="Wall_Spawner" to="." method="_on_Wall_Spawner_bomb_spawned"]
|
|
|
|
[connection signal="laser_spawned" from="Wall_Spawner" to="." method="_on_Wall_Spawner_laser_spawned"]
|
|
|
|
[connection signal="query_player" from="Wall_Spawner" to="." method="_on_Wall_Spawner_query_player"]
|
|
|
|
[connection signal="wall_queue_empty" from="Wall_Spawner" to="." method="increase_difficulty"]
|
|
|
|
[connection signal="wall_spawned" from="Wall_Spawner" to="." method="_on_Wall_Spawner_wall_spawned"]
|
|
|
|
|