From c759f920c9a2d6d65ea8f6bc95d2c19d1719b444 Mon Sep 17 00:00:00 2001 From: Delta-key Date: Fri, 3 Jul 2020 23:14:33 -0300 Subject: [PATCH] Added a BG node to every stage --- Scenes/bg_layer.tscn | 3 + Scenes/player_default/player.tscn | 3 - Scenes/stages/1.tscn | 74 +++++-------------- Scenes/stages/10.tscn | 112 ++++++----------------------- Scenes/stages/12.tscn | 87 ++++++----------------- Scenes/stages/13.tscn | 104 ++++++--------------------- Scenes/stages/14.tscn | 114 +++++++----------------------- Scenes/stages/15.tscn | 73 +++++-------------- Scenes/stages/16.tscn | 91 ++++++------------------ Scenes/stages/17.tscn | 75 ++++---------------- Scenes/stages/18.tscn | 84 ++++------------------ Scenes/stages/19.tscn | 98 +++++-------------------- Scenes/stages/2.tscn | 74 +++++-------------- Scenes/stages/20.tscn | 112 +++++------------------------ Scenes/stages/21.tscn | 102 ++++---------------------- Scenes/stages/3.tscn | 76 +++++--------------- Scenes/stages/4.tscn | 55 ++++---------- Scenes/stages/5.tscn | 50 +++---------- Scenes/stages/6.tscn | 93 ++++++------------------ Scenes/stages/7.tscn | 78 +++++--------------- Scenes/stages/8.tscn | 85 ++++++---------------- Scenes/stages/9.tscn | 79 +++++---------------- 22 files changed, 363 insertions(+), 1359 deletions(-) diff --git a/Scenes/bg_layer.tscn b/Scenes/bg_layer.tscn index 803e02c..5a8160a 100644 --- a/Scenes/bg_layer.tscn +++ b/Scenes/bg_layer.tscn @@ -10,6 +10,9 @@ func _ready(): i.global_position.x=rand_range(16,384-16) i.global_position.y=rand_range(16,216-16) $parallax_layer.add_child(i) + set_process(true) +func _process(delta): + self.offset.x=-0.02*(global.player.global_position.x-384/2) " [node name="bg" type="ParallaxBackground"] diff --git a/Scenes/player_default/player.tscn b/Scenes/player_default/player.tscn index 2a1b6b8..8674745 100644 --- a/Scenes/player_default/player.tscn +++ b/Scenes/player_default/player.tscn @@ -263,9 +263,6 @@ bus = "sfx" stream = ExtResource( 9 ) volume_db = -1.0 bus = "sfx" - -[node name="camera2D" type="Camera2D" parent="."] -anchor_mode = 0 [connection signal="tween_completed" from="twn_dive" to="." method="_on_twn_dive_tween_completed"] [connection signal="tween_started" from="twn_dive" to="." method="_on_twn_dive_tween_started"] [connection signal="timeout" from="timers/tmr_spritetrail" to="." method="_on_tmr_spritetrail_timeout"] diff --git a/Scenes/stages/1.tscn b/Scenes/stages/1.tscn index c84c218..53331d5 100644 --- a/Scenes/stages/1.tscn +++ b/Scenes/stages/1.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=11 format=2] +[gd_scene load_steps=12 format=2] [ext_resource path="res://Scenes/twn_stagefadein.tscn" type="PackedScene" id=1] [ext_resource path="res://Resources/tilemap.tres" type="TileSet" id=2] @@ -9,9 +9,9 @@ [ext_resource path="res://Scenes/player_default/player.tscn" type="PackedScene" id=7] [ext_resource path="res://Scenes/vine.tscn" type="PackedScene" id=8] [ext_resource path="res://Scenes/grass.tscn" type="PackedScene" id=9] +[ext_resource path="res://Scenes/bg_layer.tscn" type="PackedScene" id=10] [sub_resource type="GDScript" id=1] - resource_name = "tilemap_as_well" script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! @@ -38,100 +38,62 @@ func _ready(): if(randf()<0.1): tile_index+=randi()%12 set_cell(x, y, tile_index) print('Tilemap: Autotiling done!')" -_sections_unfolded = [ "Resource" ] -[node name="stage" type="Node2D" index="0"] +[node name="stage" type="Node2D"] -[node name="twn_stagefadein" parent="." index="0" instance=ExtResource( 1 )] +[node name="twn_stagefadein" parent="." instance=ExtResource( 1 )] -[node name="stage" type="Control" parent="." index="1"] +[node name="bg" parent="." instance=ExtResource( 10 )] -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="stage" type="Control" parent="."] margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Material", "Rect" ] - -[node name="tilemap" type="TileMap" parent="stage" index="0"] +[node name="tilemap" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 2 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( -1, 0, 0, -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, -65533, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65525, 0, 0, -65524, 0, 0, -65523, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -65512, 0, 0, 65535, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7, 0, 0, 8, 0, 0, 9, 0, 0, 10, 0, 0, 11, 0, 0, 12, 0, 0, 13, 0, 0, 14, 0, 0, 15, 0, 0, 16, 0, 0, 17, 0, 0, 18, 0, 0, 19, 0, 0, 20, 0, 0, 21, 0, 0, 22, 0, 0, 23, 0, 0, 24, 0, 0, 131071, 0, 0, 65536, 0, 0, 65537, 0, 0, 65538, 0, 0, 65539, 0, 0, 65540, 0, 0, 65541, 0, 0, 65542, 0, 0, 65543, 0, 0, 65544, 0, 0, 65545, 0, 0, 65546, 0, 0, 65547, 0, 0, 65548, 0, 0, 65549, 0, 0, 65550, 0, 0, 65551, 0, 0, 65552, 0, 0, 65553, 0, 0, 65554, 0, 0, 65555, 0, 0, 65556, 0, 0, 65557, 0, 0, 65558, 0, 0, 65559, 0, 0, 65560, 0, 0, 196607, 0, 0, 131072, 0, 0, 131073, 0, 0, 131074, 0, 0, 131075, 0, 0, 131076, 0, 0, 131077, 0, 0, 131078, 0, 0, 131079, 0, 0, 131080, 0, 0, 131081, 0, 0, 131082, 0, 0, 131083, 0, 0, 131084, 0, 0, 131085, 0, 0, 131086, 0, 0, 131087, 0, 0, 131088, 0, 0, 131089, 0, 0, 131090, 0, 0, 131091, 0, 0, 131092, 0, 0, 131093, 0, 0, 131094, 0, 0, 131095, 0, 0, 131096, 0, 0, 262143, 0, 0, 196608, 0, 0, 196609, 0, 0, 196610, 0, 0, 196611, 0, 0, 196612, 0, 0, 196613, 0, 0, 196614, 0, 0, 196615, 0, 0, 196616, 0, 0, 196617, 0, 0, 196618, 0, 0, 196619, 0, 0, 196620, 0, 0, 196621, 0, 0, 196622, 0, 0, 196623, 0, 0, 196624, 0, 0, 196625, 0, 0, 196626, 0, 0, 196627, 0, 0, 196628, 0, 0, 196629, 0, 0, 196630, 0, 0, 196631, 0, 0, 196632, 0, 0, 327679, 0, 0, 262144, 0, 0, 262145, 0, 0, 262146, 0, 0, 262147, 0, 0, 262148, 0, 0, 262149, 0, 0, 262150, 0, 0, 262151, 0, 0, 262152, 0, 0, 262153, 0, 0, 262154, 0, 0, 262155, 0, 0, 262156, 0, 0, 262157, 0, 0, 262158, 0, 0, 262159, 0, 0, 262160, 0, 0, 262161, 0, 0, 262162, 0, 0, 262163, 0, 0, 262164, 0, 0, 262165, 0, 0, 262166, 0, 0, 262167, 0, 0, 262168, 0, 0, 393215, 0, 0, 327680, 0, 0, 327681, 0, 0, 327682, 0, 0, 327683, 0, 0, 327684, 0, 0, 327685, 0, 0, 327686, 0, 0, 327687, 0, 0, 327688, 0, 0, 327689, 0, 0, 327690, 0, 0, 327691, 0, 0, 327692, 0, 0, 327693, 0, 0, 327694, 0, 0, 327695, 0, 0, 327696, 0, 0, 327697, 0, 0, 327698, 0, 0, 327699, 0, 0, 327700, 0, 0, 327701, 0, 0, 327702, 0, 0, 327703, 0, 0, 327704, 0, 0, 458751, 0, 0, 393216, 0, 0, 393217, 0, 0, 393218, 0, 0, 393219, 0, 0, 393220, 0, 0, 393222, 0, 0, 393223, 0, 0, 393224, 0, 0, 393225, 0, 0, 393236, 0, 0, 393237, 0, 0, 393238, 0, 0, 393239, 0, 0, 393240, 0, 0, 524287, 0, 0, 458752, 0, 0, 458753, 0, 0, 458754, 0, 0, 458773, 0, 0, 458774, 0, 0, 458775, 0, 0, 458776, 0, 0, 589823, 0, 0, 524288, 0, 0, 524289, 0, 0, 524308, 0, 0, 524309, 0, 0, 524310, 0, 0, 524311, 0, 0, 524312, 0, 0, 655359, 0, 0, 589824, 0, 0, 589836, 0, 0, 589837, 0, 0, 589838, 0, 0, 589839, 0, 0, 589840, 0, 0, 589841, 0, 0, 589842, 0, 0, 589843, 0, 0, 589844, 0, 0, 589845, 0, 0, 589846, 0, 0, 589847, 0, 0, 589848, 0, 0, 720895, 0, 0, 655360, 0, 0, 655361, 0, 0, 655368, 0, 0, 655369, 0, 0, 655372, 0, 0, 655373, 0, 0, 655374, 0, 0, 655375, 0, 0, 655376, 0, 0, 655377, 0, 0, 655378, 0, 0, 655379, 0, 0, 655380, 0, 0, 655381, 0, 0, 655382, 0, 0, 655383, 0, 0, 655384, 0, 0, 786431, 0, 0, 720896, 0, 0, 720897, 0, 0, 720898, 0, 0, 720899, 0, 0, 720900, 0, 0, 720901, 0, 0, 720902, 0, 0, 720903, 0, 0, 720904, 0, 0, 720905, 0, 0, 720906, 0, 0, 720907, 0, 0, 720908, 0, 0, 720909, 0, 0, 720910, 0, 0, 720911, 0, 0, 720912, 0, 0, 720913, 0, 0, 720914, 0, 0, 720915, 0, 0, 720916, 0, 0, 720917, 0, 0, 720918, 0, 0, 720919, 0, 0, 720920, 0, 0, 851967, 0, 0, 786432, 0, 0, 786433, 0, 0, 786434, 0, 0, 786435, 0, 0, 786436, 0, 0, 786437, 0, 0, 786438, 0, 0, 786439, 0, 0, 786440, 0, 0, 786441, 0, 0, 786442, 0, 0, 786443, 0, 0, 786444, 0, 0, 786445, 0, 0, 786446, 0, 0, 786447, 0, 0, 786448, 0, 0, 786449, 0, 0, 786450, 0, 0, 786451, 0, 0, 786452, 0, 0, 786453, 0, 0, 786454, 0, 0, 786455, 0, 0, 786456, 0, 0, 917503, 0, 0, 851968, 0, 0, 851969, 0, 0, 851970, 0, 0, 851971, 0, 0, 851972, 0, 0, 851973, 0, 0, 851974, 0, 0, 851975, 0, 0, 851976, 0, 0, 851977, 0, 0, 851978, 0, 0, 851979, 0, 0, 851980, 0, 0, 851981, 0, 0, 851982, 0, 0, 851983, 0, 0, 851984, 0, 0, 851985, 0, 0, 851986, 0, 0, 851987, 0, 0, 851988, 0, 0, 851989, 0, 0, 851990, 0, 0, 851991, 0, 0, 851992, 0, 0, 983039, 0, 0, 917504, 0, 0, 917505, 0, 0, 917506, 0, 0, 917507, 0, 0, 917508, 0, 0, 917509, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 0, 0, 917517, 0, 0, 917518, 0, 0, 917519, 0, 0, 917520, 0, 0, 917521, 0, 0, 917522, 0, 0, 917523, 0, 0, 917524, 0, 0, 917525, 0, 0, 917526, 0, 0, 917527, 0, 0, 917528, 0, 0 ) script = SubResource( 1 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] - -[node name="str_tutorial" parent="stage" index="1" instance=ExtResource( 3 )] +[node name="str_tutorial" parent="stage" instance=ExtResource( 3 )] margin_left = 88.0 margin_top = 136.0 margin_right = 298.0 margin_bottom = 156.0 text = "Press Z to jump" -[node name="str_stagename" parent="stage" index="2" instance=ExtResource( 4 )] - +[node name="str_stagename" parent="stage" instance=ExtResource( 4 )] text = "Stage 2: Going up" -[node name="next_level" parent="stage" index="3" instance=ExtResource( 5 )] - +[node name="next_level" parent="stage" instance=ExtResource( 5 )] position = Vector2( 296, 136 ) next_level = ExtResource( 6 ) -[node name="player" parent="stage" index="4" instance=ExtResource( 7 )] - +[node name="player" parent="stage" instance=ExtResource( 7 )] position = Vector2( 40, 168 ) -_sections_unfolded = [ "Collision", "Material", "Transform", "Z Index" ] - -[node name="vine" parent="stage" index="5" instance=ExtResource( 8 )] +[node name="vine" parent="stage" instance=ExtResource( 8 )] position = Vector2( 216, 104 ) -[node name="vine2" parent="stage" index="6" instance=ExtResource( 8 )] - +[node name="vine2" parent="stage" instance=ExtResource( 8 )] position = Vector2( 328, 120 ) flip_h = true -[node name="grass" parent="stage" index="7" instance=ExtResource( 9 )] - +[node name="grass" parent="stage" instance=ExtResource( 9 )] position = Vector2( 104, 168 ) -[node name="grass2" parent="stage" index="8" instance=ExtResource( 9 )] - +[node name="grass2" parent="stage" instance=ExtResource( 9 )] position = Vector2( 184, 168 ) -[node name="grass3" parent="stage" index="9" instance=ExtResource( 9 )] - +[node name="grass3" parent="stage" instance=ExtResource( 9 )] position = Vector2( 216, 136 ) -[node name="grass4" parent="stage" index="10" instance=ExtResource( 9 )] - +[node name="grass4" parent="stage" instance=ExtResource( 9 )] position = Vector2( 248, 136 ) -[node name="grass5" parent="stage" index="11" instance=ExtResource( 9 )] - +[node name="grass5" parent="stage" instance=ExtResource( 9 )] position = Vector2( 24, 152 ) - - diff --git a/Scenes/stages/10.tscn b/Scenes/stages/10.tscn index cd0584d..558799b 100644 --- a/Scenes/stages/10.tscn +++ b/Scenes/stages/10.tscn @@ -12,7 +12,6 @@ [ext_resource path="res://Scenes/grass.tscn" type="PackedScene" id=10] [sub_resource type="GDScript" id=1] - script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! var grid_size = Vector2(25,16) @@ -40,21 +39,16 @@ func _ready(): print('Tilemap: Autotiling done!')" [sub_resource type="Curve2D" id=2] - -bake_interval = 5.0 _data = { "points": PoolVector2Array( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 144 ) } [sub_resource type="Curve2D" id=3] - -bake_interval = 5.0 _data = { "points": PoolVector2Array( 0, 0, 0, 0, 0, -4.76099, 0, 0, 0, 0, 3.05176e-05, 75.239 ) } [sub_resource type="GDScript" id=4] - script/source = "extends Path2D export (bool) var loop=false export (float) var duration=1.0 @@ -68,10 +62,8 @@ func _ready(): func _on_twn_offset_tween_completed(object, key): self.target_offset=0 if spotlight_on_rails.unit_offset>0.9 else 1 _ready()" -_sections_unfolded = [ "Resource" ] [sub_resource type="GDScript" id=5] - script/source = "extends Node2D func _ready(): @@ -85,155 +77,93 @@ func _process(delta): get_tree().reload_current_scene() #@Make a better gameover self.modulate.r=30" -[node name="stage" type="Node2D" index="0"] +[node name="stage" type="Node2D"] -[node name="bg" parent="." index="0" instance=ExtResource( 1 )] +[node name="bg" parent="." instance=ExtResource( 1 )] -[node name="twn_stagefadein" parent="." index="1" instance=ExtResource( 2 )] +[node name="twn_stagefadein" parent="." instance=ExtResource( 2 )] -[node name="stage" type="Control" parent="." index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="stage" type="Control" parent="."] margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Material", "Rect" ] - -[node name="tilemap" type="TileMap" parent="stage" index="0"] +[node name="tilemap" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 3 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( -1, 0, 0, -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, -65533, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65525, 0, 0, -65524, 0, 0, -65523, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -65512, 0, 0, 65535, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7, 0, 0, 8, 0, 0, 9, 0, 0, 10, 0, 0, 11, 0, 0, 12, 0, 0, 13, 0, 0, 14, 0, 0, 15, 0, 0, 16, 0, 0, 17, 0, 0, 18, 0, 0, 19, 0, 0, 20, 0, 0, 21, 0, 0, 22, 0, 0, 23, 0, 0, 24, 0, 0, 131071, 0, 0, 65536, 0, 0, 65537, 0, 0, 65538, 0, 0, 65539, 0, 0, 65540, 0, 0, 65541, 0, 0, 65542, 0, 0, 65545, 0, 0, 65546, 0, 0, 65547, 0, 0, 65549, 0, 0, 65550, 0, 0, 65551, 0, 0, 65552, 0, 0, 65553, 0, 0, 65559, 0, 0, 65560, 0, 0, 196607, 0, 0, 131072, 0, 0, 131073, 0, 0, 131074, 0, 0, 131075, 0, 0, 131076, 0, 0, 131081, 0, 0, 131082, 0, 0, 131086, 0, 0, 131087, 0, 0, 131088, 0, 0, 131095, 0, 0, 131096, 0, 0, 262143, 0, 0, 196608, 0, 0, 196609, 0, 0, 196610, 0, 0, 196622, 0, 0, 196623, 0, 0, 196631, 0, 0, 196632, 0, 0, 327679, 0, 0, 262144, 0, 0, 262145, 0, 0, 262164, 0, 0, 262165, 0, 0, 262166, 0, 0, 262167, 0, 0, 262168, 0, 0, 393215, 0, 0, 327680, 0, 0, 327699, 0, 0, 327700, 0, 0, 327703, 0, 0, 327704, 0, 0, 458751, 0, 0, 393216, 0, 0, 393231, 0, 0, 393232, 0, 0, 393233, 0, 0, 393235, 0, 0, 393239, 0, 0, 393240, 0, 0, 524287, 0, 0, 458752, 0, 0, 458762, 0, 0, 458766, 0, 0, 458767, 0, 0, 458774, 0, 0, 458775, 0, 0, 458776, 0, 0, 589823, 0, 0, 524288, 0, 0, 524292, 0, 0, 524293, 0, 0, 524294, 0, 0, 524297, 0, 0, 524298, 0, 0, 524302, 0, 0, 524309, 0, 0, 524310, 0, 0, 524311, 0, 0, 524312, 0, 0, 655359, 0, 0, 589824, 0, 0, 589825, 0, 0, 589826, 0, 0, 589827, 0, 0, 589828, 0, 0, 589829, 0, 0, 589830, 0, 0, 589832, 0, 0, 589833, 0, 0, 589834, 0, 0, 589837, 0, 0, 589838, 0, 0, 589839, 0, 0, 589844, 0, 0, 589845, 0, 0, 589846, 0, 0, 589847, 0, 0, 589848, 0, 0, 720895, 0, 0, 655360, 0, 0, 655361, 0, 0, 655362, 0, 0, 655363, 0, 0, 655364, 0, 0, 655365, 0, 0, 655366, 0, 0, 655368, 0, 0, 655369, 0, 0, 655370, 0, 0, 655373, 0, 0, 655374, 0, 0, 655375, 0, 0, 655376, 0, 0, 655379, 0, 0, 655380, 0, 0, 655381, 0, 0, 655382, 0, 0, 655383, 0, 0, 655384, 0, 0, 786431, 0, 0, 720896, 0, 0, 720897, 0, 0, 720898, 0, 0, 720899, 0, 0, 720900, 0, 0, 720901, 0, 0, 720902, 0, 0, 720904, 0, 0, 720905, 0, 0, 720906, 0, 0, 720908, 0, 0, 720909, 0, 0, 720910, 0, 0, 720911, 0, 0, 720912, 0, 0, 720913, 0, 0, 720915, 0, 0, 720916, 0, 0, 720917, 0, 0, 720918, 0, 0, 720919, 0, 0, 720920, 0, 0, 851967, 0, 0, 786432, 0, 0, 786433, 0, 0, 786434, 0, 0, 786435, 0, 0, 786436, 0, 0, 786437, 0, 0, 786438, 0, 0, 786439, 0, 0, 786440, 0, 0, 786441, 0, 0, 786442, 0, 0, 786443, 0, 0, 786444, 0, 0, 786445, 0, 0, 786446, 0, 0, 786447, 0, 0, 786448, 0, 0, 786449, 0, 0, 786450, 0, 0, 786451, 0, 0, 786452, 0, 0, 786453, 0, 0, 786454, 0, 0, 786455, 0, 0, 786456, 0, 0, 917503, 0, 0, 851968, 0, 0, 851969, 0, 0, 851970, 0, 0, 851971, 0, 0, 851972, 0, 0, 851973, 0, 0, 851974, 0, 0, 851975, 0, 0, 851976, 0, 0, 851977, 0, 0, 851978, 0, 0, 851979, 0, 0, 851980, 0, 0, 851981, 0, 0, 851982, 0, 0, 851983, 0, 0, 851984, 0, 0, 851985, 0, 0, 851986, 0, 0, 851987, 0, 0, 851988, 0, 0, 851989, 0, 0, 851990, 0, 0, 851991, 0, 0, 851992, 0, 0, 983039, 0, 0, 917504, 0, 0, 917505, 0, 0, 917506, 0, 0, 917507, 0, 0, 917508, 0, 0, 917509, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 0, 0, 917517, 0, 0, 917518, 0, 0, 917519, 0, 0, 917520, 0, 0, 917521, 0, 0, 917522, 0, 0, 917523, 0, 0, 917524, 0, 0, 917525, 0, 0, 917526, 0, 0, 917527, 0, 0, 917528, 0, 0 ) script = SubResource( 1 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] -[node name="spotlight_on_rails" parent="stage" index="1" instance=ExtResource( 4 )] - -editor/display_folded = true +[node name="spotlight_on_rails" parent="stage" instance=ExtResource( 4 )] position = Vector2( 120, 40 ) curve = SubResource( 2 ) duration = 1.25 [node name="spotlight" parent="stage/spotlight_on_rails/path_follow_2d" index="0"] - polygon = PoolVector2Array( -16, 224, 16, 224, 0.0959015, 0.603569 ) -[node name="spotlight_on_rails2" parent="stage" index="2" instance=ExtResource( 4 )] - -editor/display_folded = true +[node name="spotlight_on_rails2" parent="stage" instance=ExtResource( 4 )] position = Vector2( 200, 40 ) curve = SubResource( 2 ) duration = 1.3 [node name="path_follow_2d" parent="stage/spotlight_on_rails2" index="1"] - position = Vector2( 0, 14.4098 ) offset = 14.4074 [node name="spotlight" parent="stage/spotlight_on_rails2/path_follow_2d" index="0"] - polygon = PoolVector2Array( -32, 224, 32, 224, 0.0959015, 0.603569 ) -[node name="spotlight_on_rails3" type="Path2D" parent="stage" index="3"] - -editor/display_folded = true +[node name="spotlight_on_rails3" type="Path2D" parent="stage"] position = Vector2( 296, 179.239 ) rotation = 3.14159 curve = SubResource( 3 ) script = SubResource( 4 ) -_sections_unfolded = [ "Transform" ] -loop = false duration = 1.35 -[node name="twn_offset" type="Tween" parent="stage/spotlight_on_rails3" index="0"] - -repeat = false -playback_process_mode = 1 -playback_speed = 1.0 -playback/active = false -playback/repeat = false -playback/speed = 1.0 - -[node name="path_follow_2d" type="PathFollow2D" parent="stage/spotlight_on_rails3" index="1"] +[node name="twn_offset" type="Tween" parent="stage/spotlight_on_rails3"] +[node name="path_follow_2d" type="PathFollow2D" parent="stage/spotlight_on_rails3"] position = Vector2( 0, -4.76099 ) -offset = 0.0 -h_offset = 0.0 -v_offset = 0.0 rotate = false -cubic_interp = true loop = false -lookahead = 4.0 -_sections_unfolded = [ "Transform", "Z Index" ] - -[node name="spotlight" parent="stage/spotlight_on_rails3/path_follow_2d" index="0" instance=ExtResource( 5 )] +[node name="spotlight" parent="stage/spotlight_on_rails3/path_follow_2d" instance=ExtResource( 5 )] polygon = PoolVector2Array( -16, 299.239, 16, 299.239, 0.0959015, 0.603569 ) script = SubResource( 5 ) -[node name="next_level" parent="stage" index="4" instance=ExtResource( 6 )] - +[node name="next_level" parent="stage" instance=ExtResource( 6 )] position = Vector2( 344, 56 ) next_level = ExtResource( 7 ) -[node name="player" parent="stage" index="5" instance=ExtResource( 8 )] - +[node name="player" parent="stage" instance=ExtResource( 8 )] position = Vector2( 40, 136 ) -_sections_unfolded = [ "Collision", "Material", "Transform", "Z Index" ] - -[node name="str_stagename" parent="stage" index="6" instance=ExtResource( 9 )] +[node name="str_stagename" parent="stage" instance=ExtResource( 9 )] text = "Stage 11: Invisible rails" -[node name="grass" parent="stage" index="7" instance=ExtResource( 10 )] - +[node name="grass" parent="stage" instance=ExtResource( 10 )] position = Vector2( 88, 120 ) -[node name="grass2" parent="stage" index="8" instance=ExtResource( 10 )] - +[node name="grass2" parent="stage" instance=ExtResource( 10 )] position = Vector2( 168, 104 ) -[node name="grass3" parent="stage" index="9" instance=ExtResource( 10 )] - +[node name="grass3" parent="stage" instance=ExtResource( 10 )] position = Vector2( 264, 152 ) -[node name="grass4" parent="stage" index="10" instance=ExtResource( 10 )] - +[node name="grass4" parent="stage" instance=ExtResource( 10 )] position = Vector2( 280, 88 ) -[node name="grass5" parent="stage" index="11" instance=ExtResource( 10 )] - +[node name="grass5" parent="stage" instance=ExtResource( 10 )] position = Vector2( 360, 104 ) -[node name="grass6" parent="stage" index="12" instance=ExtResource( 10 )] - +[node name="grass6" parent="stage" instance=ExtResource( 10 )] position = Vector2( 312, 72 ) - [connection signal="tween_completed" from="stage/spotlight_on_rails3/twn_offset" to="stage/spotlight_on_rails3" method="_on_twn_offset_tween_completed"] - [editable path="stage/spotlight_on_rails"] + [editable path="stage/spotlight_on_rails2"] diff --git a/Scenes/stages/12.tscn b/Scenes/stages/12.tscn index a7ee2f3..d0cab3e 100644 --- a/Scenes/stages/12.tscn +++ b/Scenes/stages/12.tscn @@ -13,7 +13,6 @@ [ext_resource path="res://Scenes/vine.tscn" type="PackedScene" id=11] [sub_resource type="GDScript" id=1] - script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! var grid_size = Vector2(25,16) @@ -40,135 +39,89 @@ func _ready(): set_cell(x, y, tile_index) print('Tilemap: Autotiling done!')" -[node name="stage" type="Node2D" index="0"] +[node name="stage" type="Node2D"] -[node name="bg" parent="." index="0" instance=ExtResource( 1 )] +[node name="bg" parent="." instance=ExtResource( 1 )] -[node name="twn_stagefadein" parent="." index="1" instance=ExtResource( 2 )] +[node name="twn_stagefadein" parent="." instance=ExtResource( 2 )] -[node name="stage" type="Control" parent="." index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="stage" type="Control" parent="."] margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Material", "Rect" ] -[node name="spotlight_with_button" parent="stage" index="0" instance=ExtResource( 3 )] - -editor/display_folded = true +[node name="spotlight_with_button" parent="stage" instance=ExtResource( 3 )] position = Vector2( 72, 152 ) [node name="line_2d" parent="stage/spotlight_with_button" index="0"] - points = PoolVector2Array( 64, -16, 64, -96, 272, -96, 272, -56 ) [node name="spotlight" parent="stage/spotlight_with_button" index="2"] - position = Vector2( 64, -16 ) polygon = PoolVector2Array( -16, 160, 16, 160, 0.0959015, 0.603569 ) [node name="button" parent="stage/spotlight_with_button" index="3"] - position = Vector2( 272, -64 ) -[node name="tilemap" type="TileMap" parent="stage" index="1"] - +[node name="tilemap" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 4 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( -1, 0, 0, -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, -65533, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65525, 0, 0, -65524, 0, 0, -65523, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -65512, 0, 0, 65535, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7, 0, 0, 8, 0, 0, 9, 0, 0, 10, 0, 0, 11, 0, 0, 12, 0, 0, 13, 0, 0, 14, 0, 0, 15, 0, 0, 16, 0, 0, 17, 0, 0, 18, 0, 0, 19, 0, 0, 20, 0, 0, 21, 0, 0, 22, 0, 0, 23, 0, 0, 24, 0, 0, 131071, 0, 0, 65536, 0, 0, 65537, 0, 0, 65538, 0, 0, 65539, 0, 0, 65540, 0, 0, 65541, 0, 0, 65542, 0, 0, 65549, 0, 0, 65550, 0, 0, 65551, 0, 0, 65552, 0, 0, 65553, 0, 0, 65554, 0, 0, 65557, 0, 0, 65558, 0, 0, 65559, 0, 0, 65560, 0, 0, 196607, 0, 0, 131072, 0, 0, 131076, 0, 0, 131077, 0, 0, 131086, 0, 0, 131087, 0, 0, 131088, 0, 0, 131089, 0, 0, 131094, 0, 0, 131095, 0, 0, 131096, 0, 0, 262143, 0, 0, 196608, 0, 0, 196630, 0, 0, 196631, 0, 0, 196632, 0, 0, 327679, 0, 0, 262144, 0, 0, 262166, 0, 0, 262167, 0, 0, 262168, 0, 0, 393215, 0, 0, 327680, 0, 0, 327693, 0, 0, 327694, 0, 0, 327695, 0, 0, 327696, 0, 0, 327697, 0, 0, 327703, 0, 0, 327704, 0, 0, 458751, 0, 0, 393216, 0, 0, 393223, 0, 0, 393224, 0, 0, 393225, 0, 0, 393226, 0, 0, 393227, 0, 0, 393228, 0, 0, 393229, 0, 0, 393230, 0, 0, 393231, 0, 0, 393232, 0, 0, 393233, 0, 0, 393234, 0, 0, 393235, 0, 0, 393236, 0, 0, 393237, 0, 0, 393238, 0, 0, 393239, 0, 0, 393240, 0, 0, 524287, 0, 0, 458752, 0, 0, 458757, 0, 0, 458758, 0, 0, 458759, 0, 0, 458760, 0, 0, 458775, 0, 0, 458776, 0, 0, 589823, 0, 0, 524288, 0, 0, 524289, 0, 0, 524290, 0, 0, 524291, 0, 0, 524292, 0, 0, 524293, 0, 0, 524294, 0, 0, 524295, 0, 0, 524311, 0, 0, 524312, 0, 0, 655359, 0, 0, 589824, 0, 0, 589825, 0, 0, 589826, 0, 0, 589827, 0, 0, 589828, 0, 0, 589829, 0, 0, 589844, 0, 0, 589845, 0, 0, 589846, 0, 0, 589847, 0, 0, 589848, 0, 0, 720895, 0, 0, 655360, 0, 0, 655361, 0, 0, 655374, 0, 0, 655375, 0, 0, 655376, 0, 0, 655377, 0, 0, 655378, 0, 0, 655379, 0, 0, 655380, 0, 0, 655381, 0, 0, 655382, 0, 0, 655383, 0, 0, 655384, 0, 0, 786431, 0, 0, 720896, 0, 0, 720897, 0, 0, 720907, 0, 0, 720908, 0, 0, 720909, 0, 0, 720910, 0, 0, 720911, 0, 0, 720912, 0, 0, 720913, 0, 0, 720914, 0, 0, 720915, 0, 0, 720916, 0, 0, 720917, 0, 0, 720918, 0, 0, 720919, 0, 0, 720920, 0, 0, 851967, 0, 0, 786432, 0, 0, 786433, 0, 0, 786434, 0, 0, 786435, 0, 0, 786436, 0, 0, 786437, 0, 0, 786438, 0, 0, 786439, 0, 0, 786440, 0, 0, 786441, 0, 0, 786442, 0, 0, 786443, 0, 0, 786444, 0, 0, 786445, 0, 0, 786446, 0, 0, 786447, 0, 0, 786448, 0, 0, 786449, 0, 0, 786450, 0, 0, 786451, 0, 0, 786452, 0, 0, 786453, 0, 0, 786454, 0, 0, 786455, 0, 0, 786456, 0, 0, 917503, 0, 0, 851968, 0, 0, 851969, 0, 0, 851970, 0, 0, 851971, 0, 0, 851972, 0, 0, 851973, 0, 0, 851974, 0, 0, 851975, 0, 0, 851976, 0, 0, 851977, 0, 0, 851978, 0, 0, 851979, 0, 0, 851980, 0, 0, 851981, 0, 0, 851982, 0, 0, 851983, 0, 0, 851984, 0, 0, 851985, 0, 0, 851986, 0, 0, 851987, 0, 0, 851988, 0, 0, 851989, 0, 0, 851990, 0, 0, 851991, 0, 0, 851992, 0, 0, 983039, 0, 0, 917504, 0, 0, 917505, 0, 0, 917506, 0, 0, 917507, 0, 0, 917508, 0, 0, 917509, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 0, 0, 917517, 0, 0, 917518, 0, 0, 917519, 0, 0, 917520, 0, 0, 917521, 0, 0, 917522, 0, 0, 917523, 0, 0, 917524, 0, 0, 917525, 0, 0, 917526, 0, 0, 917527, 0, 0, 917528, 0, 0 ) script = SubResource( 1 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] - -[node name="next_level" parent="stage" index="2" instance=ExtResource( 5 )] +[node name="next_level" parent="stage" instance=ExtResource( 5 )] position = Vector2( 56, 184 ) next_level = ExtResource( 6 ) -[node name="player" parent="stage" index="3" instance=ExtResource( 7 )] - +[node name="player" parent="stage" instance=ExtResource( 7 )] position = Vector2( 40, 104 ) -_sections_unfolded = [ "Collision", "Material", "Transform", "Z Index" ] - -[node name="spotlight_on_timer" parent="stage" index="4" instance=ExtResource( 8 )] +[node name="spotlight_on_timer" parent="stage" instance=ExtResource( 8 )] position = Vector2( 24, 56 ) rotation = -1.5708 polygon = PoolVector2Array( -192, 400, 96, 400, 0.0959015, 0.603569 ) wait_time = 3.0 -[node name="spotlight_on_timer2" parent="stage" index="5" instance=ExtResource( 8 )] - +[node name="spotlight_on_timer2" parent="stage" instance=ExtResource( 8 )] position = Vector2( 360, 120 ) rotation = 0.785398 polygon = PoolVector2Array( -622.254, 825.901, 101.823, 101.823, 0.0959015, 0.603569 ) wait_time = 2.0 -[node name="spotlight_on_timer3" parent="stage" index="6" instance=ExtResource( 8 )] - +[node name="spotlight_on_timer3" parent="stage" instance=ExtResource( 8 )] position = Vector2( 151.517, 120 ) rotation = -0.785398 polygon = PoolVector2Array( -622.254, 825.901, 158.733, 430.262, 0.0959015, 0.603569 ) wait_time = 2.0 -[node name="str_stagename" parent="stage" index="7" instance=ExtResource( 9 )] - +[node name="str_stagename" parent="stage" instance=ExtResource( 9 )] text = "Stage 13: Heavily watched" -[node name="grass" parent="stage" index="8" instance=ExtResource( 10 )] - +[node name="grass" parent="stage" instance=ExtResource( 10 )] position = Vector2( 168, 88 ) -[node name="grass2" parent="stage" index="9" instance=ExtResource( 10 )] - +[node name="grass2" parent="stage" instance=ExtResource( 10 )] position = Vector2( 248, 72 ) -[node name="grass3" parent="stage" index="10" instance=ExtResource( 10 )] - +[node name="grass3" parent="stage" instance=ExtResource( 10 )] position = Vector2( 280, 152 ) -[node name="grass6" parent="stage" index="11" instance=ExtResource( 10 )] - +[node name="grass6" parent="stage" instance=ExtResource( 10 )] position = Vector2( 152, 184 ) -[node name="grass7" parent="stage" index="12" instance=ExtResource( 10 )] - +[node name="grass7" parent="stage" instance=ExtResource( 10 )] position = Vector2( 88, 184 ) -[node name="grass4" parent="stage" index="13" instance=ExtResource( 10 )] - +[node name="grass4" parent="stage" instance=ExtResource( 10 )] position = Vector2( 264, 72 ) -[node name="grass5" parent="stage" index="14" instance=ExtResource( 10 )] - +[node name="grass5" parent="stage" instance=ExtResource( 10 )] position = Vector2( 40, 120 ) -[node name="vine" parent="stage" index="15" instance=ExtResource( 11 )] - +[node name="vine" parent="stage" instance=ExtResource( 11 )] position = Vector2( 232, 120 ) - [editable path="stage/spotlight_with_button"] diff --git a/Scenes/stages/13.tscn b/Scenes/stages/13.tscn index a38cbc9..9baf171 100644 --- a/Scenes/stages/13.tscn +++ b/Scenes/stages/13.tscn @@ -13,7 +13,6 @@ [ext_resource path="res://Scenes/vine.tscn" type="PackedScene" id=11] [sub_resource type="GDScript" id=1] - script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! var grid_size = Vector2(25,16) @@ -42,186 +41,129 @@ func _ready(): [node name="stage" type="Node2D"] -[node name="bg" parent="." index="0" instance=ExtResource( 1 )] +[node name="bg" parent="." instance=ExtResource( 1 )] -[node name="twn_stagefadein" parent="." index="1" instance=ExtResource( 2 )] +[node name="twn_stagefadein" parent="." instance=ExtResource( 2 )] -[node name="stage" type="Control" parent="." index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="stage" type="Control" parent="."] margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Material", "Rect" ] -[node name="spotlight_with_button" parent="stage" index="0" instance=ExtResource( 3 )] - -editor/display_folded = true +[node name="spotlight_with_button" parent="stage" instance=ExtResource( 3 )] position = Vector2( 264, 24 ) [node name="line_2d" parent="stage/spotlight_with_button" index="0"] - points = PoolVector2Array( 0, 0, -64, 0, -64, 64, 0, 64, 0, 96, 0, 160, -192, 160, -192, 32, -128, 32, -128, 72 ) default_color = Color( 0.8, 0.4, 0.8, 1 ) [node name="spotlight" parent="stage/spotlight_with_button" index="2"] - polygon = PoolVector2Array( -16, 240, 16, 240, 0.0959015, 0.603569 ) [node name="button" parent="stage/spotlight_with_button" index="3"] - position = Vector2( -128, 64 ) -[node name="spotlight_with_button2" parent="stage" index="1" instance=ExtResource( 3 )] - -editor/display_folded = true +[node name="spotlight_with_button2" parent="stage" instance=ExtResource( 3 )] position = Vector2( 168, 24 ) [node name="line_2d" parent="stage/spotlight_with_button2" index="0"] - points = PoolVector2Array( 0, 0, 0, 64, 64, 64, 64, 168 ) default_color = Color( 0.8, 0.4, 0.4, 1 ) [node name="spotlight" parent="stage/spotlight_with_button2" index="2"] - polygon = PoolVector2Array( -16, 240, 16, 240, 0.0959015, 0.603569 ) [node name="button" parent="stage/spotlight_with_button2" index="3"] - position = Vector2( 64, 160 ) -[node name="spotlight_with_button3" parent="stage" index="2" instance=ExtResource( 3 )] - -editor/display_folded = true +[node name="spotlight_with_button3" parent="stage" instance=ExtResource( 3 )] position = Vector2( 40, 88 ) [node name="line_2d" parent="stage/spotlight_with_button3" index="0"] - points = PoolVector2Array( 0, 0, 0, 32, 128, 32, 128, 96, 0, 96, 0, 64, 32, 64, 32, 72 ) default_color = Color( 0.4, 0.8, 0.4, 1 ) [node name="spotlight" parent="stage/spotlight_with_button3" index="2"] - rotation = -1.5708 polygon = PoolVector2Array( -16, 400, 16, 400, 0.0959015, 0.603569 ) [node name="button" parent="stage/spotlight_with_button3" index="3"] - position = Vector2( 32, 64 ) -[node name="spotlight_with_button4" parent="stage" index="3" instance=ExtResource( 3 )] - -editor/display_folded = true +[node name="spotlight_with_button4" parent="stage" instance=ExtResource( 3 )] position = Vector2( 72, 24 ) activated = false [node name="line_2d" parent="stage/spotlight_with_button4" index="0"] - points = PoolVector2Array( 0, 0, 32, 0, 32, 32, 32, 128, 128, 128, 128, 168 ) default_color = Color( 0.4, 0.4, 0.8, 1 ) [node name="spotlight" parent="stage/spotlight_with_button4" index="2"] - polygon = PoolVector2Array( -16, 240, 16, 240, 0.0959015, 0.603569 ) [node name="button" parent="stage/spotlight_with_button4" index="3"] - position = Vector2( 128, 160 ) -[node name="spotlight_with_button5" parent="stage" index="4" instance=ExtResource( 3 )] - -editor/display_folded = true +[node name="spotlight_with_button5" parent="stage" instance=ExtResource( 3 )] position = Vector2( 360, 152 ) activated = false [node name="line_2d" parent="stage/spotlight_with_button5" index="0"] - points = PoolVector2Array( 0, 0, 0, -96, -288, -96, -288, -64, -64, -64, -64, 0, -224, 0, -224, 8 ) default_color = Color( 0.8, 0.8, 0, 1 ) [node name="spotlight" parent="stage/spotlight_with_button5" index="2"] - rotation = 1.5708 polygon = PoolVector2Array( -16, 400, 16, 400, 0.0959015, 0.603569 ) [node name="button" parent="stage/spotlight_with_button5" index="3"] - position = Vector2( -224, 0 ) -[node name="tilemap" type="TileMap" parent="stage" index="5"] - +[node name="tilemap" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 4 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( -1, 0, 0, -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, -65533, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65525, 0, 0, -65524, 0, 0, -65523, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -65512, 0, 0, 65535, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7, 0, 0, 8, 0, 0, 9, 0, 0, 10, 0, 0, 11, 0, 0, 12, 0, 0, 13, 0, 0, 14, 0, 0, 15, 0, 0, 16, 0, 0, 17, 0, 0, 18, 0, 0, 19, 0, 0, 20, 0, 0, 21, 0, 0, 22, 0, 0, 23, 0, 0, 24, 0, 0, 131071, 0, 0, 65536, 0, 0, 65537, 0, 0, 65538, 0, 0, 65539, 0, 0, 65541, 0, 0, 65543, 0, 0, 65544, 0, 0, 65545, 0, 0, 65547, 0, 0, 65549, 0, 0, 65551, 0, 0, 65553, 0, 0, 65554, 0, 0, 65555, 0, 0, 65556, 0, 0, 65557, 0, 0, 65558, 0, 0, 65559, 0, 0, 65560, 0, 0, 196607, 0, 0, 131072, 0, 0, 131073, 0, 0, 131074, 0, 0, 131075, 0, 0, 131076, 0, 0, 131077, 0, 0, 131078, 0, 0, 131079, 0, 0, 131080, 0, 0, 131081, 0, 0, 131082, 0, 0, 131083, 0, 0, 131084, 0, 0, 131085, 0, 0, 131086, 0, 0, 131087, 0, 0, 131088, 0, 0, 131089, 0, 0, 131090, 0, 0, 131091, 0, 0, 131092, 0, 0, 131093, 0, 0, 131094, 0, 0, 131095, 0, 0, 131096, 0, 0, 262143, 0, 0, 196608, 0, 0, 196609, 0, 0, 196610, 0, 0, 196611, 0, 0, 196613, 0, 0, 196615, 0, 0, 196617, 0, 0, 196619, 0, 0, 196621, 0, 0, 196623, 0, 0, 196625, 0, 0, 196627, 0, 0, 196629, 0, 0, 196631, 0, 0, 196632, 0, 0, 327679, 0, 0, 262144, 0, 0, 262145, 0, 0, 262146, 0, 0, 262147, 0, 0, 262148, 0, 0, 262149, 0, 0, 262150, 0, 0, 262151, 0, 0, 262152, 0, 0, 262153, 0, 0, 262154, 0, 0, 262155, 0, 0, 262156, 0, 0, 262157, 0, 0, 262158, 0, 0, 262159, 0, 0, 262160, 0, 0, 262161, 0, 0, 262162, 0, 0, 262163, 0, 0, 262164, 0, 0, 262165, 0, 0, 262166, 0, 0, 262167, 0, 0, 262168, 0, 0, 393215, 0, 0, 327680, 0, 0, 327681, 0, 0, 327683, 0, 0, 327685, 0, 0, 327687, 0, 0, 327689, 0, 0, 327691, 0, 0, 327693, 0, 0, 327695, 0, 0, 327697, 0, 0, 327699, 0, 0, 327700, 0, 0, 327701, 0, 0, 327703, 0, 0, 327704, 0, 0, 458751, 0, 0, 393216, 0, 0, 393217, 0, 0, 393218, 0, 0, 393219, 0, 0, 393220, 0, 0, 393221, 0, 0, 393222, 0, 0, 393223, 0, 0, 393224, 0, 0, 393225, 0, 0, 393226, 0, 0, 393227, 0, 0, 393228, 0, 0, 393229, 0, 0, 393230, 0, 0, 393231, 0, 0, 393232, 0, 0, 393233, 0, 0, 393234, 0, 0, 393235, 0, 0, 393236, 0, 0, 393237, 0, 0, 393238, 0, 0, 393239, 0, 0, 393240, 0, 0, 524287, 0, 0, 458752, 0, 0, 458753, 0, 0, 458755, 0, 0, 458757, 0, 0, 458759, 0, 0, 458761, 0, 0, 458763, 0, 0, 458765, 0, 0, 458767, 0, 0, 458769, 0, 0, 458771, 0, 0, 458772, 0, 0, 458773, 0, 0, 458775, 0, 0, 458776, 0, 0, 589823, 0, 0, 524288, 0, 0, 524289, 0, 0, 524290, 0, 0, 524291, 0, 0, 524292, 0, 0, 524293, 0, 0, 524294, 0, 0, 524295, 0, 0, 524296, 0, 0, 524297, 0, 0, 524298, 0, 0, 524299, 0, 0, 524300, 0, 0, 524301, 0, 0, 524302, 0, 0, 524303, 0, 0, 524304, 0, 0, 524305, 0, 0, 524306, 0, 0, 524307, 0, 0, 524308, 0, 0, 524309, 0, 0, 524310, 0, 0, 524311, 0, 0, 524312, 0, 0, 655359, 0, 0, 589824, 0, 0, 589825, 0, 0, 589827, 0, 0, 589829, 0, 0, 589831, 0, 0, 589833, 0, 0, 589835, 0, 0, 589837, 0, 0, 589839, 0, 0, 589841, 0, 0, 589843, 0, 0, 589845, 0, 0, 589847, 0, 0, 589848, 0, 0, 720895, 0, 0, 655360, 0, 0, 655361, 0, 0, 655362, 0, 0, 655363, 0, 0, 655364, 0, 0, 655365, 0, 0, 655366, 0, 0, 655367, 0, 0, 655368, 0, 0, 655369, 0, 0, 655370, 0, 0, 655371, 0, 0, 655372, 0, 0, 655373, 0, 0, 655374, 0, 0, 655375, 0, 0, 655376, 0, 0, 655377, 0, 0, 655378, 0, 0, 655379, 0, 0, 655380, 0, 0, 655381, 0, 0, 655382, 0, 0, 655383, 0, 0, 655384, 0, 0, 786431, 0, 0, 720896, 0, 0, 720897, 0, 0, 720899, 0, 0, 720901, 0, 0, 720903, 0, 0, 720905, 0, 0, 720907, 0, 0, 720909, 0, 0, 720911, 0, 0, 720913, 0, 0, 720914, 0, 0, 720915, 0, 0, 720917, 0, 0, 720918, 0, 0, 720919, 0, 0, 720920, 0, 0, 851967, 0, 0, 786432, 0, 0, 786433, 0, 0, 786434, 0, 0, 786435, 0, 0, 786436, 0, 0, 786437, 0, 0, 786438, 0, 0, 786439, 0, 0, 786440, 0, 0, 786441, 0, 0, 786442, 0, 0, 786443, 0, 0, 786444, 0, 0, 786445, 0, 0, 786446, 0, 0, 786447, 0, 0, 786448, 0, 0, 786449, 0, 0, 786450, 0, 0, 786451, 0, 0, 786452, 0, 0, 786453, 0, 0, 786454, 0, 0, 786455, 0, 0, 786456, 0, 0, 917503, 0, 0, 851968, 0, 0, 851969, 0, 0, 851970, 0, 0, 851971, 0, 0, 851972, 0, 0, 851973, 0, 0, 851974, 0, 0, 851975, 0, 0, 851976, 0, 0, 851977, 0, 0, 851978, 0, 0, 851979, 0, 0, 851980, 0, 0, 851981, 0, 0, 851982, 0, 0, 851983, 0, 0, 851984, 0, 0, 851985, 0, 0, 851986, 0, 0, 851987, 0, 0, 851988, 0, 0, 851989, 0, 0, 851990, 0, 0, 851991, 0, 0, 851992, 0, 0, 983039, 0, 0, 917504, 0, 0, 917505, 0, 0, 917506, 0, 0, 917507, 0, 0, 917508, 0, 0, 917509, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 0, 0, 917517, 0, 0, 917518, 0, 0, 917519, 0, 0, 917520, 0, 0, 917521, 0, 0, 917522, 0, 0, 917523, 0, 0, 917524, 0, 0, 917525, 0, 0, 917526, 0, 0, 917527, 0, 0, 917528, 0, 0 ) script = SubResource( 1 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] -[node name="str_tutorial" parent="stage" index="6" instance=ExtResource( 5 )] - -[node name="next_level" parent="stage" index="7" instance=ExtResource( 6 )] +[node name="str_tutorial" parent="stage" instance=ExtResource( 5 )] +[node name="next_level" parent="stage" instance=ExtResource( 6 )] position = Vector2( 328, 184 ) next_level = ExtResource( 7 ) -[node name="player" parent="stage" index="8" instance=ExtResource( 8 )] - +[node name="player" parent="stage" instance=ExtResource( 8 )] position = Vector2( 200, 120 ) -_sections_unfolded = [ "Collision", "Material", "Transform", "Z Index" ] - -[node name="str_stagename" parent="stage" index="9" instance=ExtResource( 9 )] +[node name="str_stagename" parent="stage" instance=ExtResource( 9 )] text = "Stage 14: Haywire" -[node name="grass" parent="stage" index="10" instance=ExtResource( 10 )] - +[node name="grass" parent="stage" instance=ExtResource( 10 )] position = Vector2( 264, 184 ) -[node name="grass2" parent="stage" index="11" instance=ExtResource( 10 )] - +[node name="grass2" parent="stage" instance=ExtResource( 10 )] position = Vector2( 328, 152 ) -[node name="grass3" parent="stage" index="12" instance=ExtResource( 10 )] - +[node name="grass3" parent="stage" instance=ExtResource( 10 )] position = Vector2( 360, 88 ) -[node name="grass4" parent="stage" index="13" instance=ExtResource( 10 )] - +[node name="grass4" parent="stage" instance=ExtResource( 10 )] position = Vector2( 104, 56 ) -[node name="grass5" parent="stage" index="14" instance=ExtResource( 10 )] - +[node name="grass5" parent="stage" instance=ExtResource( 10 )] position = Vector2( 72, 120 ) -[node name="vine" parent="stage" index="15" instance=ExtResource( 11 )] - +[node name="vine" parent="stage" instance=ExtResource( 11 )] position = Vector2( 296, 56 ) - [editable path="stage/spotlight_with_button"] + [editable path="stage/spotlight_with_button2"] + [editable path="stage/spotlight_with_button3"] + [editable path="stage/spotlight_with_button4"] + [editable path="stage/spotlight_with_button5"] diff --git a/Scenes/stages/14.tscn b/Scenes/stages/14.tscn index 5fc0b09..53ae3f5 100644 --- a/Scenes/stages/14.tscn +++ b/Scenes/stages/14.tscn @@ -14,7 +14,6 @@ [ext_resource path="res://Scenes/vine.tscn" type="PackedScene" id=12] [sub_resource type="GDScript" id=1] - script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! var grid_size = Vector2(25,16) @@ -43,122 +42,76 @@ func _ready(): [node name="stage" type="Node2D"] -[node name="bg" parent="." index="0" instance=ExtResource( 1 )] +[node name="bg" parent="." instance=ExtResource( 1 )] -[node name="twn_stagefadein" parent="." index="1" instance=ExtResource( 2 )] +[node name="twn_stagefadein" parent="." instance=ExtResource( 2 )] -[node name="stage" type="Control" parent="." index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="stage" type="Control" parent="."] margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Material", "Rect" ] -[node name="spotlight_with_button" parent="stage" index="0" instance=ExtResource( 3 )] - -editor/display_folded = true +[node name="spotlight_with_button" parent="stage" instance=ExtResource( 3 )] position = Vector2( 312, 168 ) [node name="line_2d" parent="stage/spotlight_with_button" index="0"] - points = PoolVector2Array( 0, 0, 0, -128, -272, -128, -272, -120 ) [node name="button" parent="stage/spotlight_with_button" index="3"] - position = Vector2( -272, -128 ) -[node name="tilemap" type="TileMap" parent="stage" index="1"] - +[node name="tilemap" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 4 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( -1, 0, 0, -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, -65533, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65525, 0, 0, -65524, 0, 0, -65523, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -65512, 0, 0, 65535, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7, 0, 0, 8, 0, 0, 9, 0, 0, 10, 0, 0, 11, 0, 0, 12, 0, 0, 13, 0, 0, 14, 0, 0, 15, 0, 0, 16, 0, 0, 17, 0, 0, 18, 0, 0, 19, 0, 0, 20, 0, 0, 21, 0, 0, 22, 0, 0, 23, 0, 0, 24, 0, 0, 131071, 0, 0, 65536, 0, 0, 65547, 0, 0, 65548, 0, 0, 65559, 0, 0, 65560, 0, 0, 196607, 0, 0, 131072, 0, 0, 131095, 0, 0, 131096, 0, 0, 262143, 0, 0, 196608, 0, 0, 196609, 0, 0, 196610, 0, 0, 196611, 0, 0, 196612, 0, 0, 196613, 0, 0, 196614, 0, 0, 196615, 0, 0, 196616, 0, 0, 196623, 0, 0, 196624, 0, 0, 196625, 0, 0, 196626, 0, 0, 196627, 0, 0, 196628, 0, 0, 196629, 0, 0, 196630, 0, 0, 196631, 0, 0, 196632, 0, 0, 327679, 0, 0, 262144, 0, 0, 262145, 0, 0, 262146, 0, 0, 262151, 0, 0, 262152, 0, 0, 262153, 0, 0, 262158, 0, 0, 262159, 0, 0, 262160, 0, 0, 262165, 0, 0, 262166, 0, 0, 262167, 0, 0, 262168, 0, 0, 393215, 0, 0, 327680, 0, 0, 327684, 0, 0, 327688, 0, 0, 327689, 0, 0, 327690, 0, 0, 327691, 0, 0, 327692, 0, 0, 327693, 0, 0, 327694, 0, 0, 327695, 0, 0, 327699, 0, 0, 327703, 0, 0, 327704, 0, 0, 458751, 0, 0, 393216, 0, 0, 393219, 0, 0, 393225, 0, 0, 393226, 0, 0, 393227, 0, 0, 393228, 0, 0, 393229, 0, 0, 393230, 0, 0, 393236, 0, 0, 393239, 0, 0, 393240, 0, 0, 524287, 0, 0, 458752, 0, 0, 458753, 0, 0, 458762, 0, 0, 458763, 0, 0, 458764, 0, 0, 458765, 0, 0, 458774, 0, 0, 458775, 0, 0, 458776, 0, 0, 589823, 0, 0, 524288, 0, 0, 524289, 0, 0, 524290, 0, 0, 524299, 0, 0, 524300, 0, 0, 524309, 0, 0, 524310, 0, 0, 524311, 0, 0, 524312, 0, 0, 655359, 0, 0, 589824, 0, 0, 589825, 0, 0, 589826, 0, 0, 589827, 0, 0, 589828, 0, 0, 589829, 0, 0, 589835, 0, 0, 589836, 0, 0, 589842, 0, 0, 589843, 0, 0, 589844, 0, 0, 589845, 0, 0, 589846, 0, 0, 589847, 0, 0, 589848, 0, 0, 720895, 0, 0, 655360, 0, 0, 655361, 0, 0, 655362, 0, 0, 655363, 0, 0, 655365, 0, 0, 655366, 0, 0, 655367, 0, 0, 655368, 0, 0, 655369, 0, 0, 655371, 0, 0, 655372, 0, 0, 655374, 0, 0, 655375, 0, 0, 655376, 0, 0, 655377, 0, 0, 655378, 0, 0, 655380, 0, 0, 655381, 0, 0, 655382, 0, 0, 655383, 0, 0, 655384, 0, 0, 786431, 0, 0, 720896, 0, 0, 720904, 0, 0, 720905, 0, 0, 720906, 0, 0, 720907, 0, 0, 720908, 0, 0, 720909, 0, 0, 720910, 0, 0, 720911, 0, 0, 720919, 0, 0, 720920, 0, 0, 851967, 0, 0, 786432, 0, 0, 786441, 0, 0, 786442, 0, 0, 786443, 0, 0, 786444, 0, 0, 786445, 0, 0, 786446, 0, 0, 786455, 0, 0, 786456, 0, 0, 917503, 0, 0, 851968, 0, 0, 851969, 0, 0, 851970, 0, 0, 851971, 0, 0, 851972, 0, 0, 851973, 0, 0, 851974, 0, 0, 851975, 0, 0, 851976, 0, 0, 851977, 0, 0, 851978, 0, 0, 851979, 0, 0, 851980, 0, 0, 851981, 0, 0, 851982, 0, 0, 851983, 0, 0, 851984, 0, 0, 851985, 0, 0, 851986, 0, 0, 851987, 0, 0, 851988, 0, 0, 851989, 0, 0, 851990, 0, 0, 851991, 0, 0, 851992, 0, 0, 983039, 0, 0, 917504, 0, 0, 917505, 0, 0, 917506, 0, 0, 917507, 0, 0, 917508, 0, 0, 917509, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 0, 0, 917517, 0, 0, 917518, 0, 0, 917519, 0, 0, 917520, 0, 0, 917521, 0, 0, 917522, 0, 0, 917523, 0, 0, 917524, 0, 0, 917525, 0, 0, 917526, 0, 0, 917527, 0, 0, 917528, 0, 0 ) script = SubResource( 1 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] -[node name="spotlight_spinner" parent="stage" index="2" instance=ExtResource( 5 )] - -editor/display_folded = true +[node name="spotlight_spinner" parent="stage" instance=ExtResource( 5 )] position = Vector2( 296, 104 ) speed = 0.25 [node name="1" parent="stage/spotlight_spinner" index="0"] - polygon = PoolVector2Array( -32, 464, 16, 464, 0.0959015, 0.603569 ) [node name="2" parent="stage/spotlight_spinner" index="1"] - polygon = PoolVector2Array( -15.9984, 448, 16.0016, 448, 0.0959015, 0.603569 ) [node name="3" parent="stage/spotlight_spinner" index="2"] - polygon = PoolVector2Array( -16.0008, 320, 15.9992, 320, 0.0959015, 0.603569 ) [node name="4" parent="stage/spotlight_spinner" index="3"] - polygon = PoolVector2Array( -15.9996, 400, 16.0004, 400, 0.0959015, 0.603569 ) -[node name="spotlight_spinner2" parent="stage" index="3" instance=ExtResource( 5 )] - -editor/display_folded = true +[node name="spotlight_spinner2" parent="stage" instance=ExtResource( 5 )] position = Vector2( 88, 104 ) speed = -0.25 [node name="1" parent="stage/spotlight_spinner2" index="0"] - polygon = PoolVector2Array( -32, 464, 16, 464, 0.0959015, 0.603569 ) [node name="2" parent="stage/spotlight_spinner2" index="1"] - polygon = PoolVector2Array( -15.9984, 448, 16.0016, 448, 0.0959015, 0.603569 ) [node name="3" parent="stage/spotlight_spinner2" index="2"] - polygon = PoolVector2Array( -16.0008, 320, 15.9992, 320, 0.0959015, 0.603569 ) [node name="4" parent="stage/spotlight_spinner2" index="3"] - polygon = PoolVector2Array( -15.9996, 400, 16.0004, 400, 0.0959015, 0.603569 ) -[node name="next_level" parent="stage" index="4" instance=ExtResource( 6 )] - +[node name="next_level" parent="stage" instance=ExtResource( 6 )] position = Vector2( 344, 200 ) next_level = ExtResource( 7 ) -[node name="player" parent="stage" index="5" instance=ExtResource( 8 )] - +[node name="player" parent="stage" instance=ExtResource( 8 )] position = Vector2( 40, 200 ) -_sections_unfolded = [ "Collision", "Material", "Transform", "Z Index" ] - -[node name="artifact" parent="stage" index="6" instance=ExtResource( 9 )] +[node name="artifact" parent="stage" instance=ExtResource( 9 )] position = Vector2( 424, 296 ) -[node name="str_stagename" parent="stage" index="7" instance=ExtResource( 10 )] - +[node name="str_stagename" parent="stage" instance=ExtResource( 10 )] margin_left = 88.0 margin_top = 200.0 margin_right = 298.0 @@ -167,64 +120,51 @@ text = "Stage 15: derorriM" align = 1 -[node name="grass" parent="stage" index="8" instance=ExtResource( 11 )] - +[node name="grass" parent="stage" instance=ExtResource( 11 )] position = Vector2( 120, 200 ) -[node name="grass2" parent="stage" index="9" instance=ExtResource( 11 )] - +[node name="grass2" parent="stage" instance=ExtResource( 11 )] position = Vector2( 88, 200 ) -[node name="grass3" parent="stage" index="10" instance=ExtResource( 11 )] - +[node name="grass3" parent="stage" instance=ExtResource( 11 )] position = Vector2( 152, 152 ) -[node name="grass4" parent="stage" index="11" instance=ExtResource( 11 )] - +[node name="grass4" parent="stage" instance=ExtResource( 11 )] position = Vector2( 232, 152 ) -[node name="grass5" parent="stage" index="12" instance=ExtResource( 11 )] - +[node name="grass5" parent="stage" instance=ExtResource( 11 )] position = Vector2( 264, 200 ) -[node name="grass6" parent="stage" index="13" instance=ExtResource( 11 )] - +[node name="grass6" parent="stage" instance=ExtResource( 11 )] position = Vector2( 296, 200 ) -[node name="grass7" parent="stage" index="14" instance=ExtResource( 11 )] - +[node name="grass7" parent="stage" instance=ExtResource( 11 )] position = Vector2( 360, 104 ) -[node name="grass8" parent="stage" index="15" instance=ExtResource( 11 )] - +[node name="grass8" parent="stage" instance=ExtResource( 11 )] position = Vector2( 200, 72 ) -[node name="grass9" parent="stage" index="16" instance=ExtResource( 11 )] - +[node name="grass9" parent="stage" instance=ExtResource( 11 )] position = Vector2( 184, 72 ) -[node name="grass10" parent="stage" index="17" instance=ExtResource( 11 )] - +[node name="grass10" parent="stage" instance=ExtResource( 11 )] position = Vector2( 24, 104 ) -[node name="grass11" parent="stage" index="18" instance=ExtResource( 11 )] - +[node name="grass11" parent="stage" instance=ExtResource( 11 )] position = Vector2( 56, 40 ) -[node name="grass12" parent="stage" index="19" instance=ExtResource( 11 )] - +[node name="grass12" parent="stage" instance=ExtResource( 11 )] position = Vector2( 328, 40 ) -[node name="vine" parent="stage" index="20" instance=ExtResource( 12 )] - +[node name="vine" parent="stage" instance=ExtResource( 12 )] position = Vector2( 56, 120 ) -[node name="vine2" parent="stage" index="21" instance=ExtResource( 12 )] - +[node name="vine2" parent="stage" instance=ExtResource( 12 )] position = Vector2( 328, 120 ) flip_h = true - [editable path="stage/spotlight_with_button"] + [editable path="stage/spotlight_spinner"] + [editable path="stage/spotlight_spinner2"] diff --git a/Scenes/stages/15.tscn b/Scenes/stages/15.tscn index 7aad75b..43942b1 100644 --- a/Scenes/stages/15.tscn +++ b/Scenes/stages/15.tscn @@ -12,7 +12,6 @@ [ext_resource path="res://Scenes/grass.tscn" type="PackedScene" id=10] [sub_resource type="GDScript" id=1] - script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! var grid_size = Vector2(25,16) @@ -41,99 +40,59 @@ func _ready(): [node name="stage" type="Node2D"] -[node name="bg" parent="." index="0" instance=ExtResource( 1 )] +[node name="bg" parent="." instance=ExtResource( 1 )] -[node name="twn_stagefadein" parent="." index="1" instance=ExtResource( 2 )] +[node name="twn_stagefadein" parent="." instance=ExtResource( 2 )] -[node name="stage" type="Control" parent="." index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="stage" type="Control" parent="."] margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Material", "Rect" ] - -[node name="tilemap" type="TileMap" parent="stage" index="0"] +[node name="tilemap" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 3 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( -1, 0, 0, -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, -65533, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65525, 0, 0, -65524, 0, 0, -65523, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -65512, 0, 0, 65535, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7, 0, 0, 8, 0, 0, 9, 0, 0, 10, 0, 0, 11, 0, 0, 12, 0, 0, 13, 0, 0, 14, 0, 0, 15, 0, 0, 16, 0, 0, 17, 0, 0, 18, 0, 0, 19, 0, 0, 20, 0, 0, 21, 0, 0, 22, 0, 0, 23, 0, 0, 24, 0, 0, 131071, 0, 0, 65536, 0, 0, 65537, 0, 0, 65538, 0, 0, 65539, 0, 0, 65540, 0, 0, 65541, 0, 0, 65542, 0, 0, 65543, 0, 0, 65544, 0, 0, 65545, 0, 0, 65546, 0, 0, 65547, 0, 0, 65548, 0, 0, 65549, 0, 0, 65550, 0, 0, 65551, 0, 0, 65552, 0, 0, 65553, 0, 0, 65554, 0, 0, 65555, 0, 0, 65556, 0, 0, 65557, 0, 0, 65558, 0, 0, 65559, 0, 0, 65560, 0, 0, 196607, 0, 0, 131072, 0, 0, 131073, 0, 0, 131074, 0, 0, 131075, 0, 0, 131076, 0, 0, 131077, 0, 0, 131078, 0, 0, 131079, 0, 0, 131080, 0, 0, 131081, 0, 0, 131082, 0, 0, 131083, 0, 0, 131084, 0, 0, 131092, 0, 0, 131093, 0, 0, 131094, 0, 0, 131095, 0, 0, 131096, 0, 0, 262143, 0, 0, 196608, 0, 0, 196609, 0, 0, 196610, 0, 0, 196611, 0, 0, 196612, 0, 0, 196613, 0, 0, 196614, 0, 0, 196615, 0, 0, 196616, 0, 0, 196617, 0, 0, 196618, 0, 0, 196619, 0, 0, 196620, 0, 0, 196622, 0, 0, 196623, 0, 0, 196628, 0, 0, 196629, 0, 0, 196630, 0, 0, 196631, 0, 0, 196632, 0, 0, 327679, 0, 0, 262144, 0, 0, 262145, 0, 0, 262146, 0, 0, 262147, 0, 0, 262148, 0, 0, 262149, 0, 0, 262150, 0, 0, 262151, 0, 0, 262152, 0, 0, 262153, 0, 0, 262154, 0, 0, 262155, 0, 0, 262156, 0, 0, 262158, 0, 0, 262159, 0, 0, 262160, 0, 0, 262161, 0, 0, 262162, 0, 0, 262163, 0, 0, 262164, 0, 0, 262165, 0, 0, 262166, 0, 0, 262167, 0, 0, 262168, 0, 0, 393215, 0, 0, 327680, 0, 0, 327681, 0, 0, 327682, 0, 0, 327683, 0, 0, 327684, 0, 0, 327685, 0, 0, 327686, 0, 0, 327687, 0, 0, 327688, 0, 0, 327689, 0, 0, 327692, 0, 0, 327694, 0, 0, 327695, 0, 0, 327696, 0, 0, 327697, 0, 0, 327698, 0, 0, 327699, 0, 0, 327700, 0, 0, 327701, 0, 0, 327702, 0, 0, 327703, 0, 0, 327704, 0, 0, 458751, 0, 0, 393216, 0, 0, 393217, 0, 0, 393218, 0, 0, 393219, 0, 0, 393220, 0, 0, 393221, 0, 0, 393222, 0, 0, 393223, 0, 0, 393224, 0, 0, 393230, 0, 0, 393231, 0, 0, 393232, 0, 0, 393233, 0, 0, 393234, 0, 0, 393235, 0, 0, 393236, 0, 0, 393237, 0, 0, 393238, 0, 0, 393239, 0, 0, 393240, 0, 0, 524287, 0, 0, 458752, 0, 0, 458753, 0, 0, 458754, 0, 0, 458755, 0, 0, 458756, 0, 0, 458757, 0, 0, 458758, 0, 0, 458759, 0, 0, 458760, 0, 0, 458762, 0, 0, 458763, 0, 0, 458764, 0, 0, 458765, 0, 0, 458766, 0, 0, 458767, 0, 0, 458768, 0, 0, 458769, 0, 0, 458770, 0, 0, 458771, 0, 0, 458772, 0, 0, 458773, 0, 0, 458774, 0, 0, 458775, 0, 0, 458776, 0, 0, 589823, 0, 0, 524288, 0, 0, 524289, 0, 0, 524290, 0, 0, 524291, 0, 0, 524292, 0, 0, 524293, 0, 0, 524294, 0, 0, 524295, 0, 0, 524296, 0, 0, 524298, 0, 0, 524299, 0, 0, 524300, 0, 0, 524301, 0, 0, 524302, 0, 0, 524303, 0, 0, 524304, 0, 0, 524305, 0, 0, 524306, 0, 0, 524307, 0, 0, 524308, 0, 0, 524309, 0, 0, 524310, 0, 0, 524311, 0, 0, 524312, 0, 0, 655359, 0, 0, 589824, 0, 0, 589825, 0, 0, 589826, 0, 0, 589827, 0, 0, 589828, 0, 0, 589834, 0, 0, 589835, 0, 0, 589836, 0, 0, 589837, 0, 0, 589838, 0, 0, 589839, 0, 0, 589840, 0, 0, 589841, 0, 0, 589842, 0, 0, 589843, 0, 0, 589844, 0, 0, 589845, 0, 0, 589846, 0, 0, 589847, 0, 0, 589848, 0, 0, 720895, 0, 0, 655360, 0, 0, 655361, 0, 0, 655362, 0, 0, 655363, 0, 0, 655370, 0, 0, 655371, 0, 0, 655372, 0, 0, 655373, 0, 0, 655374, 0, 0, 655375, 0, 0, 655376, 0, 0, 655377, 0, 0, 655378, 0, 0, 655379, 0, 0, 655380, 0, 0, 655381, 0, 0, 655382, 0, 0, 655383, 0, 0, 655384, 0, 0, 786431, 0, 0, 720896, 0, 0, 720897, 0, 0, 720898, 0, 0, 720899, 0, 0, 720900, 0, 0, 720901, 0, 0, 720902, 0, 0, 720903, 0, 0, 720904, 0, 0, 720905, 0, 0, 720906, 0, 0, 720907, 0, 0, 720908, 0, 0, 720909, 0, 0, 720910, 0, 0, 720911, 0, 0, 720912, 0, 0, 720913, 0, 0, 720914, 0, 0, 720915, 0, 0, 720916, 0, 0, 720917, 0, 0, 720918, 0, 0, 720919, 0, 0, 720920, 0, 0, 851967, 0, 0, 786432, 0, 0, 786433, 0, 0, 786434, 0, 0, 786435, 0, 0, 786436, 0, 0, 786437, 0, 0, 786438, 0, 0, 786439, 0, 0, 786440, 0, 0, 786441, 0, 0, 786442, 0, 0, 786443, 0, 0, 786444, 0, 0, 786445, 0, 0, 786446, 0, 0, 786447, 0, 0, 786448, 0, 0, 786449, 0, 0, 786450, 0, 0, 786451, 0, 0, 786452, 0, 0, 786453, 0, 0, 786454, 0, 0, 786455, 0, 0, 786456, 0, 0, 917503, 0, 0, 851968, 0, 0, 851969, 0, 0, 851970, 0, 0, 851971, 0, 0, 851972, 0, 0, 851973, 0, 0, 851974, 0, 0, 851975, 0, 0, 851976, 0, 0, 851977, 0, 0, 851978, 0, 0, 851979, 0, 0, 851980, 0, 0, 851981, 0, 0, 851982, 0, 0, 851983, 0, 0, 851984, 0, 0, 851985, 0, 0, 851986, 0, 0, 851987, 0, 0, 851988, 0, 0, 851989, 0, 0, 851990, 0, 0, 851991, 0, 0, 851992, 0, 0, 983039, 0, 0, 917504, 0, 0, 917505, 0, 0, 917506, 0, 0, 917507, 0, 0, 917508, 0, 0, 917509, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 0, 0, 917517, 0, 0, 917518, 0, 0, 917519, 0, 0, 917520, 0, 0, 917521, 0, 0, 917522, 0, 0, 917523, 0, 0, 917524, 0, 0, 917525, 0, 0, 917526, 0, 0, 917527, 0, 0, 917528, 0, 0 ) script = SubResource( 1 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] - -[node name="spotlight_on_timer" parent="stage" index="1" instance=ExtResource( 4 )] +[node name="spotlight_on_timer" parent="stage" instance=ExtResource( 4 )] position = Vector2( 216, 40 ) polygon = PoolVector2Array( -16, 240, 16, 240, 0.0959015, 0.603569 ) wait_time = 1.5 -[node name="next_level" parent="stage" index="2" instance=ExtResource( 5 )] - +[node name="next_level" parent="stage" instance=ExtResource( 5 )] position = Vector2( 296, 56 ) next_level = ExtResource( 6 ) -[node name="player" parent="stage" index="3" instance=ExtResource( 7 )] - +[node name="player" parent="stage" instance=ExtResource( 7 )] position = Vector2( 88, 168 ) -_sections_unfolded = [ "Collision", "Material", "Transform", "Z Index" ] - -[node name="str_stagename" parent="stage" index="4" instance=ExtResource( 8 )] +[node name="str_stagename" parent="stage" instance=ExtResource( 8 )] text = "Stage 16: Wall climbing" -[node name="vine" parent="stage" index="5" instance=ExtResource( 9 )] - +[node name="vine" parent="stage" instance=ExtResource( 9 )] position = Vector2( 168, 88 ) -[node name="vine2" parent="stage" index="6" instance=ExtResource( 9 )] - +[node name="vine2" parent="stage" instance=ExtResource( 9 )] position = Vector2( 264, 40 ) -[node name="grass" parent="stage" index="7" instance=ExtResource( 10 )] - +[node name="grass" parent="stage" instance=ExtResource( 10 )] position = Vector2( 136, 168 ) -[node name="grass2" parent="stage" index="8" instance=ExtResource( 10 )] - +[node name="grass2" parent="stage" instance=ExtResource( 10 )] position = Vector2( 200, 104 ) -[node name="grass3" parent="stage" index="9" instance=ExtResource( 10 )] - +[node name="grass3" parent="stage" instance=ExtResource( 10 )] position = Vector2( 248, 40 ) -[node name="grass4" parent="stage" index="10" instance=ExtResource( 10 )] - +[node name="grass4" parent="stage" instance=ExtResource( 10 )] position = Vector2( 168, 104 ) -[node name="grass5" parent="stage" index="11" instance=ExtResource( 10 )] - +[node name="grass5" parent="stage" instance=ExtResource( 10 )] position = Vector2( 72, 168 ) -[node name="grass6" parent="stage" index="12" instance=ExtResource( 10 )] - +[node name="grass6" parent="stage" instance=ExtResource( 10 )] position = Vector2( 120, 168 ) - - diff --git a/Scenes/stages/16.tscn b/Scenes/stages/16.tscn index 03fdd59..b74d5dd 100644 --- a/Scenes/stages/16.tscn +++ b/Scenes/stages/16.tscn @@ -12,7 +12,6 @@ [ext_resource path="res://Scenes/bg_layer.tscn" type="PackedScene" id=10] [sub_resource type="GDScript" id=1] - script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! var grid_size = Vector2(25,16) @@ -41,123 +40,77 @@ func _ready(): [node name="stage" type="Node2D"] -[node name="twn_stagefadein" parent="." index="0" instance=ExtResource( 1 )] +[node name="twn_stagefadein" parent="." instance=ExtResource( 1 )] -[node name="stage" type="Control" parent="." index="1"] +[node name="bg" parent="." instance=ExtResource( 10 )] -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="stage" type="Control" parent="."] margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Material", "Rect" ] - -[node name="tilemap" type="TileMap" parent="stage" index="0"] +[node name="tilemap" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 2 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( -1, 0, 0, -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, -65533, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65525, 0, 0, -65524, 0, 0, -65523, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -65512, 0, 0, 65535, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7, 0, 0, 8, 0, 0, 9, 0, 0, 10, 0, 0, 11, 0, 0, 12, 0, 0, 13, 0, 0, 14, 0, 0, 15, 0, 0, 16, 0, 0, 17, 0, 0, 18, 0, 0, 19, 0, 0, 20, 0, 0, 21, 0, 0, 22, 0, 0, 23, 0, 0, 24, 0, 0, 131071, 0, 0, 65536, 0, 0, 65537, 0, 0, 65538, 0, 0, 65539, 0, 0, 65540, 0, 0, 65541, 0, 0, 65542, 0, 0, 65543, 0, 0, 65544, 0, 0, 65545, 0, 0, 65546, 0, 0, 65547, 0, 0, 65548, 0, 0, 65549, 0, 0, 65550, 0, 0, 65551, 0, 0, 65552, 0, 0, 65553, 0, 0, 65554, 0, 0, 65555, 0, 0, 65556, 0, 0, 65557, 0, 0, 65558, 0, 0, 65559, 0, 0, 65560, 0, 0, 196607, 0, 0, 131072, 0, 0, 131073, 0, 0, 131074, 0, 0, 131075, 0, 0, 131076, 0, 0, 131077, 0, 0, 131078, 0, 0, 131079, 0, 0, 131080, 0, 0, 131081, 0, 0, 131082, 0, 0, 131083, 0, 0, 131084, 0, 0, 131085, 0, 0, 131086, 0, 0, 131087, 0, 0, 131088, 0, 0, 131089, 0, 0, 131090, 0, 0, 131091, 0, 0, 131092, 0, 0, 131093, 0, 0, 131094, 0, 0, 131095, 0, 0, 131096, 0, 0, 262143, 0, 0, 196608, 0, 0, 196609, 0, 0, 196610, 0, 0, 196611, 0, 0, 196612, 0, 0, 196613, 0, 0, 196614, 0, 0, 196615, 0, 0, 196616, 0, 0, 196617, 0, 0, 196618, 0, 0, 196619, 0, 0, 196620, 0, 0, 196621, 0, 0, 196622, 0, 0, 196623, 0, 0, 196624, 0, 0, 196625, 0, 0, 196626, 0, 0, 196627, 0, 0, 196628, 0, 0, 196629, 0, 0, 196630, 0, 0, 196631, 0, 0, 196632, 0, 0, 327679, 0, 0, 262144, 0, 0, 262145, 0, 0, 262146, 0, 0, 262147, 0, 0, 262148, 0, 0, 262149, 0, 0, 262150, 0, 0, 262155, 0, 0, 262156, 0, 0, 262157, 0, 0, 262158, 0, 0, 262159, 0, 0, 262160, 0, 0, 262161, 0, 0, 262162, 0, 0, 262163, 0, 0, 262164, 0, 0, 262165, 0, 0, 262166, 0, 0, 262167, 0, 0, 262168, 0, 0, 393215, 0, 0, 327680, 0, 0, 327681, 0, 0, 327682, 0, 0, 327683, 0, 0, 327684, 0, 0, 327687, 0, 0, 327688, 0, 0, 327689, 0, 0, 327692, 0, 0, 327693, 0, 0, 327694, 0, 0, 327695, 0, 0, 327696, 0, 0, 327697, 0, 0, 327698, 0, 0, 327699, 0, 0, 327700, 0, 0, 327701, 0, 0, 327702, 0, 0, 327703, 0, 0, 327704, 0, 0, 458751, 0, 0, 393216, 0, 0, 393217, 0, 0, 393218, 0, 0, 393222, 0, 0, 393223, 0, 0, 393224, 0, 0, 393229, 0, 0, 393230, 0, 0, 393231, 0, 0, 393232, 0, 0, 393233, 0, 0, 393234, 0, 0, 393235, 0, 0, 393236, 0, 0, 393237, 0, 0, 393238, 0, 0, 393239, 0, 0, 393240, 0, 0, 524287, 0, 0, 458752, 0, 0, 458753, 0, 0, 458757, 0, 0, 458758, 0, 0, 458759, 0, 0, 458760, 0, 0, 458761, 0, 0, 458762, 0, 0, 458763, 0, 0, 458764, 0, 0, 458765, 0, 0, 458766, 0, 0, 458767, 0, 0, 458768, 0, 0, 458769, 0, 0, 458770, 0, 0, 458771, 0, 0, 458772, 0, 0, 458773, 0, 0, 458774, 0, 0, 458775, 0, 0, 458776, 0, 0, 589823, 0, 0, 524288, 0, 0, 524289, 0, 0, 524292, 0, 0, 524293, 0, 0, 524294, 0, 0, 524295, 0, 0, 524296, 0, 0, 524297, 0, 0, 524298, 0, 0, 524299, 0, 0, 524300, 0, 0, 524302, 0, 0, 524303, 0, 0, 524304, 0, 0, 524305, 0, 0, 524306, 0, 0, 524307, 0, 0, 524308, 0, 0, 524309, 0, 0, 524310, 0, 0, 524311, 0, 0, 524312, 0, 0, 655359, 0, 0, 589824, 0, 0, 589825, 0, 0, 589826, 0, 0, 589827, 0, 0, 589828, 0, 0, 589829, 0, 0, 589830, 0, 0, 589831, 0, 0, 589840, 0, 0, 589841, 0, 0, 589842, 0, 0, 589843, 0, 0, 589844, 0, 0, 589845, 0, 0, 589846, 0, 0, 589847, 0, 0, 589848, 0, 0, 720895, 0, 0, 655360, 0, 0, 655361, 0, 0, 655362, 0, 0, 655363, 0, 0, 655364, 0, 0, 655365, 0, 0, 655366, 0, 0, 655367, 0, 0, 655368, 0, 0, 655369, 0, 0, 655370, 0, 0, 655371, 0, 0, 655372, 0, 0, 655373, 0, 0, 655374, 0, 0, 655375, 0, 0, 655376, 0, 0, 655377, 0, 0, 655378, 0, 0, 655379, 0, 0, 655380, 0, 0, 655381, 0, 0, 655382, 0, 0, 655383, 0, 0, 655384, 0, 0, 786431, 0, 0, 720896, 0, 0, 720897, 0, 0, 720898, 0, 0, 720899, 0, 0, 720900, 0, 0, 720901, 0, 0, 720902, 0, 0, 720903, 0, 0, 720904, 0, 0, 720906, 0, 0, 720907, 0, 0, 720908, 0, 0, 720909, 0, 0, 720910, 0, 0, 720911, 0, 0, 720912, 0, 0, 720913, 0, 0, 720914, 0, 0, 720915, 0, 0, 720916, 0, 0, 720917, 0, 0, 720918, 0, 0, 720919, 0, 0, 720920, 0, 0, 851967, 0, 0, 786432, 0, 0, 786433, 0, 0, 786434, 0, 0, 786435, 0, 0, 786436, 0, 0, 786437, 0, 0, 786438, 0, 0, 786439, 0, 0, 786440, 0, 0, 786441, 0, 0, 786442, 0, 0, 786453, 0, 0, 786454, 0, 0, 786455, 0, 0, 786456, 0, 0, 917503, 0, 0, 851968, 0, 0, 851969, 0, 0, 851970, 0, 0, 851971, 0, 0, 851972, 0, 0, 851973, 0, 0, 851974, 0, 0, 851975, 0, 0, 851976, 0, 0, 851977, 0, 0, 851978, 0, 0, 851979, 0, 0, 851980, 0, 0, 851981, 0, 0, 851982, 0, 0, 851983, 0, 0, 851984, 0, 0, 851985, 0, 0, 851986, 0, 0, 851987, 0, 0, 851988, 0, 0, 851989, 0, 0, 851990, 0, 0, 851991, 0, 0, 851992, 0, 0, 983039, 0, 0, 917504, 0, 0, 917505, 0, 0, 917506, 0, 0, 917507, 0, 0, 917508, 0, 0, 917509, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 0, 0, 917517, 0, 0, 917518, 0, 0, 917519, 0, 0, 917520, 0, 0, 917521, 0, 0, 917522, 0, 0, 917523, 0, 0, 917524, 0, 0, 917525, 0, 0, 917526, 0, 0, 917527, 0, 0, 917528, 0, 0 ) script = SubResource( 1 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] - -[node name="spotlight_on_timer" parent="stage" index="1" instance=ExtResource( 3 )] +[node name="spotlight_on_timer" parent="stage" instance=ExtResource( 3 )] position = Vector2( 184, 40 ) polygon = PoolVector2Array( -208, 208, 224, 208, 0.0959015, 0.603569 ) wait_time = 1.5 -[node name="next_level" parent="stage" index="2" instance=ExtResource( 4 )] - +[node name="next_level" parent="stage" instance=ExtResource( 4 )] position = Vector2( 312, 200 ) next_level = ExtResource( 5 ) -[node name="player" parent="stage" index="3" instance=ExtResource( 6 )] - +[node name="player" parent="stage" instance=ExtResource( 6 )] position = Vector2( 40, 136 ) -_sections_unfolded = [ "Collision", "Material", "Transform", "Z Index" ] - -[node name="str_stagename" parent="stage" index="4" instance=ExtResource( 7 )] +[node name="str_stagename" parent="stage" instance=ExtResource( 7 )] text = "Stage 17: Underground" -[node name="grass" parent="stage" index="5" instance=ExtResource( 8 )] - +[node name="grass" parent="stage" instance=ExtResource( 8 )] position = Vector2( 72, 120 ) -[node name="grass2" parent="stage" index="6" instance=ExtResource( 8 )] - +[node name="grass2" parent="stage" instance=ExtResource( 8 )] position = Vector2( 136, 72 ) -[node name="grass3" parent="stage" index="7" instance=ExtResource( 8 )] - +[node name="grass3" parent="stage" instance=ExtResource( 8 )] position = Vector2( 184, 104 ) -[node name="grass4" parent="stage" index="8" instance=ExtResource( 8 )] - +[node name="grass4" parent="stage" instance=ExtResource( 8 )] position = Vector2( 200, 104 ) -[node name="grass5" parent="stage" index="9" instance=ExtResource( 8 )] - +[node name="grass5" parent="stage" instance=ExtResource( 8 )] position = Vector2( 120, 152 ) -[node name="grass6" parent="stage" index="10" instance=ExtResource( 8 )] - +[node name="grass6" parent="stage" instance=ExtResource( 8 )] position = Vector2( 168, 152 ) -[node name="grass7" parent="stage" index="11" instance=ExtResource( 8 )] - +[node name="grass7" parent="stage" instance=ExtResource( 8 )] position = Vector2( 88, 200 ) -[node name="grass8" parent="stage" index="12" instance=ExtResource( 8 )] - +[node name="grass8" parent="stage" instance=ExtResource( 8 )] position = Vector2( 184, 200 ) -[node name="grass9" parent="stage" index="13" instance=ExtResource( 8 )] - +[node name="grass9" parent="stage" instance=ExtResource( 8 )] position = Vector2( 280, 200 ) -[node name="vine" parent="stage" index="14" instance=ExtResource( 9 )] - +[node name="vine" parent="stage" instance=ExtResource( 9 )] position = Vector2( 216, 200 ) -[node name="vine2" parent="stage" index="15" instance=ExtResource( 9 )] - +[node name="vine2" parent="stage" instance=ExtResource( 9 )] position = Vector2( 280, 200 ) -[node name="vine3" parent="stage" index="16" instance=ExtResource( 9 )] - +[node name="vine3" parent="stage" instance=ExtResource( 9 )] position = Vector2( 216, 136 ) -[node name="vine4" parent="stage" index="17" instance=ExtResource( 9 )] - +[node name="vine4" parent="stage" instance=ExtResource( 9 )] position = Vector2( 152, 72 ) -[node name="vine5" parent="stage" index="18" instance=ExtResource( 9 )] - +[node name="vine5" parent="stage" instance=ExtResource( 9 )] position = Vector2( 56, 104 ) - -[node name="bg" parent="." index="2" instance=ExtResource( 10 )] - - diff --git a/Scenes/stages/17.tscn b/Scenes/stages/17.tscn index 7291c6b..bcecb40 100644 --- a/Scenes/stages/17.tscn +++ b/Scenes/stages/17.tscn @@ -12,7 +12,6 @@ [ext_resource path="res://Scenes/bg_layer.tscn" type="PackedScene" id=10] [sub_resource type="GDScript" id=1] - script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! var grid_size = Vector2(25,16) @@ -40,7 +39,6 @@ func _ready(): print('Tilemap: Autotiling done!')" [sub_resource type="GDScript" id=2] - resource_name = "tilemap_stone" script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! @@ -66,104 +64,55 @@ func _ready(): var tile_index = 0 + North * north_tile + West * west_tile + East * east_tile + South * south_tile set_cell(x, y, tile_index) print('Tilemap: Autotiling done!')" -_sections_unfolded = [ "Resource" ] [node name="stage" type="Node2D"] -[node name="twn_stagefadein" parent="." index="0" instance=ExtResource( 1 )] +[node name="twn_stagefadein" parent="." instance=ExtResource( 1 )] -[node name="stage" type="Control" parent="." index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="stage" type="Control" parent="."] margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Material", "Rect" ] - -[node name="tilemap" type="TileMap" parent="stage" index="0"] +[node name="tilemap" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 2 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( -1, 0, 0, -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, -65533, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65525, 0, 0, -65524, 0, 0, -65523, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -65512, 0, 0, 65535, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7, 0, 0, 8, 0, 0, 9, 0, 0, 10, 0, 0, 11, 0, 0, 12, 0, 0, 13, 0, 0, 14, 0, 0, 15, 0, 0, 16, 0, 0, 17, 0, 0, 18, 0, 0, 19, 0, 0, 20, 0, 0, 21, 0, 0, 22, 0, 0, 23, 0, 0, 24, 0, 0, 131071, 0, 0, 65536, 0, 0, 65537, 0, 0, 65538, 0, 0, 65539, 0, 0, 65540, 0, 0, 65541, 0, 0, 65542, 0, 0, 65543, 0, 0, 65544, 0, 0, 65545, 0, 0, 65546, 0, 0, 65547, 0, 0, 65548, 0, 0, 65549, 0, 0, 65550, 0, 0, 65551, 0, 0, 65552, 0, 0, 65553, 0, 0, 65554, 0, 0, 65555, 0, 0, 65556, 0, 0, 65557, 0, 0, 65558, 0, 0, 65559, 0, 0, 65560, 0, 0, 196607, 0, 0, 131072, 0, 0, 131073, 0, 0, 131074, 0, 0, 131075, 0, 0, 131078, 0, 0, 131079, 0, 0, 131080, 0, 0, 131081, 0, 0, 131082, 0, 0, 131083, 0, 0, 131084, 0, 0, 131085, 0, 0, 131086, 0, 0, 131087, 0, 0, 131088, 0, 0, 131089, 0, 0, 131090, 0, 0, 131091, 0, 0, 131092, 0, 0, 131093, 0, 0, 131094, 0, 0, 131095, 0, 0, 131096, 0, 0, 262143, 0, 0, 196608, 0, 0, 196609, 0, 0, 196615, 0, 0, 196616, 0, 0, 196617, 0, 0, 196618, 0, 0, 196619, 0, 0, 196620, 0, 0, 196621, 0, 0, 196622, 0, 0, 196623, 0, 0, 196624, 0, 0, 196625, 0, 0, 196626, 0, 0, 196627, 0, 0, 196628, 0, 0, 196629, 0, 0, 196630, 0, 0, 196631, 0, 0, 196632, 0, 0, 327679, 0, 0, 262144, 0, 0, 262145, 0, 0, 262153, 0, 0, 262154, 0, 0, 262155, 0, 0, 262156, 0, 0, 262157, 0, 0, 262158, 0, 0, 262159, 0, 0, 262160, 0, 0, 262161, 0, 0, 262162, 0, 0, 262163, 0, 0, 262164, 0, 0, 262165, 0, 0, 262166, 0, 0, 262167, 0, 0, 262168, 0, 0, 393215, 0, 0, 327680, 0, 0, 327681, 0, 0, 327691, 0, 0, 327692, 0, 0, 327693, 0, 0, 327694, 0, 0, 327695, 0, 0, 327696, 0, 0, 327697, 0, 0, 327698, 0, 0, 327699, 0, 0, 327700, 0, 0, 327701, 0, 0, 327702, 0, 0, 327703, 0, 0, 327704, 0, 0, 458751, 0, 0, 393216, 0, 0, 393227, 0, 0, 393228, 0, 0, 393229, 0, 0, 393230, 0, 0, 393231, 0, 0, 393232, 0, 0, 393233, 0, 0, 393234, 0, 0, 393235, 0, 0, 393236, 0, 0, 393237, 0, 0, 393238, 0, 0, 393239, 0, 0, 393240, 0, 0, 524287, 0, 0, 458752, 0, 0, 458764, 0, 0, 458765, 0, 0, 458766, 0, 0, 458767, 0, 0, 458768, 0, 0, 458769, 0, 0, 458770, 0, 0, 458771, 0, 0, 458772, 0, 0, 458773, 0, 0, 458774, 0, 0, 458775, 0, 0, 458776, 0, 0, 589823, 0, 0, 524288, 0, 0, 524299, 0, 0, 524300, 0, 0, 524301, 0, 0, 524302, 0, 0, 524303, 0, 0, 524304, 0, 0, 524305, 0, 0, 524306, 0, 0, 524307, 0, 0, 524308, 0, 0, 524309, 0, 0, 524310, 0, 0, 524311, 0, 0, 524312, 0, 0, 655359, 0, 0, 589824, 0, 0, 589825, 0, 0, 589826, 0, 0, 589827, 0, 0, 589835, 0, 0, 589836, 0, 0, 589837, 0, 0, 589838, 0, 0, 589839, 0, 0, 589840, 0, 0, 589841, 0, 0, 589842, 0, 0, 589843, 0, 0, 589844, 0, 0, 589845, 0, 0, 589846, 0, 0, 589847, 0, 0, 589848, 0, 0, 720895, 0, 0, 655360, 0, 0, 655369, 0, 0, 655370, 0, 0, 655371, 0, 0, 655372, 0, 0, 655373, 0, 0, 655374, 0, 0, 655375, 0, 0, 655376, 0, 0, 655377, 0, 0, 655378, 0, 0, 655379, 0, 0, 655380, 0, 0, 655381, 0, 0, 655382, 0, 0, 655383, 0, 0, 655384, 0, 0, 786431, 0, 0, 720896, 0, 0, 720897, 0, 0, 720898, 0, 0, 720899, 0, 0, 720900, 0, 0, 720901, 0, 0, 720902, 0, 0, 720903, 0, 0, 720904, 0, 0, 720905, 0, 0, 720906, 0, 0, 720907, 0, 0, 720908, 0, 0, 720909, 0, 0, 720910, 0, 0, 720911, 0, 0, 720912, 0, 0, 720913, 0, 0, 720914, 0, 0, 720915, 0, 0, 720916, 0, 0, 720917, 0, 0, 720918, 0, 0, 720919, 0, 0, 720920, 0, 0, 851967, 0, 0, 786432, 0, 0, 786433, 0, 0, 786434, 0, 0, 786435, 0, 0, 786436, 0, 0, 786437, 0, 0, 786438, 0, 0, 786439, 0, 0, 786440, 0, 0, 786441, 0, 0, 786442, 0, 0, 786443, 0, 0, 786444, 0, 0, 786445, 0, 0, 786446, 0, 0, 786447, 0, 0, 786448, 0, 0, 786449, 0, 0, 786450, 0, 0, 786451, 0, 0, 786452, 0, 0, 786453, 0, 0, 786454, 0, 0, 786455, 0, 0, 786456, 0, 0, 917503, 0, 0, 851968, 0, 0, 851969, 0, 0, 851970, 0, 0, 851971, 0, 0, 851972, 0, 0, 851973, 0, 0, 851974, 0, 0, 851975, 0, 0, 851976, 0, 0, 851977, 0, 0, 851978, 0, 0, 851979, 0, 0, 851980, 0, 0, 851981, 0, 0, 851982, 0, 0, 851983, 0, 0, 851984, 0, 0, 851985, 0, 0, 851986, 0, 0, 851987, 0, 0, 851988, 0, 0, 851989, 0, 0, 851990, 0, 0, 851991, 0, 0, 851992, 0, 0, 983039, 0, 0, 917504, 0, 0, 917505, 0, 0, 917506, 0, 0, 917507, 0, 0, 917508, 0, 0, 917509, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 0, 0, 917517, 0, 0, 917518, 0, 0, 917519, 0, 0, 917520, 0, 0, 917521, 0, 0, 917522, 0, 0, 917523, 0, 0, 917524, 0, 0, 917525, 0, 0, 917526, 0, 0, 917527, 0, 0, 917528, 0, 0 ) script = SubResource( 1 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] - -[node name="tilemap_unphaseable" type="TileMap" parent="stage" index="1"] +[node name="tilemap_unphaseable" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 3 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( 196610, 0, 0, 262146, 0, 0, 327682, 0, 0, 327683, 0, 0, 327698, 0, 0, 393219, 0, 0, 393220, 0, 0, 393233, 0, 0, 393234, 0, 0, 458756, 0, 0, 458768, 0, 0, 458769, 0, 0, 458770, 0, 0, 524292, 0, 0, 524303, 0, 0, 524304, 0, 0, 524305, 0, 0, 524306, 0, 0, 589828, 0, 0, 589829, 0, 0, 589830, 0, 0, 589831, 0, 0, 589832, 0, 0 ) script = SubResource( 2 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] - -[node name="next_level" parent="stage" index="2" instance=ExtResource( 4 )] +[node name="next_level" parent="stage" instance=ExtResource( 4 )] position = Vector2( 40, 136 ) next_level = ExtResource( 5 ) -[node name="player" parent="stage" index="3" instance=ExtResource( 6 )] - +[node name="player" parent="stage" instance=ExtResource( 6 )] position = Vector2( 88, 136 ) -_sections_unfolded = [ "Collision", "Material", "Transform", "Z Index" ] - -[node name="str_stagename" parent="stage" index="4" instance=ExtResource( 7 )] +[node name="str_stagename" parent="stage" instance=ExtResource( 7 )] text = "Stage 18: Unphaseable" -[node name="vine" parent="stage" index="5" instance=ExtResource( 8 )] - +[node name="vine" parent="stage" instance=ExtResource( 8 )] position = Vector2( 88, 40 ) -[node name="grass" parent="stage" index="6" instance=ExtResource( 9 )] - +[node name="grass" parent="stage" instance=ExtResource( 9 )] position = Vector2( 168, 152 ) -[node name="grass2" parent="stage" index="7" instance=ExtResource( 9 )] - +[node name="grass2" parent="stage" instance=ExtResource( 9 )] position = Vector2( 184, 120 ) -[node name="grass3" parent="stage" index="8" instance=ExtResource( 9 )] - +[node name="grass3" parent="stage" instance=ExtResource( 9 )] position = Vector2( 40, 168 ) -[node name="bg" parent="." index="2" instance=ExtResource( 10 )] - - +[node name="bg" parent="." instance=ExtResource( 10 )] diff --git a/Scenes/stages/18.tscn b/Scenes/stages/18.tscn index 06f1d40..477d3a4 100644 --- a/Scenes/stages/18.tscn +++ b/Scenes/stages/18.tscn @@ -13,7 +13,6 @@ [ext_resource path="res://Scenes/bg_layer.tscn" type="PackedScene" id=11] [sub_resource type="GDScript" id=1] - script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! var grid_size = Vector2(25,16) @@ -41,7 +40,6 @@ func _ready(): print('Tilemap: Autotiling done!')" [sub_resource type="GDScript" id=2] - resource_name = "tilemap_stone" script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! @@ -67,119 +65,67 @@ func _ready(): var tile_index = 0 + North * north_tile + West * west_tile + East * east_tile + South * south_tile set_cell(x, y, tile_index) print('Tilemap: Autotiling done!')" -_sections_unfolded = [ "Resource" ] [node name="stage" type="Node2D"] -[node name="twn_stagefadein" parent="." index="0" instance=ExtResource( 1 )] +[node name="twn_stagefadein" parent="." instance=ExtResource( 1 )] -[node name="stage" type="Control" parent="." index="1"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="stage" type="Control" parent="."] margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Material", "Rect" ] - -[node name="tilemap" type="TileMap" parent="stage" index="0"] +[node name="tilemap" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 2 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( -1, 0, 0, -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, -65533, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65525, 0, 0, -65524, 0, 0, -65523, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -65512, 0, 0, 65535, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7, 0, 0, 8, 0, 0, 9, 0, 0, 10, 0, 0, 11, 0, 0, 12, 0, 0, 13, 0, 0, 14, 0, 0, 15, 0, 0, 16, 0, 0, 17, 0, 0, 18, 0, 0, 19, 0, 0, 20, 0, 0, 21, 0, 0, 22, 0, 0, 23, 0, 0, 24, 0, 0, 131071, 0, 0, 65536, 0, 0, 65537, 0, 0, 65538, 0, 0, 65539, 0, 0, 65540, 0, 0, 65541, 0, 0, 65542, 0, 0, 65543, 0, 0, 65544, 0, 0, 65545, 0, 0, 65546, 0, 0, 65547, 0, 0, 65548, 0, 0, 65549, 0, 0, 65550, 0, 0, 65551, 0, 0, 65552, 0, 0, 65553, 0, 0, 65554, 0, 0, 65555, 0, 0, 65556, 0, 0, 65557, 0, 0, 65558, 0, 0, 65559, 0, 0, 65560, 0, 0, 196607, 0, 0, 131072, 0, 0, 131073, 0, 0, 131074, 0, 0, 131075, 0, 0, 131076, 0, 0, 131077, 0, 0, 131078, 0, 0, 131079, 0, 0, 131080, 0, 0, 131081, 0, 0, 131082, 0, 0, 131083, 0, 0, 131084, 0, 0, 131085, 0, 0, 131086, 0, 0, 131087, 0, 0, 131088, 0, 0, 131089, 0, 0, 131090, 0, 0, 131091, 0, 0, 131092, 0, 0, 131093, 0, 0, 131094, 0, 0, 131095, 0, 0, 131096, 0, 0, 262143, 0, 0, 196608, 0, 0, 196609, 0, 0, 196610, 0, 0, 196611, 0, 0, 196612, 0, 0, 196613, 0, 0, 196614, 0, 0, 196615, 0, 0, 196616, 0, 0, 196617, 0, 0, 196618, 0, 0, 196619, 0, 0, 196620, 0, 0, 196621, 0, 0, 196622, 0, 0, 196623, 0, 0, 196624, 0, 0, 196625, 0, 0, 196626, 0, 0, 196627, 0, 0, 196628, 0, 0, 196629, 0, 0, 196630, 0, 0, 196631, 0, 0, 196632, 0, 0, 327679, 0, 0, 262144, 0, 0, 262145, 0, 0, 262146, 0, 0, 262147, 0, 0, 262148, 0, 0, 262149, 0, 0, 262150, 0, 0, 262151, 0, 0, 262152, 0, 0, 262153, 0, 0, 262154, 0, 0, 262155, 0, 0, 262156, 0, 0, 262157, 0, 0, 262158, 0, 0, 262159, 0, 0, 262160, 0, 0, 262161, 0, 0, 262162, 0, 0, 262163, 0, 0, 262164, 0, 0, 262165, 0, 0, 262166, 0, 0, 262167, 0, 0, 262168, 0, 0, 393215, 0, 0, 327680, 0, 0, 327681, 0, 0, 327682, 0, 0, 327683, 0, 0, 327684, 0, 0, 327685, 0, 0, 327686, 0, 0, 327687, 0, 0, 327688, 0, 0, 327689, 0, 0, 327690, 0, 0, 327691, 0, 0, 327692, 0, 0, 327693, 0, 0, 327694, 0, 0, 327695, 0, 0, 327696, 0, 0, 327697, 0, 0, 327698, 0, 0, 327699, 0, 0, 327700, 0, 0, 327701, 0, 0, 327702, 0, 0, 327703, 0, 0, 327704, 0, 0, 458751, 0, 0, 393216, 0, 0, 393217, 0, 0, 393218, 0, 0, 393219, 0, 0, 393220, 0, 0, 393221, 0, 0, 393222, 0, 0, 393223, 0, 0, 393224, 0, 0, 393225, 0, 0, 393226, 0, 0, 393227, 0, 0, 393228, 0, 0, 393229, 0, 0, 393230, 0, 0, 393231, 0, 0, 393232, 0, 0, 393233, 0, 0, 393234, 0, 0, 393235, 0, 0, 393236, 0, 0, 393237, 0, 0, 393238, 0, 0, 393239, 0, 0, 393240, 0, 0, 524287, 0, 0, 458752, 0, 0, 458753, 0, 0, 458756, 0, 0, 458757, 0, 0, 458759, 0, 0, 458760, 0, 0, 458761, 0, 0, 458762, 0, 0, 458763, 0, 0, 458764, 0, 0, 458769, 0, 0, 458770, 0, 0, 458771, 0, 0, 458772, 0, 0, 458773, 0, 0, 458774, 0, 0, 458775, 0, 0, 458776, 0, 0, 589823, 0, 0, 524288, 0, 0, 524289, 0, 0, 524292, 0, 0, 524293, 0, 0, 524294, 0, 0, 524295, 0, 0, 524299, 0, 0, 524300, 0, 0, 524301, 0, 0, 524302, 0, 0, 524303, 0, 0, 524304, 0, 0, 524305, 0, 0, 524311, 0, 0, 524312, 0, 0, 655359, 0, 0, 589824, 0, 0, 589826, 0, 0, 589829, 0, 0, 589848, 0, 0, 720895, 0, 0, 655360, 0, 0, 655362, 0, 0, 655363, 0, 0, 655364, 0, 0, 655369, 0, 0, 655374, 0, 0, 655375, 0, 0, 655376, 0, 0, 655384, 0, 0, 786431, 0, 0, 720896, 0, 0, 720898, 0, 0, 720920, 0, 0, 851967, 0, 0, 786432, 0, 0, 786455, 0, 0, 786456, 0, 0, 917503, 0, 0, 851968, 0, 0, 851969, 0, 0, 851970, 0, 0, 851971, 0, 0, 851972, 0, 0, 851973, 0, 0, 851974, 0, 0, 851975, 0, 0, 851976, 0, 0, 851977, 0, 0, 851978, 0, 0, 851979, 0, 0, 851980, 0, 0, 851981, 0, 0, 851982, 0, 0, 851983, 0, 0, 851984, 0, 0, 851985, 0, 0, 851986, 0, 0, 851987, 0, 0, 851988, 0, 0, 851989, 0, 0, 851990, 0, 0, 851991, 0, 0, 851992, 0, 0, 983039, 0, 0, 917504, 0, 0, 917505, 0, 0, 917506, 0, 0, 917507, 0, 0, 917508, 0, 0, 917509, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 0, 0, 917517, 0, 0, 917518, 0, 0, 917519, 0, 0, 917520, 0, 0, 917521, 0, 0, 917522, 0, 0, 917523, 0, 0, 917524, 0, 0, 917525, 0, 0, 917526, 0, 0, 917527, 0, 0, 917528, 0, 0 ) script = SubResource( 1 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] - -[node name="tilemap_unphaseable" type="TileMap" parent="stage" index="1"] +[node name="tilemap_unphaseable" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 3 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( 262156, 0, 0, 262157, 0, 0, 262158, 0, 0, 327685, 0, 0, 327686, 0, 0, 327692, 0, 0, 327693, 0, 0, 327694, 0, 0, 327695, 0, 0, 393220, 0, 0, 393221, 0, 0, 393222, 0, 0, 393223, 0, 0, 393224, 0, 0, 393225, 0, 0, 393227, 0, 0, 393228, 0, 0, 393232, 0, 0, 393233, 0, 0, 393234, 0, 0, 458754, 0, 0, 458755, 0, 0, 458756, 0, 0, 458760, 0, 0, 458761, 0, 0, 458762, 0, 0, 458769, 0, 0, 458770, 0, 0, 458771, 0, 0, 524289, 0, 0, 524290, 0, 0, 524291, 0, 0, 524292, 0, 0, 524306, 0, 0, 524307, 0, 0, 524308, 0, 0, 524309, 0, 0, 524310, 0, 0, 589824, 0, 0, 589825, 0, 0, 589830, 0, 0, 589831, 0, 0, 589832, 0, 0, 589833, 0, 0, 589834, 0, 0, 589837, 0, 0, 589838, 0, 0, 589839, 0, 0, 589840, 0, 0, 589841, 0, 0, 589847, 0, 0, 655360, 0, 0, 655361, 0, 0, 655365, 0, 0, 655366, 0, 0, 655367, 0, 0, 655368, 0, 0, 655370, 0, 0, 655371, 0, 0, 655372, 0, 0, 655373, 0, 0, 655377, 0, 0, 655378, 0, 0, 655379, 0, 0, 655380, 0, 0, 655381, 0, 0, 655382, 0, 0, 655383, 0, 0, 720896, 0, 0, 720897, 0, 0, 720905, 0, 0, 720918, 0, 0, 720919, 0, 0, 786433, 0, 0, 786434, 0, 0, 786435, 0, 0, 786436, 0, 0, 786437, 0, 0, 786438, 0, 0, 786439, 0, 0, 786440, 0, 0, 786441, 0, 0, 786442, 0, 0, 786443, 0, 0, 786444, 0, 0, 786445, 0, 0, 786446, 0, 0, 786447, 0, 0, 786448, 0, 0, 786449, 0, 0, 786450, 0, 0, 786451, 0, 0, 786452, 0, 0, 786453, 0, 0, 786454, 0, 0 ) script = SubResource( 2 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] - -[node name="next_level" parent="stage" index="2" instance=ExtResource( 4 )] +[node name="next_level" parent="stage" instance=ExtResource( 4 )] position = Vector2( 344, 152 ) next_level = ExtResource( 5 ) -[node name="player" parent="stage" index="3" instance=ExtResource( 6 )] - +[node name="player" parent="stage" instance=ExtResource( 6 )] position = Vector2( 344, 184 ) -_sections_unfolded = [ "Collision", "Material", "Transform", "Z Index" ] last_horizontal_direction = -1 -[node name="str_stagename" parent="stage" index="4" instance=ExtResource( 7 )] - +[node name="str_stagename" parent="stage" instance=ExtResource( 7 )] text = "Stage 19: Mixed" -[node name="spotlight_on_timer" parent="stage" index="5" instance=ExtResource( 8 )] - +[node name="spotlight_on_timer" parent="stage" instance=ExtResource( 8 )] position = Vector2( 248, 24 ) polygon = PoolVector2Array( -112, 224, 96, 224, 0.0959015, 0.603569 ) -[node name="spotlight_on_timer2" parent="stage" index="6" instance=ExtResource( 8 )] - +[node name="spotlight_on_timer2" parent="stage" instance=ExtResource( 8 )] position = Vector2( 104, 24 ) polygon = PoolVector2Array( -96, 224, 96, 224, 0.0959015, 0.603569 ) -[node name="vine" parent="stage" index="7" instance=ExtResource( 9 )] - +[node name="vine" parent="stage" instance=ExtResource( 9 )] position = Vector2( 232, 120 ) -[node name="vine2" parent="stage" index="8" instance=ExtResource( 9 )] - +[node name="vine2" parent="stage" instance=ExtResource( 9 )] position = Vector2( 264, 184 ) -[node name="grass" parent="stage" index="9" instance=ExtResource( 10 )] - +[node name="grass" parent="stage" instance=ExtResource( 10 )] position = Vector2( 56, 152 ) -[node name="grass2" parent="stage" index="10" instance=ExtResource( 10 )] - +[node name="grass2" parent="stage" instance=ExtResource( 10 )] position = Vector2( 104, 120 ) -[node name="grass3" parent="stage" index="11" instance=ExtResource( 10 )] - +[node name="grass3" parent="stage" instance=ExtResource( 10 )] position = Vector2( 264, 120 ) -[node name="bg" parent="." index="2" instance=ExtResource( 11 )] - - +[node name="bg" parent="." instance=ExtResource( 11 )] diff --git a/Scenes/stages/19.tscn b/Scenes/stages/19.tscn index 0c42d8e..ef6c3b1 100644 --- a/Scenes/stages/19.tscn +++ b/Scenes/stages/19.tscn @@ -13,7 +13,6 @@ [ext_resource path="res://Scenes/grass.tscn" type="PackedScene" id=11] [sub_resource type="GDScript" id=1] - script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! var grid_size = Vector2(25,16) @@ -41,7 +40,6 @@ func _ready(): print('Tilemap: Autotiling done!')" [sub_resource type="GDScript" id=2] - resource_name = "tilemap_stone" script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! @@ -67,147 +65,89 @@ func _ready(): var tile_index = 0 + North * north_tile + West * west_tile + East * east_tile + South * south_tile set_cell(x, y, tile_index) print('Tilemap: Autotiling done!')" -_sections_unfolded = [ "Resource" ] [node name="stage" type="Node2D"] -[node name="bg" parent="." index="0" instance=ExtResource( 1 )] +[node name="bg" parent="." instance=ExtResource( 1 )] -[node name="twn_stagefadein" parent="." index="1" instance=ExtResource( 2 )] +[node name="twn_stagefadein" parent="." instance=ExtResource( 2 )] -[node name="stage" type="Control" parent="." index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="stage" type="Control" parent="."] margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Material", "Rect" ] - -[node name="tilemap" type="TileMap" parent="stage" index="0"] +[node name="tilemap" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 3 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( -1, 0, 0, -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, -65533, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65525, 0, 0, -65524, 0, 0, -65523, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -65512, 0, 0, 65535, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7, 0, 0, 8, 0, 0, 9, 0, 0, 10, 0, 0, 11, 0, 0, 12, 0, 0, 13, 0, 0, 14, 0, 0, 15, 0, 0, 16, 0, 0, 17, 0, 0, 18, 0, 0, 19, 0, 0, 20, 0, 0, 21, 0, 0, 22, 0, 0, 23, 0, 0, 24, 0, 0, 131071, 0, 0, 65536, 0, 0, 65559, 0, 0, 65560, 0, 0, 196607, 0, 0, 131072, 0, 0, 131079, 0, 0, 131081, 0, 0, 131083, 0, 0, 131085, 0, 0, 131087, 0, 0, 131089, 0, 0, 131095, 0, 0, 131096, 0, 0, 262143, 0, 0, 196608, 0, 0, 196614, 0, 0, 196615, 0, 0, 196617, 0, 0, 196619, 0, 0, 196621, 0, 0, 196623, 0, 0, 196625, 0, 0, 196631, 0, 0, 196632, 0, 0, 327679, 0, 0, 262144, 0, 0, 262148, 0, 0, 262149, 0, 0, 262150, 0, 0, 262153, 0, 0, 262155, 0, 0, 262157, 0, 0, 262159, 0, 0, 262161, 0, 0, 262167, 0, 0, 262168, 0, 0, 393215, 0, 0, 327680, 0, 0, 327684, 0, 0, 327685, 0, 0, 327686, 0, 0, 327691, 0, 0, 327693, 0, 0, 327695, 0, 0, 327703, 0, 0, 327704, 0, 0, 458751, 0, 0, 393220, 0, 0, 393221, 0, 0, 393222, 0, 0, 393227, 0, 0, 393229, 0, 0, 393231, 0, 0, 393239, 0, 0, 393240, 0, 0, 524287, 0, 0, 458756, 0, 0, 458757, 0, 0, 458775, 0, 0, 458776, 0, 0, 589823, 0, 0, 524288, 0, 0, 524292, 0, 0, 524293, 0, 0, 524294, 0, 0, 524311, 0, 0, 524312, 0, 0, 655359, 0, 0, 589824, 0, 0, 589828, 0, 0, 589829, 0, 0, 589830, 0, 0, 589847, 0, 0, 589848, 0, 0, 720895, 0, 0, 655360, 0, 0, 655364, 0, 0, 655365, 0, 0, 655366, 0, 0, 655373, 0, 0, 655379, 0, 0, 655381, 0, 0, 655383, 0, 0, 655384, 0, 0, 786431, 0, 0, 720896, 0, 0, 720900, 0, 0, 720901, 0, 0, 720904, 0, 0, 720906, 0, 0, 720908, 0, 0, 720909, 0, 0, 720910, 0, 0, 720911, 0, 0, 720912, 0, 0, 720913, 0, 0, 720914, 0, 0, 720915, 0, 0, 720916, 0, 0, 720919, 0, 0, 720920, 0, 0, 851967, 0, 0, 786432, 0, 0, 786433, 0, 0, 786434, 0, 0, 786435, 0, 0, 786436, 0, 0, 786437, 0, 0, 786439, 0, 0, 786451, 0, 0, 786455, 0, 0, 786456, 0, 0, 917503, 0, 0, 851968, 0, 0, 851969, 0, 0, 851970, 0, 0, 851971, 0, 0, 851972, 0, 0, 851973, 0, 0, 851974, 0, 0, 851975, 0, 0, 851976, 0, 0, 851977, 0, 0, 851978, 0, 0, 851979, 0, 0, 851980, 0, 0, 851981, 0, 0, 851982, 0, 0, 851983, 0, 0, 851984, 0, 0, 851985, 0, 0, 851986, 0, 0, 851987, 0, 0, 851988, 0, 0, 851989, 0, 0, 851990, 0, 0, 851991, 0, 0, 851992, 0, 0, 983039, 0, 0, 917504, 0, 0, 917505, 0, 0, 917506, 0, 0, 917507, 0, 0, 917508, 0, 0, 917509, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 0, 0, 917517, 0, 0, 917518, 0, 0, 917519, 0, 0, 917520, 0, 0, 917521, 0, 0, 917522, 0, 0, 917523, 0, 0, 917524, 0, 0, 917525, 0, 0, 917526, 0, 0, 917527, 0, 0, 917528, 0, 0 ) script = SubResource( 1 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] - -[node name="tilemap_unphaseable" type="TileMap" parent="stage" index="1"] +[node name="tilemap_unphaseable" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 4 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( 65537, 0, 0, 65538, 0, 0, 65539, 0, 0, 65540, 0, 0, 65541, 0, 0, 65542, 0, 0, 65543, 0, 0, 65544, 0, 0, 65545, 0, 0, 65546, 0, 0, 65547, 0, 0, 65548, 0, 0, 65549, 0, 0, 65550, 0, 0, 65551, 0, 0, 65552, 0, 0, 65553, 0, 0, 65554, 0, 0, 65555, 0, 0, 65556, 0, 0, 65557, 0, 0, 65558, 0, 0, 131073, 0, 0, 131074, 0, 0, 131075, 0, 0, 131080, 0, 0, 131082, 0, 0, 131084, 0, 0, 131086, 0, 0, 131088, 0, 0, 131094, 0, 0, 131095, 0, 0, 196609, 0, 0, 196610, 0, 0, 196618, 0, 0, 196620, 0, 0, 196622, 0, 0, 196630, 0, 0, 262145, 0, 0, 262146, 0, 0, 262156, 0, 0, 262163, 0, 0, 262164, 0, 0, 262165, 0, 0, 262166, 0, 0, 327681, 0, 0, 327682, 0, 0, 327692, 0, 0, 327698, 0, 0, 327699, 0, 0, 327700, 0, 0, 327701, 0, 0, 327702, 0, 0, 393216, 0, 0, 393217, 0, 0, 393218, 0, 0, 393234, 0, 0, 393235, 0, 0, 393236, 0, 0, 393237, 0, 0, 393238, 0, 0, 458752, 0, 0, 458753, 0, 0, 458754, 0, 0, 458765, 0, 0, 458771, 0, 0, 458772, 0, 0, 458773, 0, 0, 458774, 0, 0, 524289, 0, 0, 524290, 0, 0, 524306, 0, 0, 524307, 0, 0, 524308, 0, 0, 524309, 0, 0, 524310, 0, 0, 589825, 0, 0, 589826, 0, 0, 589841, 0, 0, 589842, 0, 0, 589843, 0, 0, 589844, 0, 0, 589845, 0, 0, 589846, 0, 0, 655361, 0, 0, 720902, 0, 0, 720903, 0, 0, 720905, 0, 0, 720907, 0, 0, 720909, 0, 0, 720911, 0, 0, 720913, 0, 0, 720915, 0, 0, 786438, 0, 0, 786440, 0, 0, 786442, 0, 0, 786444, 0, 0, 786446, 0, 0, 786448, 0, 0, 786450, 0, 0, 851975, 0, 0, 851977, 0, 0, 851979, 0, 0, 851981, 0, 0, 851983, 0, 0, 851985, 0, 0, 851987, 0, 0 ) script = SubResource( 2 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] - -[node name="next_level" parent="stage" index="2" instance=ExtResource( 5 )] +[node name="next_level" parent="stage" instance=ExtResource( 5 )] position = Vector2( 344, 200 ) next_level = ExtResource( 6 ) -[node name="player" parent="stage" index="3" instance=ExtResource( 7 )] - +[node name="player" parent="stage" instance=ExtResource( 7 )] position = Vector2( 40, 184 ) -_sections_unfolded = [ "Collision", "Material", "Transform", "Z Index" ] - -[node name="str_stagename" parent="stage" index="4" instance=ExtResource( 8 )] +[node name="str_stagename" parent="stage" instance=ExtResource( 8 )] text = "Stage 20: Gauntlet" -[node name="spotlight_with_button" parent="stage" index="5" instance=ExtResource( 9 )] - +[node name="spotlight_with_button" parent="stage" instance=ExtResource( 9 )] position = Vector2( 104, 136 ) [node name="line_2d" parent="stage/spotlight_with_button" index="0"] - points = PoolVector2Array( 0, 32, 0, 0, 192, 0, 192, -96, 224, -96, 224, -72 ) [node name="spotlight" parent="stage/spotlight_with_button" index="2"] - position = Vector2( 0, 32 ) rotation = -1.5708 polygon = PoolVector2Array( -112, 336, 64, 336, 0.0959015, 0.603569 ) [node name="button" parent="stage/spotlight_with_button" index="3"] - position = Vector2( 224, -80 ) -[node name="vine" parent="stage/spotlight_with_button" index="5" instance=ExtResource( 10 )] - +[node name="vine" parent="stage/spotlight_with_button" instance=ExtResource( 10 )] position = Vector2( 80, -16 ) -[node name="vine4" parent="stage/spotlight_with_button" index="6" instance=ExtResource( 10 )] - +[node name="vine4" parent="stage/spotlight_with_button" instance=ExtResource( 10 )] position = Vector2( 16, -64 ) -[node name="vine2" parent="stage/spotlight_with_button" index="7" instance=ExtResource( 10 )] - +[node name="vine2" parent="stage/spotlight_with_button" instance=ExtResource( 10 )] position = Vector2( 144, -16 ) -[node name="vine3" parent="stage/spotlight_with_button" index="8" instance=ExtResource( 10 )] - +[node name="vine3" parent="stage/spotlight_with_button" instance=ExtResource( 10 )] position = Vector2( 176, -48 ) -[node name="grass" parent="stage" index="6" instance=ExtResource( 11 )] - +[node name="grass" parent="stage" instance=ExtResource( 11 )] position = Vector2( 72, 56 ) -[node name="grass2" parent="stage" index="7" instance=ExtResource( 11 )] - +[node name="grass2" parent="stage" instance=ExtResource( 11 )] position = Vector2( 104, 120 ) -[node name="grass3" parent="stage" index="8" instance=ExtResource( 11 )] - +[node name="grass3" parent="stage" instance=ExtResource( 11 )] position = Vector2( 216, 152 ) -[node name="grass4" parent="stage" index="9" instance=ExtResource( 11 )] - +[node name="grass4" parent="stage" instance=ExtResource( 11 )] position = Vector2( 328, 200 ) -[node name="grass5" parent="stage" index="10" instance=ExtResource( 11 )] - +[node name="grass5" parent="stage" instance=ExtResource( 11 )] position = Vector2( 328, 168 ) -[node name="grass6" parent="stage" index="11" instance=ExtResource( 11 )] - +[node name="grass6" parent="stage" instance=ExtResource( 11 )] position = Vector2( 56, 184 ) - [editable path="stage/spotlight_with_button"] diff --git a/Scenes/stages/2.tscn b/Scenes/stages/2.tscn index f19e67b..5638f1b 100644 --- a/Scenes/stages/2.tscn +++ b/Scenes/stages/2.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=11 format=2] +[gd_scene load_steps=12 format=2] [ext_resource path="res://Scenes/twn_stagefadein.tscn" type="PackedScene" id=1] [ext_resource path="res://Resources/tilemap.tres" type="TileSet" id=2] @@ -9,9 +9,9 @@ [ext_resource path="res://Scenes/player_default/player.tscn" type="PackedScene" id=7] [ext_resource path="res://Scenes/str_stagename.tscn" type="PackedScene" id=8] [ext_resource path="res://Scenes/grass.tscn" type="PackedScene" id=9] +[ext_resource path="res://Scenes/bg_layer.tscn" type="PackedScene" id=10] [sub_resource type="GDScript" id=1] - script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! var grid_size = Vector2(25,16) @@ -37,101 +37,63 @@ func _ready(): if(randf()<0.1): tile_index+=randi()%12 set_cell(x, y, tile_index) print('Tilemap: Autotiling done!')" -_sections_unfolded = [ "Resource" ] -[node name="stage" type="Node2D" index="0"] +[node name="stage" type="Node2D"] -[node name="twn_stagefadein" parent="." index="0" instance=ExtResource( 1 )] +[node name="twn_stagefadein" parent="." instance=ExtResource( 1 )] -[node name="stage" type="Control" parent="." index="1"] +[node name="bg" parent="." instance=ExtResource( 10 )] -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="stage" type="Control" parent="."] margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Material", "Rect" ] - -[node name="tilemap" type="TileMap" parent="stage" index="0"] +[node name="tilemap" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 2 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( -1, 0, 0, -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, -65533, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65525, 0, 0, -65524, 0, 0, -65523, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -65512, 0, 0, 65535, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7, 0, 0, 8, 0, 0, 9, 0, 0, 10, 0, 0, 11, 0, 0, 12, 0, 0, 13, 0, 0, 14, 0, 0, 15, 0, 0, 16, 0, 0, 17, 0, 0, 18, 0, 0, 19, 0, 0, 20, 0, 0, 21, 0, 0, 22, 0, 0, 23, 0, 0, 24, 0, 0, 131071, 0, 0, 65536, 0, 0, 65542, 0, 0, 65543, 0, 0, 65544, 0, 0, 65545, 0, 0, 65546, 0, 0, 65547, 0, 0, 65548, 0, 0, 65549, 0, 0, 65550, 0, 0, 65551, 0, 0, 65552, 0, 0, 65553, 0, 0, 65554, 0, 0, 65555, 0, 0, 65556, 0, 0, 65557, 0, 0, 65558, 0, 0, 65559, 0, 0, 65560, 0, 0, 196607, 0, 0, 131072, 0, 0, 131083, 0, 0, 131084, 0, 0, 131085, 0, 0, 131086, 0, 0, 131087, 0, 0, 131088, 0, 0, 131089, 0, 0, 131090, 0, 0, 131091, 0, 0, 131092, 0, 0, 131093, 0, 0, 131094, 0, 0, 131095, 0, 0, 131096, 0, 0, 262143, 0, 0, 196608, 0, 0, 196620, 0, 0, 196621, 0, 0, 196622, 0, 0, 196623, 0, 0, 196624, 0, 0, 196625, 0, 0, 196626, 0, 0, 196627, 0, 0, 196628, 0, 0, 196629, 0, 0, 196630, 0, 0, 196631, 0, 0, 196632, 0, 0, 327679, 0, 0, 262144, 0, 0, 262145, 0, 0, 262146, 0, 0, 262147, 0, 0, 262148, 0, 0, 262149, 0, 0, 262156, 0, 0, 262157, 0, 0, 262158, 0, 0, 262159, 0, 0, 262160, 0, 0, 262161, 0, 0, 262162, 0, 0, 262163, 0, 0, 262164, 0, 0, 262165, 0, 0, 262166, 0, 0, 262167, 0, 0, 262168, 0, 0, 393215, 0, 0, 327680, 0, 0, 327681, 0, 0, 327682, 0, 0, 327683, 0, 0, 327684, 0, 0, 327685, 0, 0, 327686, 0, 0, 327687, 0, 0, 327688, 0, 0, 327692, 0, 0, 327693, 0, 0, 327694, 0, 0, 327695, 0, 0, 327696, 0, 0, 327697, 0, 0, 327698, 0, 0, 327699, 0, 0, 327700, 0, 0, 327701, 0, 0, 327702, 0, 0, 327703, 0, 0, 327704, 0, 0, 458751, 0, 0, 393216, 0, 0, 393217, 0, 0, 393218, 0, 0, 393228, 0, 0, 393229, 0, 0, 393230, 0, 0, 393231, 0, 0, 393232, 0, 0, 393233, 0, 0, 393234, 0, 0, 393235, 0, 0, 393236, 0, 0, 393237, 0, 0, 393238, 0, 0, 393239, 0, 0, 393240, 0, 0, 524287, 0, 0, 458752, 0, 0, 458753, 0, 0, 458762, 0, 0, 458763, 0, 0, 458764, 0, 0, 458769, 0, 0, 458770, 0, 0, 458771, 0, 0, 458772, 0, 0, 458773, 0, 0, 458774, 0, 0, 458775, 0, 0, 458776, 0, 0, 589823, 0, 0, 524288, 0, 0, 524289, 0, 0, 524293, 0, 0, 524294, 0, 0, 524295, 0, 0, 524296, 0, 0, 524297, 0, 0, 524298, 0, 0, 524299, 0, 0, 524306, 0, 0, 524307, 0, 0, 524308, 0, 0, 524309, 0, 0, 524310, 0, 0, 524311, 0, 0, 524312, 0, 0, 655359, 0, 0, 589824, 0, 0, 589827, 0, 0, 589828, 0, 0, 589829, 0, 0, 589830, 0, 0, 589831, 0, 0, 589832, 0, 0, 589833, 0, 0, 589834, 0, 0, 589846, 0, 0, 589847, 0, 0, 589848, 0, 0, 720895, 0, 0, 655360, 0, 0, 655382, 0, 0, 655383, 0, 0, 655384, 0, 0, 786431, 0, 0, 720896, 0, 0, 720919, 0, 0, 720920, 0, 0, 851967, 0, 0, 786432, 0, 0, 786455, 0, 0, 786456, 0, 0, 917503, 0, 0, 851968, 0, 0, 851969, 0, 0, 851970, 0, 0, 851971, 0, 0, 851972, 0, 0, 851973, 0, 0, 851974, 0, 0, 851975, 0, 0, 851976, 0, 0, 851977, 0, 0, 851978, 0, 0, 851979, 0, 0, 851980, 0, 0, 851981, 0, 0, 851982, 0, 0, 851983, 0, 0, 851984, 0, 0, 851985, 0, 0, 851986, 0, 0, 851987, 0, 0, 851988, 0, 0, 851989, 0, 0, 851990, 0, 0, 851991, 0, 0, 851992, 0, 0, 983039, 0, 0, 917504, 0, 0, 917505, 0, 0, 917506, 0, 0, 917507, 0, 0, 917508, 0, 0, 917509, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 0, 0, 917517, 0, 0, 917518, 0, 0, 917519, 0, 0, 917520, 0, 0, 917521, 0, 0, 917522, 0, 0, 917523, 0, 0, 917524, 0, 0, 917525, 0, 0, 917526, 0, 0, 917527, 0, 0, 917528, 0, 0 ) script = SubResource( 1 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] - -[node name="spotlight_on_timer" parent="stage" index="1" instance=ExtResource( 3 )] +[node name="spotlight_on_timer" parent="stage" instance=ExtResource( 3 )] position = Vector2( 248, 120 ) polygon = PoolVector2Array( -48, 96, 48, 96, 0.0959015, 0.603569 ) wait_time = 4.0 -[node name="str_tutorial" parent="stage" index="2" instance=ExtResource( 4 )] - +[node name="str_tutorial" parent="stage" instance=ExtResource( 4 )] margin_left = 184.0 margin_top = 184.0 margin_right = 394.0 margin_bottom = 204.0 text = "Avoid the lights" -[node name="next_level" parent="stage" index="3" instance=ExtResource( 5 )] - +[node name="next_level" parent="stage" instance=ExtResource( 5 )] position = Vector2( 344, 200 ) next_level = ExtResource( 6 ) -[node name="player" parent="stage" index="4" instance=ExtResource( 7 )] - +[node name="player" parent="stage" instance=ExtResource( 7 )] position = Vector2( 40, 56 ) -_sections_unfolded = [ "Collision", "Material", "Transform", "Z Index" ] - -[node name="str_stagename" parent="stage" index="5" instance=ExtResource( 8 )] +[node name="str_stagename" parent="stage" instance=ExtResource( 8 )] text = "Stage 3: Licht" -[node name="grass" parent="stage" index="6" instance=ExtResource( 9 )] - +[node name="grass" parent="stage" instance=ExtResource( 9 )] position = Vector2( 136, 72 ) -[node name="grass3" parent="stage" index="7" instance=ExtResource( 9 )] - +[node name="grass3" parent="stage" instance=ExtResource( 9 )] position = Vector2( 120, 120 ) -[node name="grass4" parent="stage" index="8" instance=ExtResource( 9 )] - +[node name="grass4" parent="stage" instance=ExtResource( 9 )] position = Vector2( 24, 200 ) -[node name="grass5" parent="stage" index="9" instance=ExtResource( 9 )] - +[node name="grass5" parent="stage" instance=ExtResource( 9 )] position = Vector2( 152, 200 ) -[node name="grass6" parent="stage" index="10" instance=ExtResource( 9 )] - +[node name="grass6" parent="stage" instance=ExtResource( 9 )] position = Vector2( 312, 200 ) -[node name="grass2" parent="stage" index="11" instance=ExtResource( 9 )] - +[node name="grass2" parent="stage" instance=ExtResource( 9 )] position = Vector2( 104, 72 ) - - diff --git a/Scenes/stages/20.tscn b/Scenes/stages/20.tscn index 7e40137..edda7fb 100644 --- a/Scenes/stages/20.tscn +++ b/Scenes/stages/20.tscn @@ -13,7 +13,6 @@ [ext_resource path="res://Scenes/grass.tscn" type="PackedScene" id=11] [sub_resource type="GDScript" id=1] - script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! var grid_size = Vector2(25,16) @@ -41,7 +40,6 @@ func _ready(): print('Tilemap: Autotiling done!')" [sub_resource type="GDScript" id=2] - resource_name = "tilemap_stone" script/source = "extends TileMap #I don't really know how to use Godot's autotile the right away, so I'm using this code! @@ -67,10 +65,8 @@ func _ready(): var tile_index = 0 + North * north_tile + West * west_tile + East * east_tile + South * south_tile set_cell(x, y, tile_index) print('Tilemap: Autotiling done!')" -_sections_unfolded = [ "Resource" ] [sub_resource type="GDScript" id=3] - script/source = "extends Area2D onready var current_level=get_tree().current_scene.get_node('stage') export (PackedScene) var next_level=load(\"res://Scenes/debug.tscn\") @@ -98,154 +94,84 @@ func _on_next_level_body_entered(body): # get_parent().go_out()" [sub_resource type="RectangleShape2D" id=4] - -custom_solver_bias = 0.0 extents = Vector2( 9, 176 ) [node name="stage" type="Node2D"] -[node name="bg" parent="." index="0" instance=ExtResource( 1 )] +[node name="bg" parent="." instance=ExtResource( 1 )] -[node name="twn_stagefadein" parent="." index="1" instance=ExtResource( 2 )] +[node name="twn_stagefadein" parent="." instance=ExtResource( 2 )] -[node name="stage" type="Control" parent="." index="2"] - -anchor_left = 0.0 -anchor_top = 0.0 -anchor_right = 0.0 -anchor_bottom = 0.0 +[node name="stage" type="Control" parent="."] margin_right = 40.0 margin_bottom = 40.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 -_sections_unfolded = [ "Material", "Rect" ] - -[node name="tilemap" type="TileMap" parent="stage" index="0"] +[node name="tilemap" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 3 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( -1, 0, 0, -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, -65533, 0, 0, -65532, 0, 0, -65531, 0, 0, -65527, 0, 0, -65526, 0, 0, -65525, 0, 0, -65524, 0, 0, -65523, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, 65535, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 9, 0, 0, 10, 0, 0, 13, 0, 0, 14, 0, 0, 15, 0, 0, 16, 0, 0, 17, 0, 0, 18, 0, 0, 19, 0, 0, 20, 0, 0, 21, 0, 0, 131071, 0, 0, 65536, 0, 0, 65537, 0, 0, 65538, 0, 0, 65542, 0, 0, 65545, 0, 0, 65546, 0, 0, 65547, 0, 0, 65552, 0, 0, 65553, 0, 0, 65554, 0, 0, 65555, 0, 0, 196607, 0, 0, 131072, 0, 0, 131073, 0, 0, 131078, 0, 0, 131081, 0, 0, 262143, 0, 0, 196608, 0, 0, 196613, 0, 0, 196617, 0, 0, 196618, 0, 0, 327679, 0, 0, 262144, 0, 0, 262145, 0, 0, 262146, 0, 0, 262147, 0, 0, 262149, 0, 0, 262153, 0, 0, 262154, 0, 0, 262155, 0, 0, 262156, 0, 0, 262157, 0, 0, 327681, 0, 0, 327683, 0, 0, 327684, 0, 0, 327685, 0, 0, 327688, 0, 0, 327689, 0, 0, 327690, 0, 0, 327691, 0, 0, 327692, 0, 0, 327693, 0, 0, 393220, 0, 0, 393221, 0, 0, 393224, 0, 0, 393225, 0, 0, 393228, 0, 0, 458757, 0, 0, 458758, 0, 0, 458759, 0, 0, 458760, 0, 0, 458764, 0, 0, 524295, 0, 0, 524296, 0, 0, 524297, 0, 0, 524298, 0, 0, 524299, 0, 0, 524300, 0, 0, 524301, 0, 0, 589837, 0, 0, 655369, 0, 0, 655370, 0, 0, 655374, 0, 0, 655375, 0, 0, 720907, 0, 0, 720908, 0, 0, 720911, 0, 0, 720912, 0, 0, 720913, 0, 0, 786445, 0, 0, 851983, 0, 0, 851986, 0, 0, 851987, 0, 0, 851988, 0, 0, 917519, 0, 0, 917520, 0, 0, 917521, 0, 0, 917522, 0, 0, 917523, 0, 0, 917524, 0, 0, 917525, 0, 0, 917526, 0, 0, 917527, 0, 0, 917528, 0, 0 ) script = SubResource( 1 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] - -[node name="tilemap_unphaseable" type="TileMap" parent="stage" index="1"] +[node name="tilemap_unphaseable" type="TileMap" parent="stage"] position = Vector2( 0, 1 ) -mode = 0 tile_set = ExtResource( 4 ) cell_size = Vector2( 16, 16 ) -cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -cell_half_offset = 2 -cell_tile_origin = 0 -cell_y_sort = false -cell_clip_uv = false -collision_use_kinematic = false -collision_friction = 1.0 -collision_bounce = 0.0 collision_layer = 5 -collision_mask = 1 -occluder_light_mask = 1 format = 1 tile_data = PoolIntArray( -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65513, 0, 0, 65534, 0, 0, 6, 0, 0, 7, 0, 0, 8, 0, 0, 11, 0, 0, 12, 0, 0, 22, 0, 0, 23, 0, 0, 131070, 0, 0, 65543, 0, 0, 65544, 0, 0, 65548, 0, 0, 65549, 0, 0, 65550, 0, 0, 65551, 0, 0, 65556, 0, 0, 65557, 0, 0, 65558, 0, 0, 65559, 0, 0, 196606, 0, 0, 131079, 0, 0, 131080, 0, 0, 131082, 0, 0, 131083, 0, 0, 131084, 0, 0, 131085, 0, 0, 131086, 0, 0, 131087, 0, 0, 131088, 0, 0, 131089, 0, 0, 131090, 0, 0, 131091, 0, 0, 131092, 0, 0, 131093, 0, 0, 131094, 0, 0, 131095, 0, 0, 262142, 0, 0, 196616, 0, 0, 196619, 0, 0, 196620, 0, 0, 196621, 0, 0, 196622, 0, 0, 196623, 0, 0, 196624, 0, 0, 196625, 0, 0, 196626, 0, 0, 196627, 0, 0, 196628, 0, 0, 196629, 0, 0, 196630, 0, 0, 327678, 0, 0, 262159, 0, 0, 262160, 0, 0, 262161, 0, 0, 262162, 0, 0, 262163, 0, 0, 262164, 0, 0, 393214, 0, 0, 393215, 0, 0, 327680, 0, 0, 327682, 0, 0, 327696, 0, 0, 458750, 0, 0, 458751, 0, 0, 393216, 0, 0, 393217, 0, 0, 393218, 0, 0, 393219, 0, 0, 524286, 0, 0, 524287, 0, 0, 458752, 0, 0, 458753, 0, 0, 458754, 0, 0, 458755, 0, 0, 458756, 0, 0, 589822, 0, 0, 589823, 0, 0, 524288, 0, 0, 524289, 0, 0, 524290, 0, 0, 524291, 0, 0, 524292, 0, 0, 524293, 0, 0, 524294, 0, 0, 655358, 0, 0, 655359, 0, 0, 589824, 0, 0, 589825, 0, 0, 589826, 0, 0, 589827, 0, 0, 589828, 0, 0, 589829, 0, 0, 589830, 0, 0, 589831, 0, 0, 589832, 0, 0, 589833, 0, 0, 589834, 0, 0, 589835, 0, 0, 589836, 0, 0, 720894, 0, 0, 720895, 0, 0, 655360, 0, 0, 655361, 0, 0, 655362, 0, 0, 655363, 0, 0, 655364, 0, 0, 655365, 0, 0, 655366, 0, 0, 655367, 0, 0, 655368, 0, 0, 655369, 0, 0, 655371, 0, 0, 655372, 0, 0, 655373, 0, 0, 655378, 0, 0, 655379, 0, 0, 786430, 0, 0, 786431, 0, 0, 720896, 0, 0, 720897, 0, 0, 720898, 0, 0, 720899, 0, 0, 720900, 0, 0, 720901, 0, 0, 720902, 0, 0, 720903, 0, 0, 720904, 0, 0, 720905, 0, 0, 720906, 0, 0, 720909, 0, 0, 720910, 0, 0, 720914, 0, 0, 720915, 0, 0, 720916, 0, 0, 720917, 0, 0, 851966, 0, 0, 851967, 0, 0, 786432, 0, 0, 786433, 0, 0, 786434, 0, 0, 786435, 0, 0, 786436, 0, 0, 786437, 0, 0, 786438, 0, 0, 786439, 0, 0, 786440, 0, 0, 786441, 0, 0, 786442, 0, 0, 786443, 0, 0, 786444, 0, 0, 786446, 0, 0, 786447, 0, 0, 786448, 0, 0, 786449, 0, 0, 786450, 0, 0, 786451, 0, 0, 786452, 0, 0, 786453, 0, 0, 786454, 0, 0, 917502, 0, 0, 917503, 0, 0, 851968, 0, 0, 851969, 0, 0, 851970, 0, 0, 851971, 0, 0, 851972, 0, 0, 851973, 0, 0, 851974, 0, 0, 851975, 0, 0, 851976, 0, 0, 851977, 0, 0, 851978, 0, 0, 851979, 0, 0, 851980, 0, 0, 851981, 0, 0, 851982, 0, 0, 851984, 0, 0, 851985, 0, 0, 851989, 0, 0, 851990, 0, 0, 851991, 0, 0, 851992, 0, 0, 983038, 0, 0, 983039, 0, 0, 917504, 0, 0, 917505, 0, 0, 917506, 0, 0, 917507, 0, 0, 917508, 0, 0, 917509, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 0, 0, 917517, 0, 0, 917518, 0, 0 ) script = SubResource( 2 ) -_sections_unfolded = [ "Cell", "Collision", "Material", "Transform" ] - -[node name="player" parent="stage" index="2" instance=ExtResource( 5 )] +[node name="player" parent="stage" instance=ExtResource( 5 )] position = Vector2( 40, 56 ) -_sections_unfolded = [ "Collision", "Material", "Transform", "Z Index" ] - -[node name="next_level" type="Area2D" parent="stage" index="3"] +[node name="next_level" type="Area2D" parent="stage"] position = Vector2( 408, 184 ) -input_pickable = true -gravity_vec = Vector2( 0, 1 ) -gravity = 98.0 -linear_damp = 0.1 -angular_damp = 1.0 -audio_bus_override = false -audio_bus_name = "Master" script = SubResource( 3 ) -_sections_unfolded = [ "Transform" ] next_level = ExtResource( 6 ) -[node name="icon" type="Sprite" parent="stage/next_level" index="0"] - +[node name="icon" type="Sprite" parent="stage/next_level"] visible = false position = Vector2( 0, -2 ) texture = ExtResource( 7 ) -_sections_unfolded = [ "Material", "Transform" ] - -[node name="collision_shape_2d" type="CollisionShape2D" parent="stage/next_level" index="1"] +[node name="collision_shape_2d" type="CollisionShape2D" parent="stage/next_level"] position = Vector2( 0, -64 ) shape = SubResource( 4 ) -[node name="snd_done" type="AudioStreamPlayer" parent="stage/next_level" index="2"] - +[node name="snd_done" type="AudioStreamPlayer" parent="stage/next_level"] stream = ExtResource( 8 ) -volume_db = 0.0 -autoplay = false -mix_target = 0 bus = "sfx" -[node name="str_stagename" parent="stage" index="4" instance=ExtResource( 9 )] - +[node name="str_stagename" parent="stage" instance=ExtResource( 9 )] margin_top = 328.0 margin_bottom = 348.0 -[node name="vine" parent="stage" index="5" instance=ExtResource( 10 )] - +[node name="vine" parent="stage" instance=ExtResource( 10 )] position = Vector2( 72, 24 ) -[node name="vine2" parent="stage" index="6" instance=ExtResource( 10 )] - +[node name="vine2" parent="stage" instance=ExtResource( 10 )] position = Vector2( 104, 56 ) -[node name="vine3" parent="stage" index="7" instance=ExtResource( 10 )] - +[node name="vine3" parent="stage" instance=ExtResource( 10 )] position = Vector2( 216, 104 ) -[node name="grass" parent="stage" index="8" instance=ExtResource( 11 )] - +[node name="grass" parent="stage" instance=ExtResource( 11 )] position = Vector2( 120, 104 ) -[node name="grass2" parent="stage" index="9" instance=ExtResource( 11 )] - +[node name="grass2" parent="stage" instance=ExtResource( 11 )] position = Vector2( 184, 120 ) -[node name="grass3" parent="stage" index="10" instance=ExtResource( 11 )] - +[node name="grass3" parent="stage" instance=ExtResource( 11 )] position = Vector2( 232, 152 ) -[node name="grass4" parent="stage" index="11" instance=ExtResource( 11 )] - +[node name="grass4" parent="stage" instance=ExtResource( 11 )] position = Vector2( 72, 72 ) -[node name="grass5" parent="stage" index="12" instance=ExtResource( 11 )] - +[node name="grass5" parent="stage" instance=ExtResource( 11 )] position = Vector2( 280, 168 ) - [connection signal="body_entered" from="stage/next_level" to="stage/next_level" method="_on_next_level_body_entered"] - - diff --git a/Scenes/stages/21.tscn b/Scenes/stages/21.tscn index 2d7222b..2ba6b9f 100644 --- a/Scenes/stages/21.tscn +++ b/Scenes/stages/21.tscn @@ -5,7 +5,6 @@ [ext_resource path="res://Scenes/str_stagename.tscn" type="PackedScene" id=3] [sub_resource type="GDScript" id=1] - script/source = "extends Node2D # class member variables go here, for example: @@ -24,15 +23,10 @@ func _ready(): " [sub_resource type="DynamicFont" id=2] - size = 8 -use_mipmaps = false -use_filter = false font_data = ExtResource( 2 ) -_sections_unfolded = [ "Extra Spacing", "Font", "Settings" ] [sub_resource type="GDScript" id=3] - script/source = "extends Label export (float) var extra_delay=0 func _ready(): @@ -43,27 +37,16 @@ func _ready(): $twn_goup.interpolate_property(self, 'rect_global_position:y', self.rect_global_position.y, self.rect_global_position.y-16, 2.0, Tween.TRANS_QUART, Tween.EASE_IN_OUT, 0.5+extra_delay) $twn_goup.start()" -[node name="21" type="Node2D" index="0"] - +[node name="21" type="Node2D"] script = SubResource( 1 ) -[node name="stage" type="Control" parent="." index="0"] - -anchor_left = 0.0 -anchor_top = 0.0 +[node name="stage" type="Control" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 margin_right = 320.0 margin_bottom = 152.0 -rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false -mouse_filter = 0 -mouse_default_cursor_shape = 0 -size_flags_horizontal = 1 -size_flags_vertical = 1 - -[node name="str_tutorial" parent="stage" index="0" instance=ExtResource( 1 )] +[node name="str_tutorial" parent="stage" instance=ExtResource( 1 )] anchor_right = 1.0 anchor_bottom = 1.0 margin_top = 56.0 @@ -72,8 +55,7 @@ margin_bottom = 56.0 text = "Hey, you did it! You beat the game." align = 1 -[node name="str_tutorial2" parent="stage" index="1" instance=ExtResource( 1 )] - +[node name="str_tutorial2" parent="stage" instance=ExtResource( 1 )] anchor_right = 1.0 anchor_bottom = 1.0 margin_top = 141.0 @@ -83,8 +65,7 @@ text = "Thanks a lot for playing! It means a lot to us." align = 1 extra_delay = 3.0 -[node name="str_tutorial3" parent="stage" index="2" instance=ExtResource( 1 )] - +[node name="str_tutorial3" parent="stage" instance=ExtResource( 1 )] anchor_right = 1.0 anchor_bottom = 1.0 margin_top = 90.0 @@ -94,98 +75,39 @@ text = "In case you are interested, your time was" align = 1 extra_delay = 1.0 -[node name="str_tutorial4" type="Label" parent="stage" index="3"] - -editor/display_folded = true -anchor_left = 0.0 -anchor_top = 0.0 +[node name="str_tutorial4" type="Label" parent="stage"] anchor_right = 1.0 anchor_bottom = 1.0 margin_top = 106.0 margin_bottom = 106.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 custom_fonts/font = SubResource( 2 ) custom_colors/font_color_shadow = Color( 0.33, 0.33, 0.33, 1 ) text = "<