Diffstat (limited to 'world/World.tscn')
-rw-r--r--world/World.tscn220
1 files changed, 220 insertions, 0 deletions
diff --git a/world/World.tscn b/world/World.tscn
new file mode 100644
index 0000000..69c5e9c
--- /dev/null
+++ b/world/World.tscn
@@ -0,0 +1,220 @@
+[gd_scene load_steps=16 format=2]
+
+[ext_resource path="res://world/World.gd" type="Script" id=1]
+[ext_resource path="res://ui/scenes/pause.tscn" type="PackedScene" id=2]
+[ext_resource path="res://effects/Stars.tscn" type="PackedScene" id=3]
+[ext_resource path="res://enemy/scenes/EnemySpawner.tscn" type="PackedScene" id=4]
+[ext_resource path="res://ui/scenes/WeaponUi.tscn" type="PackedScene" id=5]
+[ext_resource path="res://world/EnemyHolder.gd" type="Script" id=6]
+[ext_resource path="res://ui/scenes/HpUi.tscn" type="PackedScene" id=7]
+[ext_resource path="res://player/scenes/Ship.tscn" type="PackedScene" id=8]
+[ext_resource path="res://fonts/fonty.tres" type="DynamicFont" id=9]
+[ext_resource path="res://ui/buttontheme.tres" type="Theme" id=10]
+[ext_resource path="res://PowerUp.tscn" type="PackedScene" id=11]
+
+[sub_resource type="Shader" id=6]
+code = "shader_type canvas_item;
+
+uniform float vignette_intensity = 0.4;
+uniform float vignette_opacity : hint_range(0.0, 1.0) = 0.5;
+uniform vec4 vignette_rgb : hint_color = vec4(0.0, 0.0, 0.0, 1.0);
+
+float vignette(vec2 uv){
+ uv *= 1.0 - uv.xy;
+ float vignette = uv.x * uv.y * 15.0;
+ return pow(vignette, vignette_intensity * vignette_opacity);
+}
+
+void fragment(){
+ vec4 color = texture(SCREEN_TEXTURE, SCREEN_UV);
+ vec4 text = texture(TEXTURE, UV);
+
+ text.rgba *= (vignette_rgb.rgba);
+ text.rgba *= (1.0 - vignette(UV));
+
+ COLOR = vec4((text.rgb)*color.rgb,text.a);
+}"
+
+[sub_resource type="ShaderMaterial" id=7]
+shader = SubResource( 6 )
+shader_param/vignette_intensity = 4.829
+shader_param/vignette_opacity = 0.12
+shader_param/vignette_rgb = Color( 0, 0, 0, 1 )
+
+[sub_resource type="RectangleShape2D" id=4]
+extents = Vector2( 19.125, 183 )
+
+[sub_resource type="TileSet" id=5]
+0/name = "bitmaskexample.png 0"
+0/tex_offset = Vector2( 0, 0 )
+0/modulate = Color( 1, 1, 1, 1 )
+0/region = Rect2( 0, 0, 9, 9 )
+0/tile_mode = 1
+0/autotile/bitmask_mode = 1
+0/autotile/bitmask_flags = [ Vector2( 0, 0 ), 176, Vector2( 0, 1 ), 146, Vector2( 0, 2 ), 50, Vector2( 1, 0 ), 56, Vector2( 1, 2 ), 56, Vector2( 2, 0 ), 152, Vector2( 2, 1 ), 146, Vector2( 2, 2 ), 26 ]
+0/autotile/icon_coordinate = Vector2( 0, 0 )
+0/autotile/tile_size = Vector2( 3, 3 )
+0/autotile/spacing = 0
+0/autotile/occluder_map = [ ]
+0/autotile/navpoly_map = [ ]
+0/autotile/priority_map = [ ]
+0/autotile/z_index_map = [ ]
+0/occluder_offset = Vector2( 0, 0 )
+0/navigation_offset = Vector2( 0, 0 )
+0/shape_offset = Vector2( 0, 0 )
+0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
+0/shape_one_way = false
+0/shape_one_way_margin = 0.0
+0/shapes = [ ]
+0/z_index = 0
+
+[node name="World" type="Node" groups=["World"]]
+script = ExtResource( 1 )
+
+[node name="Camera2D" type="Camera2D" parent="."]
+position = Vector2( 160, 90 )
+z_index = 1
+current = true
+
+[node name="EnemyHolder" type="Node2D" parent="."]
+script = ExtResource( 6 )
+
+[node name="CanvasLayer2" type="Control" parent="."]
+anchor_right = 1.0
+anchor_bottom = 1.0
+
+[node name="ColorRect" type="ColorRect" parent="CanvasLayer2"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+margin_left = -24.0
+margin_top = -22.0
+margin_right = 28.0
+margin_bottom = 19.0
+color = Color( 0.105882, 0.105882, 0.105882, 1 )
+
+[node name="Background" type="Control" parent="CanvasLayer2"]
+material = SubResource( 7 )
+anchor_right = 1.0
+anchor_bottom = 1.0
+__meta__ = {
+"_edit_lock_": true
+}
+
+[node name="WeaponUi" parent="CanvasLayer2/Background" instance=ExtResource( 5 )]
+margin_left = 31.0
+margin_top = 5.0
+margin_right = -269.0
+margin_bottom = -159.0
+
+[node name="HpUi" parent="CanvasLayer2/Background" instance=ExtResource( 7 )]
+margin_left = 242.0
+margin_top = 5.0
+margin_right = -11.0
+margin_bottom = -164.0
+
+[node name="ScoreLabel" type="Label" parent="CanvasLayer2/Background"]
+anchor_right = 1.0
+margin_left = 57.0
+margin_top = 5.0
+margin_right = -80.0
+margin_bottom = 22.0
+custom_fonts/font = ExtResource( 9 )
+text = "Score = 0"
+align = 1
+autowrap = true
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="powerup" type="Label" parent="CanvasLayer2/Background"]
+visible = false
+anchor_right = 1.0
+margin_left = 134.0
+margin_top = 156.0
+margin_right = -3.0
+margin_bottom = 173.0
+custom_fonts/font = ExtResource( 9 )
+text = "POWER UP!!!"
+align = 1
+autowrap = true
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="Stars" parent="CanvasLayer2/Background" instance=ExtResource( 3 )]
+
+[node name="EnemySpawner" parent="CanvasLayer2/Background" instance=ExtResource( 4 )]
+position = Vector2( 320, 0 )
+
+[node name="walls" type="StaticBody2D" parent="CanvasLayer2/Background"]
+position = Vector2( -15, 0 )
+collision_layer = 8
+collision_mask = 16
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="CanvasLayer2/Background/walls"]
+position = Vector2( -3, 80 )
+shape = SubResource( 4 )
+
+[node name="left" type="Position2D" parent="CanvasLayer2/Background/walls/CollisionShape2D"]
+position = Vector2( 19, -79 )
+
+[node name="bottom" type="Position2D" parent="CanvasLayer2/Background/walls/CollisionShape2D"]
+position = Vector2( 19, 100 )
+
+[node name="CollisionShape2D4" type="CollisionShape2D" parent="CanvasLayer2/Background/walls"]
+position = Vector2( 378, 90 )
+shape = SubResource( 4 )
+
+[node name="CollisionShape2D2" type="CollisionShape2D" parent="CanvasLayer2/Background/walls"]
+position = Vector2( 175, 198 )
+rotation = 1.5708
+shape = SubResource( 4 )
+
+[node name="CollisionShape2D3" type="CollisionShape2D" parent="CanvasLayer2/Background/walls"]
+position = Vector2( 175, -18 )
+rotation = 1.5708
+shape = SubResource( 4 )
+
+[node name="pause" parent="CanvasLayer2/Background" instance=ExtResource( 2 )]
+visible = false
+
+[node name="anouncementlabel" type="Label" parent="CanvasLayer2/Background"]
+margin_left = 3.0
+margin_top = 163.0
+margin_right = 189.0
+margin_bottom = 177.0
+theme = ExtResource( 10 )
+align = 1
+
+[node name="confetti" type="CPUParticles2D" parent="CanvasLayer2/Background/anouncementlabel"]
+show_behind_parent = true
+position = Vector2( 83, 2 )
+emitting = false
+amount = 80
+emission_shape = 2
+emission_rect_extents = Vector2( 80, 2 )
+direction = Vector2( 0, -1 )
+spread = 140.0
+gravity = Vector2( 0, -50 )
+initial_velocity = 20.0
+linear_accel = 20.0
+scale_amount = 3.0
+scale_amount_random = 1.0
+color = Color( 0.968627, 0, 1, 1 )
+hue_variation = 1.0
+hue_variation_random = 1.0
+
+[node name="Ship" parent="CanvasLayer2/Background" instance=ExtResource( 8 )]
+position = Vector2( 25, 77 )
+z_index = 1
+
+[node name="TileMap" type="TileMap" parent="."]
+tile_set = SubResource( 5 )
+cell_size = Vector2( 3, 3 )
+format = 1
+tile_data = PoolIntArray( 5177420, 0, 0, 5177421, 0, 0, 5177422, 0, 0, 5177423, 0, 0, 5177424, 0, 0, 5242956, 0, 0, 5242960, 0, 0, 5308492, 0, 0, 5308496, 0, 0, 5374028, 0, 0, 5374029, 0, 0, 5374030, 0, 0, 5374031, 0, 0, 5374032, 0, 0 )
+
+[node name="PowerUp" parent="." instance=ExtResource( 11 )]
+position = Vector2( 226, 57 )
+
+[connection signal="player_death" from="CanvasLayer2/Background/Ship" to="." method="_on_Ship_player_death"]