diff --git a/graphics/tiles/water_light.tres b/graphics/tiles/water_light.tres new file mode 100644 index 0000000..e5c074a --- /dev/null +++ b/graphics/tiles/water_light.tres @@ -0,0 +1,14 @@ +[gd_resource type="AnimatedTexture" load_steps=4 format=2] + +[ext_resource path="res://graphics/tiles/water_light_3.png" type="Texture" id=1] +[ext_resource path="res://graphics/tiles/water_light_2.png" type="Texture" id=2] +[ext_resource path="res://graphics/tiles/water_light_1.png" type="Texture" id=3] + +[resource] +frames = 3 +fps = 5.0 +frame_0/texture = ExtResource( 3 ) +frame_1/texture = ExtResource( 2 ) +frame_1/delay_sec = 0.0 +frame_2/texture = ExtResource( 1 ) +frame_2/delay_sec = 0.0 diff --git a/graphics/tiles/water_light_1.png b/graphics/tiles/water_light_1.png new file mode 100644 index 0000000..72c400b Binary files /dev/null and b/graphics/tiles/water_light_1.png differ diff --git a/graphics/tiles/water_light_1.png.import b/graphics/tiles/water_light_1.png.import new file mode 100644 index 0000000..e9ba36c --- /dev/null +++ b/graphics/tiles/water_light_1.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/water_light_1.png-dc9c8f84dcd53cb8390256599356eb12.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/tiles/water_light_1.png" +dest_files=[ "res://.import/water_light_1.png-dc9c8f84dcd53cb8390256599356eb12.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/graphics/tiles/water_light_2.png b/graphics/tiles/water_light_2.png new file mode 100644 index 0000000..89884c1 Binary files /dev/null and b/graphics/tiles/water_light_2.png differ diff --git a/graphics/tiles/water_light_2.png.import b/graphics/tiles/water_light_2.png.import new file mode 100644 index 0000000..cc95433 --- /dev/null +++ b/graphics/tiles/water_light_2.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/water_light_2.png-5ba81c90747918ba78298b265efaba0e.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/tiles/water_light_2.png" +dest_files=[ "res://.import/water_light_2.png-5ba81c90747918ba78298b265efaba0e.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/graphics/tiles/water_light_3.png b/graphics/tiles/water_light_3.png new file mode 100644 index 0000000..e834fe7 Binary files /dev/null and b/graphics/tiles/water_light_3.png differ diff --git a/graphics/tiles/water_light_3.png.import b/graphics/tiles/water_light_3.png.import new file mode 100644 index 0000000..3513196 --- /dev/null +++ b/graphics/tiles/water_light_3.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/water_light_3.png-0de652eb02faac645f8fedd7417768ab.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/tiles/water_light_3.png" +dest_files=[ "res://.import/water_light_3.png-0de652eb02faac645f8fedd7417768ab.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/graphics/tiles/water_light_bottom.png b/graphics/tiles/water_light_bottom.png new file mode 100644 index 0000000..e511845 Binary files /dev/null and b/graphics/tiles/water_light_bottom.png differ diff --git a/graphics/tiles/water_light_bottom.png.import b/graphics/tiles/water_light_bottom.png.import new file mode 100644 index 0000000..0a3ec4f --- /dev/null +++ b/graphics/tiles/water_light_bottom.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/water_light_bottom.png-e25ee4fe947bb28d8d59adf3b8d8632b.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/tiles/water_light_bottom.png" +dest_files=[ "res://.import/water_light_bottom.png-e25ee4fe947bb28d8d59adf3b8d8632b.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/maps/hills_scholar.tscn b/maps/hills_scholar.tscn new file mode 100644 index 0000000..c63045d --- /dev/null +++ b/maps/hills_scholar.tscn @@ -0,0 +1,282 @@ +[gd_scene load_steps=25 format=2] + +[ext_resource path="res://objects/environment/ladder/ladder.tscn" type="PackedScene" id=1] +[ext_resource path="res://objects/hud/hud.tscn" type="PackedScene" id=2] +[ext_resource path="res://audio/music/rumble_loop.ogg" type="AudioStream" id=3] +[ext_resource path="res://objects/collectibles/star.tscn" type="PackedScene" id=4] +[ext_resource path="res://objects/collectibles/key.tscn" type="PackedScene" id=5] +[ext_resource path="res://objects/Camera2D.tscn" type="PackedScene" id=6] +[ext_resource path="res://graphics/backgrounds/blue_sky.png" type="Texture" id=7] +[ext_resource path="res://tilesets/t_grass.tres" type="TileSet" id=8] +[ext_resource path="res://tilesets/t_death.tres" type="TileSet" id=9] +[ext_resource path="res://objects/environment/death tile/death_tile.tscn" type="PackedScene" id=10] +[ext_resource path="res://objects/enemy/bat.tscn" type="PackedScene" id=12] +[ext_resource path="res://objects/enemy/snake.tscn" type="PackedScene" id=14] +[ext_resource path="res://objects/enemy/slime.tscn" type="PackedScene" id=15] +[ext_resource path="res://objects/environment/turniwood/turning_platform.tscn" type="PackedScene" id=16] +[ext_resource path="res://objects/collectibles/shard.tscn" type="PackedScene" id=17] +[ext_resource path="res://scripts/delete_on_game_running.gd" type="Script" id=18] +[ext_resource path="res://maps/map.gd" type="Script" id=19] +[ext_resource path="res://tilesets/t_ladders.tres" type="TileSet" id=21] +[ext_resource path="res://objects/lore/hills/bioslime.tscn" type="PackedScene" id=22] +[ext_resource path="res://objects/lore/hills/catbat.tscn" type="PackedScene" id=23] +[ext_resource path="res://objects/lore/hills/eviscerator.tscn" type="PackedScene" id=24] +[ext_resource path="res://objects/lore/hills/verdant_hills.tscn" type="PackedScene" id=25] +[ext_resource path="res://objects/player/player.tscn" type="PackedScene" id=26] + +[sub_resource type="RectangleShape2D" id=1] +extents = Vector2( 8, 128 ) + +[node name="Map" type="Node2D" groups=["map"]] +pause_mode = 1 +script = ExtResource( 19 ) +target_time_any = 70 +target_time_100 = 180 +music = ExtResource( 3 ) +lore_entries = [ ExtResource( 25 ), ExtResource( 24 ), ExtResource( 22 ), ExtResource( 23 ) ] + +[node name="CanvasLayer" type="CanvasLayer" parent="."] +layer = -2 + +[node name="Background" type="Sprite" parent="CanvasLayer"] +z_index = -2 +texture = ExtResource( 7 ) +centered = false +__meta__ = { +"_edit_lock_": true +} + +[node name="BackgroundTiles" type="TileMap" parent="."] +tile_set = ExtResource( 8 ) +cell_size = Vector2( 8, 8 ) +format = 1 + +[node name="Ground" type="TileMap" parent="."] +tile_set = ExtResource( 8 ) +cell_size = Vector2( 8, 8 ) +format = 1 +tile_data = PoolIntArray( 262160, 0, 65537, 262161, 0, 65537, 262162, 0, 65537, 327683, 0, 65537, 327684, 0, 65537, 327685, 0, 65537, 327690, 0, 65537, 327691, 0, 65537, 327692, 0, 65537, 327693, 0, 65537, 524306, 0, 65536, 524307, 0, 65537, 524308, 0, 65537, 524309, 0, 65537, 524310, 0, 65537, 524311, 0, 65537, 524312, 0, 65538, 524315, 0, 65537, 524316, 0, 65537, 524317, 0, 65537, 524318, 0, 65537, 524319, 0, 65537, 524320, 0, 65537, 524321, 0, 65537, 524322, 0, 65537, 524323, 0, 65537, 524324, 0, 65537, 524325, 0, 65537, 524326, 0, 65537, 524327, 0, 65537, 524328, 0, 65537, 524329, 0, 65537, 524330, 0, 65537, 524331, 0, 65537, 524332, 0, 65537, 524333, 0, 65537, 524334, 0, 65537, 524335, 0, 65537, 524336, 0, 65537, 524337, 0, 65537, 524338, 0, 65537, 524339, 0, 65537, 524340, 0, 65537, 524341, 0, 65537, 655366, 0, 65536, 655367, 0, 65537, 655368, 0, 65537, 655369, 0, 65537, 655370, 0, 65537, 655371, 0, 65537, 655372, 0, 65538, 720914, 0, 65536, 720915, 0, 65537, 720916, 0, 65537, 720917, 0, 65537, 720918, 0, 65537, 720919, 0, 65537, 720920, 0, 65538, 786476, 0, 65537, 786477, 0, 65537, 786478, 0, 65537, 786483, 0, 65537, 786484, 0, 65537, 786485, 0, 65537, 851968, 0, 65537, 851969, 0, 65537, 851970, 0, 65537, 851971, 0, 65538, 917542, 0, 65537, 917543, 0, 65537, 917544, 0, 65537, 917545, 0, 65537, 917546, 0, 65537, 983050, 0, 65537, 983051, 0, 65537, 983052, 0, 65537, 983053, 0, 65537, 983054, 0, 65537, 983055, 0, 65537, 983065, 0, 65537, 983066, 0, 65537, 983067, 0, 65537, 983068, 0, 65537, 983069, 0, 65537, 983070, 0, 65537, 983071, 0, 65537, 983072, 0, 65537, 983073, 0, 65537, 983074, 0, 65537, 983075, 0, 65537, 983076, 0, 65537, 1114131, 0, 65537, 1114132, 0, 65537, 1114133, 0, 65537, 1114134, 0, 65537, 1179648, 0, 65537, 1179649, 0, 65537, 1179650, 0, 65538, 1179653, 0, 65536, 1179654, 0, 65537, 1179655, 0, 65537, 1179656, 0, 65538, 1179688, 0, 131072, 1179689, 0, 0, 1179690, 0, 0, 1179691, 0, 0, 1179692, 0, 131073, 1245224, 0, 2, 1245225, 0, 1, 1245226, 0, 1, 1245227, 0, 1, 1245228, 536870912, 2, 1310731, 0, 131072, 1310732, 536870912, 0, 1310733, 536870912, 0, 1310734, 536870912, 0, 1310735, 0, 131073, 1310760, 0, 2, 1310761, 0, 1, 1310762, 0, 1, 1310763, 0, 1, 1310764, 536870912, 2, 1376266, 0, 131072, 1376267, 0, 131075, 1376268, 536870912, 1, 1376269, 536870912, 1, 1376270, 536870912, 1, 1376271, 0, 131074, 1376272, 0, 131073, 1376296, 0, 2, 1376297, 0, 1, 1376298, 0, 1, 1376299, 0, 1, 1376300, 536870912, 2, 1441792, 0, 0, 1441793, 0, 0, 1441794, 0, 0, 1441795, 0, 0, 1441796, 0, 0, 1441797, 0, 0, 1441798, 0, 0, 1441799, 0, 0, 1441800, 0, 0, 1441801, 0, 0, 1441802, 0, 131075, 1441803, 0, 1, 1441804, 0, 1, 1441805, 0, 1, 1441806, 0, 1, 1441807, 0, 1, 1441808, 0, 131074, 1441809, 0, 0, 1441810, 0, 0, 1441811, 0, 0, 1441812, 0, 0, 1441813, 0, 0, 1441817, 0, 0, 1441818, 0, 0, 1441819, 0, 0, 1441820, 0, 0, 1441821, 0, 0, 1441822, 0, 0, 1441823, 0, 0, 1441824, 0, 0, 1441825, 0, 0, 1441826, 0, 0, 1441827, 0, 0, 1441828, 0, 0, 1441829, 0, 0, 1441830, 0, 0, 1441831, 0, 0, 1441832, 0, 131075, 1441833, 0, 1, 1441834, 0, 1, 1441835, 0, 1, 1441836, 0, 131074, 1441845, 0, 0, 1441846, 0, 0, 1441847, 0, 0, 1441848, 0, 0, 1441849, 0, 0, 1441850, 0, 0, 1441851, 0, 0, 1441852, 0, 0, 1441853, 0, 0, 1441854, 0, 0, 1441855, 0, 0, 1441856, 0, 0, 1441857, 0, 0, 1441858, 0, 0, 1441859, 0, 0, 1441860, 0, 0, 1441861, 0, 0, 1441862, 0, 0, 1441863, 0, 0, 1441864, 0, 0, 1441865, 0, 0, 1441866, 0, 0, 1441867, 0, 0, 1441868, 0, 0, 1441869, 0, 0, 1441870, 0, 0, 1441871, 0, 0, 1441872, 0, 0, 1441873, 0, 0, 1441874, 0, 0, 1441875, 0, 0, 1441876, 0, 0, 1441877, 0, 0, 1441878, 0, 0, 1441879, 0, 0, 1441880, 0, 0, 1441881, 0, 0, 1441882, 0, 0, 1441883, 0, 0, 1441884, 0, 0, 1441885, 0, 0, 1441886, 0, 0, 1441887, 0, 0, 1507328, 0, 1, 1507329, 0, 1, 1507330, 0, 1, 1507331, 0, 1, 1507332, 0, 1, 1507333, 0, 1, 1507334, 0, 1, 1507335, 0, 1, 1507336, 0, 1, 1507337, 0, 1, 1507338, 0, 1, 1507339, 0, 1, 1507340, 0, 1, 1507341, 0, 1, 1507342, 0, 1, 1507343, 0, 1, 1507344, 0, 1, 1507345, 0, 1, 1507346, 0, 1, 1507347, 0, 1, 1507348, 0, 1, 1507349, 0, 1, 1507353, 0, 1, 1507354, 0, 1, 1507355, 0, 1, 1507356, 0, 1, 1507357, 0, 1, 1507358, 0, 1, 1507359, 0, 1, 1507360, 0, 1, 1507361, 0, 1, 1507362, 0, 1, 1507363, 0, 1, 1507364, 0, 1, 1507365, 0, 1, 1507366, 0, 1, 1507367, 0, 1, 1507368, 0, 1, 1507369, 0, 1, 1507370, 0, 1, 1507371, 0, 1, 1507372, 0, 1, 1507381, 0, 1, 1507382, 0, 1, 1507383, 0, 1, 1507384, 0, 1, 1507385, 0, 1, 1507386, 0, 1, 1507387, 0, 1, 1507388, 0, 1, 1507389, 0, 1, 1507390, 0, 1, 1507391, 0, 1, 1507392, 0, 1, 1507393, 0, 1, 1507394, 0, 1, 1507395, 0, 1, 1507396, 0, 1, 1507397, 0, 1, 1507398, 0, 1, 1507399, 0, 1, 1507400, 0, 1, 1507401, 0, 1, 1507402, 0, 1, 1507403, 0, 1, 1507404, 0, 1, 1507405, 0, 1, 1507406, 0, 1, 1507407, 0, 1, 1507408, 0, 1, 1507409, 0, 1, 1507410, 0, 1, 1507411, 0, 1, 1507412, 0, 1, 1507413, 0, 1, 1507414, 0, 1, 1507415, 0, 1, 1507416, 0, 1, 1507417, 0, 1, 1507418, 0, 1, 1507419, 0, 1, 1507420, 0, 1, 1507421, 0, 1, 1507422, 0, 1, 1507423, 0, 1 ) + +[node name="Player" parent="." instance=ExtResource( 26 )] +position = Vector2( 32, 176 ) + +[node name="Death" type="TileMap" parent="." groups=["death"]] +tile_set = ExtResource( 9 ) +cell_size = Vector2( 8, 8 ) +collision_layer = 32 +format = 1 +tile_data = PoolIntArray( -1179648, 0, 0, 1441814, 10, 0, 1441815, 10, 0, 1441816, 10, 0, 1441837, 10, 0, 1441838, 10, 0, 1441839, 10, 0, 1441840, 10, 0, 1441841, 10, 0, 1441842, 10, 0, 1441843, 10, 0, 1441844, 10, 0, 1507350, 11, 0, 1507351, 11, 0, 1507352, 11, 0, 1507373, 11, 0, 1507374, 11, 0, 1507375, 11, 0, 1507376, 11, 0, 1507377, 11, 0, 1507378, 11, 0, 1507379, 11, 0, 1507380, 11, 0 ) + +[node name="Ladder" type="TileMap" parent="."] +tile_set = ExtResource( 21 ) +cell_size = Vector2( 8, 8 ) +format = 1 +tile_data = PoolIntArray( 327701, 0, 0, 393237, 0, 0, 458773, 0, 0, 655362, 0, 0, 720898, 0, 0, 786434, 0, 0, 983046, 0, 0, 1048582, 0, 0, 1114118, 0, 0 ) + +[node name="StaticBody2D" type="StaticBody2D" parent="."] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"] +position = Vector2( -8, 104 ) +shape = SubResource( 1 ) + +[node name="CollisionShape2D2" type="CollisionShape2D" parent="StaticBody2D"] +position = Vector2( 776, 112 ) +shape = SubResource( 1 ) + +[node name="Environment" type="Node2D" parent="."] + +[node name="Ladders" type="Node2D" parent="Environment"] + +[node name="Ladder" parent="Environment/Ladders" instance=ExtResource( 1 )] +position = Vector2( 48, 120 ) +scale = Vector2( 1, 3 ) + +[node name="Ladder2" parent="Environment/Ladders" instance=ExtResource( 1 )] +position = Vector2( 16, 80 ) +scale = Vector2( 1, 3 ) + +[node name="TurningPlatforms" type="Node2D" parent="Environment"] + +[node name="TurningPlatform" parent="Environment/TurningPlatforms" instance=ExtResource( 16 )] +position = Vector2( 120, 72 ) + +[node name="TurningPlatform2" parent="Environment/TurningPlatforms" instance=ExtResource( 16 )] +position = Vector2( 304, 160 ) + +[node name="TurningPlatform3" parent="Environment/TurningPlatforms" instance=ExtResource( 16 )] +position = Vector2( 368, 144 ) + +[node name="TurningPlatform4" parent="Environment/TurningPlatforms" instance=ExtResource( 16 )] +position = Vector2( 408, 144 ) + +[node name="DeathTile" parent="Environment" instance=ExtResource( 10 )] +position = Vector2( 176, 192 ) +scale = Vector2( 3, 1 ) + +[node name="DeathTile2" parent="Environment" instance=ExtResource( 10 )] +position = Vector2( 360, 192 ) +scale = Vector2( 8, 1 ) + +[node name="Collectibles" type="Node2D" parent="."] + +[node name="Star" parent="Collectibles" instance=ExtResource( 4 )] +position = Vector2( 8, 136 ) + +[node name="Star2" parent="Collectibles" instance=ExtResource( 4 )] +position = Vector2( 168, 80 ) +color = 1 + +[node name="Key" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 48, 168 ) + +[node name="Key2" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 72, 168 ) + +[node name="Key3" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 96, 152 ) + +[node name="Key5" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 64, 136 ) + +[node name="Key6" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 48, 72 ) + +[node name="Key7" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 72, 72 ) + +[node name="Key8" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 96, 72 ) + +[node name="Key9" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 144, 56 ) + +[node name="Key10" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 136, 24 ) + +[node name="Key11" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 192, 56 ) + +[node name="Key4" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 112, 152 ) + +[node name="Key12" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 152, 168 ) + +[node name="Key15" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 200, 112 ) + +[node name="Key16" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 248, 112 ) + +[node name="Key20" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 360, 88 ) + +[node name="Key21" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 264, 112 ) + +[node name="Key18" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 152, 128 ) + +[node name="Key19" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 176, 128 ) + +[node name="Key17" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 224, 112 ) + +[node name="Key13" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 120, 112 ) + +[node name="Key14" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 80, 112 ) + +[node name="Shard" parent="Collectibles" instance=ExtResource( 17 )] +position = Vector2( 32, 32 ) + +[node name="Shard2" parent="Collectibles" instance=ExtResource( 17 )] +position = Vector2( 416, 88 ) + +[node name="Enemies" type="Node2D" parent="."] + +[node name="Bat" parent="Enemies" instance=ExtResource( 12 )] +position = Vector2( 40, 104 ) +left_up_boundary = 4.0 +right_down_boundary = 2.0 + +[node name="Bat3" parent="Enemies" instance=ExtResource( 12 )] +position = Vector2( 168, 120 ) +left_up_boundary = 4.0 +right_down_boundary = 2.0 + +[node name="Bat4" parent="Enemies" instance=ExtResource( 12 )] +position = Vector2( 392, 144 ) +left_up_boundary = 4.0 +right_down_boundary = 2.0 + +[node name="Bat5" parent="Enemies" instance=ExtResource( 12 )] +position = Vector2( 392, 88 ) +left_up_boundary = 5.0 +right_down_boundary = 2.0 + +[node name="Bat2" parent="Enemies" instance=ExtResource( 12 )] +position = Vector2( 64, 32 ) +left_up_boundary = 3.0 +right_down_boundary = 2.0 +speed = 25 + +[node name="Snake" parent="Enemies" instance=ExtResource( 14 )] +position = Vector2( 64, 72 ) +left_up_boundary = 1.0 +right_down_boundary = 5.0 + +[node name="Snake3" parent="Enemies" instance=ExtResource( 14 )] +position = Vector2( 320, 104 ) +left_up_boundary = 2.0 +right_down_boundary = 3.0 +speed = 70 + +[node name="Snake2" parent="Enemies" instance=ExtResource( 14 )] +position = Vector2( 96, 32 ) +left_up_boundary = 2.0 +right_down_boundary = 2.0 + +[node name="Slime" parent="Enemies" instance=ExtResource( 15 )] +position = Vector2( 104, 112 ) +scale = Vector2( -1, 1 ) + +[node name="Slime2" parent="Enemies" instance=ExtResource( 15 )] +position = Vector2( 232, 168 ) +scale = Vector2( -1, 1 ) + +[node name="Slime3" parent="Enemies" instance=ExtResource( 15 )] +position = Vector2( 288, 112 ) +scale = Vector2( -1, 1 ) + +[node name="ColorRect2" type="ColorRect" parent="."] +margin_left = 512.0 +margin_right = 768.0 +margin_bottom = 192.0 +color = Color( 1, 0.843137, 0, 0.0901961 ) +script = ExtResource( 18 ) +__meta__ = { +"_edit_lock_": true +} + +[node name="ColorRect3" type="ColorRect" parent="."] +margin_left = 256.0 +margin_right = 512.0 +margin_bottom = 192.0 +color = Color( 1, 0, 0.631373, 0.0901961 ) +script = ExtResource( 18 ) +__meta__ = { +"_edit_lock_": true +} + +[node name="HUD" parent="." instance=ExtResource( 2 )] +song_name = "♫Rumble" + +[node name="TileMap" type="TileMap" parent="."] +tile_set = ExtResource( 8 ) +cell_size = Vector2( 8, 8 ) +format = 1 + +[node name="Camera2D" parent="." instance=ExtResource( 6 )] diff --git a/maps/test_room.tscn b/maps/test_room.tscn index c0aab93..62ea5a0 100644 --- a/maps/test_room.tscn +++ b/maps/test_room.tscn @@ -1,19 +1,17 @@ -[gd_scene load_steps=30 format=2] +[gd_scene load_steps=28 format=2] [ext_resource path="res://objects/enemy/squig.tscn" type="PackedScene" id=1] [ext_resource path="res://tilesets/t_cave.tres" type="TileSet" id=2] [ext_resource path="res://tilesets/t_mountain.tres" type="TileSet" id=3] [ext_resource path="res://objects/hud/hud.tscn" type="PackedScene" id=4] [ext_resource path="res://tilesets/t_death.tres" type="TileSet" id=5] +[ext_resource path="res://objects/environment/moving_platform/moving_platform.tscn" type="PackedScene" id=6] [ext_resource path="res://graphics/backgrounds/canopy.png" type="Texture" id=7] -[ext_resource path="res://objects/hud/letter_block.tscn" type="PackedScene" id=8] -[ext_resource path="res://objects/environment/rock/rock.tscn" type="PackedScene" id=9] [ext_resource path="res://objects/enemy/slime.tscn" type="PackedScene" id=10] [ext_resource path="res://maps/map.gd" type="Script" id=11] [ext_resource path="res://objects/environment/turniwood/turning_platform.tscn" type="PackedScene" id=12] [ext_resource path="res://objects/collectibles/arrow.tscn" type="PackedScene" id=13] [ext_resource path="res://objects/environment/hatch/hatch.tscn" type="PackedScene" id=14] -[ext_resource path="res://objects/npc/msx.tscn" type="PackedScene" id=15] [ext_resource path="res://objects/respawn_point.tscn" type="PackedScene" id=16] [ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=17] [ext_resource path="res://objects/enemy/turtle.tscn" type="PackedScene" id=18] @@ -66,10 +64,7 @@ tile_set = ExtResource( 3 ) cell_size = Vector2( 8, 8 ) collision_layer = 9 format = 1 -tile_data = PoolIntArray( 196630, 1, 0, 262166, 1, 0, 327702, 1, 0, 393238, 1, 0, 458774, 1, 0, 524310, 1, 0, 589846, 1, 0, 655382, 1, 0, 655388, 0, 196609, 983062, 0, 65537, 983063, 0, 65537, 983064, 0, 65537, 983065, 0, 65537, 983066, 0, 65537, 983067, 0, 65537, 983068, 0, 65537, 983069, 0, 65537, 1048579, 0, 65537, 1048580, 0, 65537, 1048581, 0, 65537, 1048582, 0, 65537, 1048583, 0, 65537, 1048594, 0, 65537, 1048595, 0, 65537, 1048596, 0, 65537, 1048597, 0, 65537, 1441792, 0, 0, 1441793, 0, 0, 1441794, 0, 0, 1441795, 0, 0, 1441796, 0, 0, 1441797, 0, 0, 1441798, 0, 0, 1441799, 0, 0, 1441800, 0, 0, 1441801, 0, 0, 1441802, 0, 0, 1441803, 0, 0, 1441804, 0, 0, 1441805, 0, 0, 1441806, 0, 0, 1441807, 0, 0, 1441808, 0, 0, 1441809, 0, 0, 1441810, 0, 0, 1441811, 0, 0, 1441812, 0, 0, 1441813, 0, 0, 1441814, 0, 0, 1441815, 0, 0, 1441816, 0, 0, 1441817, 0, 0, 1441818, 0, 0, 1441819, 0, 0, 1441820, 0, 0, 1441821, 0, 0, 1441822, 0, 0, 1441823, 0, 0, 1507328, 0, 1, 1507329, 0, 1, 1507330, 0, 1, 1507331, 0, 1, 1507332, 0, 1, 1507333, 0, 1, 1507334, 0, 1, 1507335, 0, 1, 1507336, 0, 1, 1507337, 0, 1, 1507338, 0, 1, 1507339, 0, 1, 1507340, 0, 1, 1507341, 0, 1, 1507342, 0, 1, 1507343, 0, 1, 1507344, 0, 1, 1507345, 0, 1, 1507346, 0, 1, 1507347, 0, 1, 1507348, 0, 1, 1507349, 0, 1, 1507350, 0, 1, 1507351, 0, 1, 1507352, 0, 1, 1507353, 0, 1, 1507354, 0, 1, 1507355, 0, 1, 1507356, 0, 1, 1507357, 0, 1, 1507358, 0, 1, 1507359, 0, 1 ) - -[node name="Rock" parent="." instance=ExtResource( 9 )] -position = Vector2( 152, 120 ) +tile_data = PoolIntArray( 196630, 1, 0, 262166, 1, 0, 327702, 1, 0, 393238, 1, 0, 458774, 1, 0, 524310, 1, 0, 589846, 1, 0, 655382, 1, 0, 655388, 0, 196609, 983062, 0, 65537, 983063, 0, 65537, 983064, 0, 65537, 983065, 0, 65537, 983066, 0, 65537, 983067, 0, 65537, 983068, 0, 65537, 983069, 0, 65537, 1048579, 0, 65537, 1048580, 0, 65537, 1048581, 0, 65537, 1048582, 0, 65537, 1048583, 0, 65537, 1441792, 0, 0, 1441793, 0, 0, 1441794, 0, 0, 1441795, 0, 0, 1441796, 0, 0, 1441797, 0, 0, 1441798, 0, 0, 1441799, 0, 0, 1441800, 0, 0, 1441801, 0, 0, 1441802, 0, 0, 1441803, 0, 0, 1441804, 0, 0, 1441805, 0, 0, 1441806, 0, 0, 1441807, 0, 0, 1441808, 0, 0, 1441809, 0, 0, 1441810, 0, 0, 1441811, 0, 0, 1441812, 0, 0, 1441813, 0, 0, 1441814, 0, 0, 1441815, 0, 0, 1441816, 0, 0, 1441817, 0, 0, 1441818, 0, 0, 1441819, 0, 0, 1441820, 0, 0, 1441821, 0, 0, 1441822, 0, 0, 1441823, 0, 0, 1507328, 0, 1, 1507329, 0, 1, 1507330, 0, 1, 1507331, 0, 1, 1507332, 0, 1, 1507333, 0, 1, 1507334, 0, 1, 1507335, 0, 1, 1507336, 0, 1, 1507337, 0, 1, 1507338, 0, 1, 1507339, 0, 1, 1507340, 0, 1, 1507341, 0, 1, 1507342, 0, 1, 1507343, 0, 1, 1507344, 0, 1, 1507345, 0, 1, 1507346, 0, 1, 1507347, 0, 1, 1507348, 0, 1, 1507349, 0, 1, 1507350, 0, 1, 1507351, 0, 1, 1507352, 0, 1, 1507353, 0, 1, 1507354, 0, 1, 1507355, 0, 1, 1507356, 0, 1, 1507357, 0, 1, 1507358, 0, 1, 1507359, 0, 1 ) [node name="Slime" parent="." instance=ExtResource( 10 )] position = Vector2( 264, 168 ) @@ -152,10 +147,6 @@ position = Vector2( 40, 120 ) position = Vector2( 16, 168 ) target_group = "a" -[node name="MsX" parent="." groups=["a"] instance=ExtResource( 15 )] -position = Vector2( 240, 160 ) -scale = Vector2( -1, 1 ) - [node name="Cop" parent="." instance=ExtResource( 25 )] position = Vector2( 184, 112 ) turn_time = inf @@ -171,38 +162,17 @@ position = Vector2( 168, 56 ) left_up_boundary = 5.0 right_down_boundary = 5.0 -[node name="LetterBlock" parent="." instance=ExtResource( 8 )] -position = Vector2( 184, 160 ) -glyph = 4 - -[node name="LetterBlock2" parent="." instance=ExtResource( 8 )] -position = Vector2( 192, 152 ) -glyph = 26 - -[node name="LetterBlock3" parent="." instance=ExtResource( 8 )] -position = Vector2( 176, 144 ) -glyph = 12 - -[node name="LetterBlock4" parent="." instance=ExtResource( 8 )] -position = Vector2( 192, 136 ) -glyph = 16 - -[node name="LetterBlock5" parent="." instance=ExtResource( 8 )] -position = Vector2( 216, 152 ) -glyph = 3 - -[node name="LetterBlock6" parent="." instance=ExtResource( 8 )] -position = Vector2( 208, 128 ) -glyph = 30 - -[node name="LetterBlock7" parent="." instance=ExtResource( 8 )] -position = Vector2( 224, 136 ) -glyph = 27 - [node name="Turtle" parent="." instance=ExtResource( 18 )] -position = Vector2( 40, 160 ) -left_up_boundary = 2.0 +position = Vector2( 152, 152 ) +left_up_boundary = 4.0 right_down_boundary = 4.0 -speed = 10 +move_direction = 1 + +[node name="MovingPlatform" parent="." instance=ExtResource( 6 )] +position = Vector2( 128, 152 ) +scale = Vector2( 2, 1 ) +left_up_boundary = 4.0 +right_down_boundary = 4.0 +move_direction = 1 [editable path="RollingFiend"] diff --git a/tilesets/t_death.tres b/tilesets/t_death.tres index e583ee0..0d383cd 100644 --- a/tilesets/t_death.tres +++ b/tilesets/t_death.tres @@ -7,6 +7,8 @@ [ext_resource path="res://graphics/tiles/oil.tres" type="Texture" id=5] [ext_resource path="res://graphics/tiles/blood_bottom.png" type="Texture" id=6] [ext_resource path="res://graphics/tiles/blood.tres" type="Texture" id=7] +[ext_resource path="res://graphics/tiles/water_light.tres" type="Texture" id=8] +[ext_resource path="res://graphics/tiles/water_light_bottom.png" type="Texture" id=9] [sub_resource type="ConvexPolygonShape2D" id=1] points = PoolVector2Array( 7, 8, 1, 8, 1, 2, 7, 2 ) @@ -14,12 +16,6 @@ points = PoolVector2Array( 7, 8, 1, 8, 1, 2, 7, 2 ) [sub_resource type="ConvexPolygonShape2D" id=2] points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) -[sub_resource type="ConvexPolygonShape2D" id=3] -points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) - -[sub_resource type="ConvexPolygonShape2D" id=4] -points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) - [sub_resource type="ConvexPolygonShape2D" id=5] points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) @@ -69,20 +65,6 @@ points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) "shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) } ] 1/z_index = 0 -2/name = "spike.png 2" -2/texture = ExtResource( 2 ) -2/tex_offset = Vector2( 0, 0 ) -2/modulate = Color( 1, 1, 1, 1 ) -2/region = Rect2( 8, 0, 8, 8 ) -2/tile_mode = 0 -2/occluder_offset = Vector2( 0, 0 ) -2/navigation_offset = Vector2( 0, 0 ) -2/shape_offset = Vector2( 0, 0 ) -2/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -2/shape_one_way = false -2/shape_one_way_margin = 0.0 -2/shapes = [ ] -2/z_index = 0 3/name = "water_bottom.png 3" 3/texture = ExtResource( 3 ) 3/tex_offset = Vector2( 0, 0 ) @@ -104,40 +86,6 @@ points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) "shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) } ] 3/z_index = 10 -4/name = "water_bottom.png 4" -4/texture = ExtResource( 3 ) -4/tex_offset = Vector2( 0, 0 ) -4/modulate = Color( 1, 1, 1, 1 ) -4/region = Rect2( 0, 0, 8, 8 ) -4/tile_mode = 2 -4/autotile/icon_coordinate = Vector2( 0, 0 ) -4/autotile/tile_size = Vector2( 8, 8 ) -4/autotile/spacing = 0 -4/autotile/occluder_map = [ ] -4/autotile/navpoly_map = [ ] -4/autotile/priority_map = [ ] -4/autotile/z_index_map = [ ] -4/occluder_offset = Vector2( 0, 0 ) -4/navigation_offset = Vector2( 0, 0 ) -4/shape_offset = Vector2( 0, 0 ) -4/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) -4/shape = SubResource( 3 ) -4/shape_one_way = false -4/shape_one_way_margin = 1.0 -4/shapes = [ { -"autotile_coord": Vector2( 0, 0 ), -"one_way": false, -"one_way_margin": 1.0, -"shape": SubResource( 3 ), -"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) -}, { -"autotile_coord": Vector2( 0, 0 ), -"one_way": false, -"one_way_margin": 1.0, -"shape": SubResource( 4 ), -"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) -} ] -4/z_index = 0 6/name = "oil_bottom.png 6" 6/texture = ExtResource( 4 ) 6/tex_offset = Vector2( 0, 0 ) @@ -236,3 +184,45 @@ points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) "shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) } ] 9/z_index = 0 +10/name = "water_light.tres 10" +10/texture = ExtResource( 8 ) +10/tex_offset = Vector2( 0, 0 ) +10/modulate = Color( 1, 1, 1, 1 ) +10/region = Rect2( 0, 0, 8, 8 ) +10/tile_mode = 2 +10/autotile/icon_coordinate = Vector2( 0, 0 ) +10/autotile/tile_size = Vector2( 8, 8 ) +10/autotile/spacing = 0 +10/autotile/occluder_map = [ ] +10/autotile/navpoly_map = [ ] +10/autotile/priority_map = [ ] +10/autotile/z_index_map = [ ] +10/occluder_offset = Vector2( 0, 0 ) +10/navigation_offset = Vector2( 0, 0 ) +10/shape_offset = Vector2( 0, 0 ) +10/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +10/shape_one_way = false +10/shape_one_way_margin = 0.0 +10/shapes = [ ] +10/z_index = 0 +11/name = "water_light_bottom.png 11" +11/texture = ExtResource( 9 ) +11/tex_offset = Vector2( 0, 0 ) +11/modulate = Color( 1, 1, 1, 1 ) +11/region = Rect2( 0, 0, 8, 8 ) +11/tile_mode = 2 +11/autotile/icon_coordinate = Vector2( 0, 0 ) +11/autotile/tile_size = Vector2( 8, 8 ) +11/autotile/spacing = 0 +11/autotile/occluder_map = [ ] +11/autotile/navpoly_map = [ ] +11/autotile/priority_map = [ ] +11/autotile/z_index_map = [ ] +11/occluder_offset = Vector2( 0, 0 ) +11/navigation_offset = Vector2( 0, 0 ) +11/shape_offset = Vector2( 0, 0 ) +11/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +11/shape_one_way = false +11/shape_one_way_margin = 0.0 +11/shapes = [ ] +11/z_index = 0