From ffbfd41f9e144c0ecf39b255e67735757947a76e Mon Sep 17 00:00:00 2001 From: pennyrigate Date: Wed, 1 Feb 2023 17:30:42 -0500 Subject: [PATCH] added mountain --- graphics/backgrounds/mountain_clouds.png | Bin 0 -> 1096 bytes .../backgrounds/mountain_clouds.png.import | 35 ++++ graphics/backgrounds/mountain_mountain.png | Bin 0 -> 1107 bytes .../backgrounds/mountain_mountain.png.import | 35 ++++ graphics/backgrounds/mountain_sunset.png | Bin 0 -> 479 bytes .../backgrounds/mountain_sunset.png.import | 35 ++++ graphics/tiles/mountain.png | Bin 0 -> 450 bytes graphics/tiles/mountain.png.import | 35 ++++ level_data.tscn | 13 +- maps/mountain.tscn | 38 ++++ tilesets/t_mountain.tres | 195 ++++++++++++++++++ 11 files changed, 384 insertions(+), 2 deletions(-) create mode 100644 graphics/backgrounds/mountain_clouds.png create mode 100644 graphics/backgrounds/mountain_clouds.png.import create mode 100644 graphics/backgrounds/mountain_mountain.png create mode 100644 graphics/backgrounds/mountain_mountain.png.import create mode 100644 graphics/backgrounds/mountain_sunset.png create mode 100644 graphics/backgrounds/mountain_sunset.png.import create mode 100644 graphics/tiles/mountain.png create mode 100644 graphics/tiles/mountain.png.import create mode 100644 maps/mountain.tscn create mode 100644 tilesets/t_mountain.tres diff --git a/graphics/backgrounds/mountain_clouds.png b/graphics/backgrounds/mountain_clouds.png new file mode 100644 index 0000000000000000000000000000000000000000..960e1fd20c672332681b3accc7b17876a5785b57 GIT binary patch literal 1096 zcmeAS@N?(olHy`uVBq!ia0y~yU<5K54sb97$veirAwY_;ILO_JVcj{Imp~3nx}&cn z1H;CC?mvmFKt5-HPl)UF>(~GP{}1FP%DnXlQp_bme!)P2>!)~uY8f~SJR*x382Ao? zFyoGi*>8bLc6z!vhE&A8oqDnCjslO%LtT$e^Mt)Ud>rX~Gr{hDlIqjO^bRhgVkXZS%EV zIOUJox}?W1Qt!?EbyaxXA+Ob@eT$|-e zgi{oAQyzdkn8r1Nf)BGLRoV~?U zF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=oPKRsQmVQ;)5&oZPx{} zZYwgz*zkNYOSWLV#&%3NA;*DfN2$t+yu%$#KD-_b<$bJAbtQru7B)Jv-jJN}&sD<^ lJ^SFzTUaEQ{Q3Kr`TSuo^U~0hM}V1}!PC{xWt~$(69C*z(WU?Z literal 0 HcmV?d00001 diff --git a/graphics/backgrounds/mountain_mountain.png.import b/graphics/backgrounds/mountain_mountain.png.import new file mode 100644 index 0000000..6aeb5b6 --- /dev/null +++ b/graphics/backgrounds/mountain_mountain.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/mountain_mountain.png-b60ccc0e1dc2cad7e5e0f9b0989a8e90.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/backgrounds/mountain_mountain.png" +dest_files=[ "res://.import/mountain_mountain.png-b60ccc0e1dc2cad7e5e0f9b0989a8e90.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/backgrounds/mountain_sunset.png b/graphics/backgrounds/mountain_sunset.png new file mode 100644 index 0000000000000000000000000000000000000000..a9fbf4a2706173d097cab8fa9e00bfa90c6513fd GIT binary patch literal 479 zcmeAS@N?(olHy`uVBq!ia0y~yU<5K54zMr-Ny)4nJ@ErtU#vK#0 z-vZ5w^mK6yskrs_(%sw^0|D2>e60gT%!;?z4u~+E_lL zi~a~G`N;C=&-c#54O8Z@`@CcQbe3D?JJZeG4c{A1Ryw@mdede0lk>@|$)+}@&`C**s3JA%q zZK(N`5Goh&>bE?j*lot>>i@+Ie;JqVtQS6zaA0D>F9_p$)BV@w&!c%Xu7163e<01l z^ZN7IA{tMB)huQ_-s1Wz(NwCSlQA0-I0w$Qe&94s|WamxV|{-w7xv3Dcm;NM!VET)Ix=8QoBXzzW@KL9RBy+|7z^?|DqF6 z?M3NseIUhK666>B9|4nJ@ErhQ#;j|doIuODJzX3_Ed1971&SR~ z;5qC&GjH$z%G^n18!T(;B&JL=(Ow!LwB6xXaD!t*AbX6C(mj^Rk5m%UkEWk6bx}AR za>vj3p}dQYpyVyF6l;aL6^h^Gt}Ce9?_80{uzB}kooVxb#0o6`BcbbjzARaMMqhcG z=|K*D4!LB;Lk--Eat`fC*12)1$V!7HZgGKtdV%`GT|woK_kMqO*oSks z{HcqTF$Cbn$Gi7-xO+c f1#iB4=?(AxFXErIYq)0s!-~Pv)z4*}Q$iB}Py(`3 literal 0 HcmV?d00001 diff --git a/graphics/tiles/mountain.png.import b/graphics/tiles/mountain.png.import new file mode 100644 index 0000000..73f832c --- /dev/null +++ b/graphics/tiles/mountain.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/mountain.png-365ee0dff2824b1880f47f08612ca36a.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/tiles/mountain.png" +dest_files=[ "res://.import/mountain.png-365ee0dff2824b1880f47f08612ca36a.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/level_data.tscn b/level_data.tscn index 633b790..0041940 100644 --- a/level_data.tscn +++ b/level_data.tscn @@ -1,10 +1,11 @@ -[gd_scene load_steps=9 format=2] +[gd_scene load_steps=11 format=2] [ext_resource path="res://level_data.gd" type="Script" id=1] [ext_resource path="res://maps/map01.tscn" type="PackedScene" id=2] [ext_resource path="res://maps/canopy.tscn" type="PackedScene" id=3] [ext_resource path="res://maps/cave.tscn" type="PackedScene" id=4] [ext_resource path="res://scripts/level_entry.gd" type="Script" id=5] +[ext_resource path="res://maps/mountain.tscn" type="PackedScene" id=6] [sub_resource type="Resource" id=1] resource_name = "Verdant Hills" @@ -22,6 +23,14 @@ shard_titles = [ "Archer and His Friend", "Thirsty Spiders", "Spider's Den", "Da save_id = "canopy" scene = ExtResource( 3 ) +[sub_resource type="Resource" id=4] +resource_name = "Echo Mountain" +script = ExtResource( 5 ) +title = "Echo Mountain" +shard_titles = [ ":)", ":o", ":(", ":P", "5 Rainbow Stars", "Collection Bonus", "Time Bonus", "Life Bonus" ] +save_id = "mountain" +scene = ExtResource( 6 ) + [sub_resource type="Resource" id=3] resource_name = "Blue Ray Cavern" script = ExtResource( 5 ) @@ -32,4 +41,4 @@ scene = ExtResource( 4 ) [node name="LevelData" type="Node"] script = ExtResource( 1 ) -levels = [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ) ] +levels = [ SubResource( 1 ), SubResource( 2 ), SubResource( 4 ), SubResource( 3 ) ] diff --git a/maps/mountain.tscn b/maps/mountain.tscn new file mode 100644 index 0000000..86d2070 --- /dev/null +++ b/maps/mountain.tscn @@ -0,0 +1,38 @@ +[gd_scene load_steps=8 format=2] + +[ext_resource path="res://objects/Camera2D.tscn" type="PackedScene" id=1] +[ext_resource path="res://maps/map.gd" type="Script" id=2] +[ext_resource path="res://graphics/backgrounds/mountain_mountain.png" type="Texture" id=3] +[ext_resource path="res://graphics/backgrounds/mountain_clouds.png" type="Texture" id=4] +[ext_resource path="res://graphics/backgrounds/mountain_sunset.png" type="Texture" id=5] +[ext_resource path="res://objects/player/player.tscn" type="PackedScene" id=6] +[ext_resource path="res://tilesets/t_mountain.tres" type="TileSet" id=7] + +[node name="Map" type="Node2D" groups=["map"]] +script = ExtResource( 2 ) + +[node name="Camera2D" parent="." instance=ExtResource( 1 )] + +[node name="Sunset" type="Sprite" parent="Camera2D"] +position = Vector2( 128, 96 ) +z_index = -2 +texture = ExtResource( 5 ) + +[node name="Mountain" type="Sprite" parent="Camera2D"] +position = Vector2( 128, 96 ) +z_index = -2 +texture = ExtResource( 3 ) + +[node name="Clouds" type="Sprite" parent="Camera2D"] +position = Vector2( 128, 96 ) +z_index = -2 +texture = ExtResource( 4 ) + +[node name="Player" parent="." instance=ExtResource( 6 )] +position = Vector2( 32, 160 ) + +[node name="Ground" type="TileMap" parent="."] +tile_set = ExtResource( 7 ) +cell_size = Vector2( 8, 8 ) +format = 1 +tile_data = PoolIntArray( 1245196, 0, 65536, 1245197, 0, 65537, 1245198, 0, 65537, 1245199, 0, 65538, 1441792, 0, 65536, 1441793, 0, 65537, 1441794, 0, 65537, 1441795, 0, 65537, 1441796, 0, 65537, 1441797, 0, 65537, 1441798, 0, 65537, 1441799, 0, 65537, 1441800, 0, 65537, 1441801, 0, 65537, 1441802, 0, 65537, 1441803, 0, 65537, 1441804, 0, 65537, 1441805, 0, 65537, 1441806, 0, 65537, 1441807, 0, 65537, 1441808, 0, 65537, 1441809, 0, 65537, 1441810, 0, 65537, 1441811, 0, 65537, 1441812, 0, 65537, 1441813, 0, 65537, 1441814, 0, 65537, 1441815, 0, 65537, 1441816, 0, 65537, 1441817, 0, 65537, 1441818, 0, 65537, 1441819, 0, 65537, 1441820, 0, 65537, 1441821, 0, 65537, 1441822, 0, 65537, 1441823, 0, 65538 ) diff --git a/tilesets/t_mountain.tres b/tilesets/t_mountain.tres new file mode 100644 index 0000000..4122262 --- /dev/null +++ b/tilesets/t_mountain.tres @@ -0,0 +1,195 @@ +[gd_resource type="TileSet" load_steps=16 format=2] + +[ext_resource path="res://graphics/tiles/mountain.png" type="Texture" id=1] + +[sub_resource type="ConvexPolygonShape2D" id=1] +points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) + +[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, 5, 0, 5, 0, 0, 8, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=4] +points = PoolVector2Array( 8, 5, 0, 5, 0, 0, 8, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=5] +points = PoolVector2Array( 8, 5, 0, 5, 0, 0, 8, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=6] +points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=7] +points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=8] +points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=9] +points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=11] +points = PoolVector2Array( 8, 0, 8, 0, 8, 0, 8, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=13] +points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=14] +points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=15] +points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) + +[sub_resource type="ConvexPolygonShape2D" id=16] +points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) + +[resource] +0/name = "grass.png 0" +0/texture = ExtResource( 1 ) +0/tex_offset = Vector2( 0, 0 ) +0/modulate = Color( 1, 1, 1, 1 ) +0/region = Rect2( 0, 0, 32, 32 ) +0/tile_mode = 2 +0/autotile/icon_coordinate = Vector2( 0, 0 ) +0/autotile/tile_size = Vector2( 8, 8 ) +0/autotile/spacing = 0 +0/autotile/occluder_map = [ ] +0/autotile/navpoly_map = [ ] +0/autotile/priority_map = [ ] +0/autotile/z_index_map = [ ] +0/occluder_offset = Vector2( 0, 0 ) +0/navigation_offset = Vector2( 0, 0 ) +0/shape_offset = Vector2( 0, 0 ) +0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +0/shape = SubResource( 1 ) +0/shape_one_way = false +0/shape_one_way_margin = 1.0 +0/shapes = [ { +"autotile_coord": Vector2( 0, 0 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 1 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 1, 0 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 2 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 0, 1 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 3 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 1, 1 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 4 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 2, 1 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 5 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 0, 2 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 6 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 1, 2 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 7 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 2, 2 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 8 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 3, 2 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 9 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 2, 0 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 11 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 2, 0 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 13 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 2, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 14 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 3, 3 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 15 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +}, { +"autotile_coord": Vector2( 3, 1 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 16 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +} ] +0/z_index = 0 +1/name = "grass.png 1" +1/texture = ExtResource( 1 ) +1/tex_offset = Vector2( 0, 0 ) +1/modulate = Color( 1, 1, 1, 1 ) +1/region = Rect2( 0, 24, 8, 8 ) +1/tile_mode = 2 +1/autotile/icon_coordinate = Vector2( 0, 0 ) +1/autotile/tile_size = Vector2( 8, 8 ) +1/autotile/spacing = 0 +1/autotile/occluder_map = [ ] +1/autotile/navpoly_map = [ ] +1/autotile/priority_map = [ ] +1/autotile/z_index_map = [ ] +1/occluder_offset = Vector2( 0, 0 ) +1/navigation_offset = Vector2( 0, 0 ) +1/shape_offset = Vector2( 0, 0 ) +1/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +1/shape_one_way = false +1/shape_one_way_margin = 0.0 +1/shapes = [ ] +1/z_index = 0 +2/name = "grass.png 2" +2/texture = ExtResource( 1 ) +2/tex_offset = Vector2( 0, 0 ) +2/modulate = Color( 1, 1, 1, 1 ) +2/region = Rect2( 0, 32, 32, 8 ) +2/tile_mode = 2 +2/autotile/icon_coordinate = Vector2( 0, 0 ) +2/autotile/tile_size = Vector2( 8, 8 ) +2/autotile/spacing = 0 +2/autotile/occluder_map = [ ] +2/autotile/navpoly_map = [ ] +2/autotile/priority_map = [ ] +2/autotile/z_index_map = [ ] +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