Browse Source

added some gum trees, separated cameras

master
as4s4hetic 3 years ago
parent
commit
38033a59e1
  1. 91
      Resources/woods.tres
  2. 1
      Scripts/CameraFollow.gd
  3. 104
      Story/Ch1S1.tscn
  4. 2
      Story/Ch1S2.tscn
  5. 20
      Story/ScrollCamera.gd
  6. BIN
      Tiles/gumtree-bigger.png
  7. 35
      Tiles/gumtree-bigger.png.import
  8. BIN
      Tiles/gumtree.png
  9. 35
      Tiles/gumtree.png.import
  10. BIN
      Tiles/morning-grass5-bottom.png
  11. 35
      Tiles/morning-grass5-bottom.png.import
  12. BIN
      Tiles/road.png
  13. 35
      Tiles/road.png.import
  14. BIN
      Tiles/small-grass.png
  15. 35
      Tiles/small-grass.png.import
  16. BIN
      Tiles/telephone-pole.png

91
Resources/woods.tres

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
[gd_resource type="TileSet" load_steps=14 format=2]
[gd_resource type="TileSet" load_steps=19 format=2]
[ext_resource path="res://Tiles/morning.png" type="Texture" id=1]
[ext_resource path="res://Tiles/mountains.png" type="Texture" id=2]
@ -13,6 +13,11 @@ @@ -13,6 +13,11 @@
[ext_resource path="res://Tiles/morning-grass3.png" type="Texture" id=11]
[ext_resource path="res://Tiles/morning-grass4.png" type="Texture" id=12]
[ext_resource path="res://Tiles/morning-grass5.png" type="Texture" id=13]
[ext_resource path="res://Tiles/morning-grass5-bottom.png" type="Texture" id=14]
[ext_resource path="res://Tiles/road.png" type="Texture" id=15]
[ext_resource path="res://Tiles/small-grass.png" type="Texture" id=16]
[ext_resource path="res://Tiles/gumtree.png" type="Texture" id=17]
[ext_resource path="res://Tiles/gumtree-bigger.png" type="Texture" id=18]
[resource]
0/name = "Morning"
@ -197,3 +202,87 @@ @@ -197,3 +202,87 @@
12/shape_one_way_margin = 0.0
12/shapes = [ ]
12/z_index = 0
13/name = "morning-grass5-bottom.png 13"
13/texture = ExtResource( 14 )
13/tex_offset = Vector2( 0, 0 )
13/modulate = Color( 1, 1, 1, 1 )
13/region = Rect2( 0, 0, 240, 180 )
13/tile_mode = 0
13/occluder_offset = Vector2( 0, 0 )
13/navigation_offset = Vector2( 0, 0 )
13/shape_offset = Vector2( 0, 0 )
13/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
13/shape_one_way = false
13/shape_one_way_margin = 0.0
13/shapes = [ ]
13/z_index = 0
14/name = "road.png 14"
14/texture = ExtResource( 15 )
14/tex_offset = Vector2( 0, 0 )
14/modulate = Color( 1, 1, 1, 1 )
14/region = Rect2( 0, 0, 240, 180 )
14/tile_mode = 0
14/occluder_offset = Vector2( 0, 0 )
14/navigation_offset = Vector2( 0, 0 )
14/shape_offset = Vector2( 0, 0 )
14/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
14/shape_one_way = false
14/shape_one_way_margin = 0.0
14/shapes = [ ]
14/z_index = 0
15/name = "telephone-pole.png 15"
15/texture = ExtResource( 8 )
15/tex_offset = Vector2( 0, 0 )
15/modulate = Color( 1, 1, 1, 1 )
15/region = Rect2( 60, 0, 60, 360 )
15/tile_mode = 0
15/occluder_offset = Vector2( 0, 0 )
15/navigation_offset = Vector2( 0, 0 )
15/shape_offset = Vector2( 0, 0 )
15/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
15/shape_one_way = false
15/shape_one_way_margin = 0.0
15/shapes = [ ]
15/z_index = 0
16/name = "small-grass.png 16"
16/texture = ExtResource( 16 )
16/tex_offset = Vector2( 0, 0 )
16/modulate = Color( 1, 1, 1, 1 )
16/region = Rect2( 0, 0, 60, 60 )
16/tile_mode = 0
16/occluder_offset = Vector2( 0, 0 )
16/navigation_offset = Vector2( 0, 0 )
16/shape_offset = Vector2( 0, 0 )
16/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
16/shape_one_way = false
16/shape_one_way_margin = 0.0
16/shapes = [ ]
16/z_index = 0
17/name = "gumtree.png 17"
17/texture = ExtResource( 17 )
17/tex_offset = Vector2( 0, 0 )
17/modulate = Color( 1, 1, 1, 1 )
17/region = Rect2( 0, 0, 240, 300 )
17/tile_mode = 0
17/occluder_offset = Vector2( 0, 0 )
17/navigation_offset = Vector2( 0, 0 )
17/shape_offset = Vector2( 0, 0 )
17/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
17/shape_one_way = false
17/shape_one_way_margin = 0.0
17/shapes = [ ]
17/z_index = 0
18/name = "gumtree-bigger.png 18"
18/texture = ExtResource( 18 )
18/tex_offset = Vector2( 0, 0 )
18/modulate = Color( 1, 1, 1, 1 )
18/region = Rect2( 0, 0, 360, 540 )
18/tile_mode = 0
18/occluder_offset = Vector2( 0, 0 )
18/navigation_offset = Vector2( 0, 0 )
18/shape_offset = Vector2( 0, 0 )
18/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
18/shape_one_way = false
18/shape_one_way_margin = 0.0
18/shapes = [ ]
18/z_index = 0

1
Scripts/CameraFollow.gd

@ -17,6 +17,5 @@ onready var target = get_node("../FG/Player") @@ -17,6 +17,5 @@ onready var target = get_node("../FG/Player")
func _process (delta):
position = target.position
position.y -= 180

104
Story/Ch1S1.tscn

@ -2,96 +2,144 @@ @@ -2,96 +2,144 @@
[ext_resource path="res://Resources/woods.tres" type="TileSet" id=1]
[ext_resource path="res://Scenes/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://Scripts/CameraFollow.gd" type="Script" id=3]
[ext_resource path="res://Story/ScrollCamera.gd" type="Script" id=3]
[node name="Ch1S1" type="Node2D"]
[node name="Camera" type="Camera2D" parent="."]
visible = false
position = Vector2( 480, 245 )
[node name="ScrollCamera" type="Camera2D" parent="."]
current = true
script = ExtResource( 3 )
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
[node name="Background" type="ParallaxBackground" parent="."]
[node name="Sky" type="ParallaxLayer" parent="ParallaxBackground"]
[node name="SkyUpper" type="ParallaxLayer" parent="Background"]
motion_scale = Vector2( 0.05, 1 )
motion_mirroring = Vector2( 1440, 0 )
[node name="TileMap" type="TileMap" parent="Background/SkyUpper"]
tile_set = ExtResource( 1 )
cell_size = Vector2( 60, 60 )
cell_quadrant_size = 15
format = 1
tile_data = PoolIntArray( -196608, 1, 0, -196604, 1, 0, -196600, 1, 0, -196596, 1, 0, -196592, 1, 0, -196588, 1, 0, 262136, 2, 0, 262140, 2, 0, 196608, 2, 0, 196612, 2, 0, 196616, 2, 0, 196620, 2, 0, 196624, 2, 0, 196628, 2, 0 )
[node name="Sky" type="ParallaxLayer" parent="Background"]
motion_scale = Vector2( 0.1, 1 )
motion_mirroring = Vector2( 1440, 0 )
[node name="TileMap" type="TileMap" parent="ParallaxBackground/Sky"]
[node name="TileMap" type="TileMap" parent="Background/Sky"]
tile_set = ExtResource( 1 )
cell_size = Vector2( 60, 60 )
cell_quadrant_size = 15
format = 1
tile_data = PoolIntArray( -131080, 1, 0, -131076, 1, 0, -196608, 1, 0, -196604, 1, 0, -196600, 1, 0, -196596, 1, 0, -196592, 1, 0, -196588, 1, 0, 65528, 0, 0, 65532, 0, 0, 0, 0, 0, 4, 0, 0, 8, 0, 0, 12, 0, 0, 16, 0, 0, 20, 0, 0, 262136, 2, 0, 262140, 2, 0, 196608, 2, 0, 196612, 2, 0, 196616, 2, 0, 196620, 2, 0, 196624, 2, 0, 196628, 2, 0 )
tile_data = PoolIntArray( 65528, 0, 0, 65532, 0, 0, 0, 0, 0, 4, 0, 0, 8, 0, 0, 12, 0, 0, 16, 0, 0, 20, 0, 0, 262136, 2, 0, 262140, 2, 0, 196608, 2, 0, 196612, 2, 0, 196616, 2, 0, 196620, 2, 0, 196624, 2, 0, 196628, 2, 0 )
[node name="Mountains" type="ParallaxLayer" parent="ParallaxBackground"]
[node name="Mountains" type="ParallaxLayer" parent="Background"]
motion_scale = Vector2( 0.2, 1 )
motion_mirroring = Vector2( 1440, 0 )
[node name="TileMap" type="TileMap" parent="ParallaxBackground/Mountains"]
[node name="TileMap" type="TileMap" parent="Background/Mountains"]
tile_set = ExtResource( 1 )
cell_size = Vector2( 60, 60 )
cell_quadrant_size = 15
format = 1
tile_data = PoolIntArray( 131072, 3, 0, 131084, 4, 0, 196608, 8, 0, 196612, 8, 0, 196616, 8, 0, 196620, 8, 0, 196624, 8, 0, 196628, 8, 0 )
[node name="Furthest" type="ParallaxLayer" parent="ParallaxBackground"]
[node name="Furthest" type="ParallaxLayer" parent="Background"]
motion_scale = Vector2( 0.35, 1 )
motion_mirroring = Vector2( 1440, 0 )
[node name="TileMap" type="TileMap" parent="ParallaxBackground/Furthest"]
[node name="TileMap" type="TileMap" parent="Background/Furthest"]
tile_set = ExtResource( 1 )
cell_size = Vector2( 60, 60 )
format = 1
tile_data = PoolIntArray( 196608, 9, 0, 196612, 9, 0, 196616, 9, 0, 196620, 9, 0, 196624, 9, 0, 196628, 9, 0 )
[node name="Far" type="ParallaxLayer" parent="ParallaxBackground"]
[node name="Far" type="ParallaxLayer" parent="Background"]
motion_scale = Vector2( 0.5, 1 )
motion_mirroring = Vector2( 1440, 0 )
[node name="TileMap" type="TileMap" parent="ParallaxBackground/Far"]
[node name="Trees" type="TileMap" parent="Background/Far"]
tile_set = ExtResource( 1 )
format = 1
tile_data = PoolIntArray( 131077, 6, 0, 131086, 6, 0, 131089, 6, 0 )
[node name="TileMap" type="TileMap" parent="Background/Far"]
tile_set = ExtResource( 1 )
cell_size = Vector2( 60, 60 )
format = 1
tile_data = PoolIntArray( 196608, 10, 0, 196612, 10, 0, 196616, 10, 0, 196620, 10, 0, 196624, 10, 0, 196628, 10, 0 )
[node name="Mid" type="ParallaxLayer" parent="ParallaxBackground"]
[node name="Mid" type="ParallaxLayer" parent="Background"]
motion_scale = Vector2( 0.65, 1 )
motion_mirroring = Vector2( 1440, 0 )
[node name="TileMap" type="TileMap" parent="ParallaxBackground/Mid"]
[node name="Trees" type="TileMap" parent="Background/Mid"]
tile_set = ExtResource( 1 )
cell_size = Vector2( 60, 60 )
format = 1
tile_data = PoolIntArray( 196608, 11, 0, 196612, 11, 0, 196616, 11, 0, 196620, 11, 0, 196624, 11, 0, 196628, 11, 0 )
tile_data = PoolIntArray( 8, 17, 0 )
[node name="Trees" type="TileMap" parent="ParallaxBackground/Mid"]
[node name="TileMap" type="TileMap" parent="Background/Mid"]
tile_set = ExtResource( 1 )
cell_size = Vector2( 60, 60 )
format = 1
tile_data = PoolIntArray( 196608, 6, 0, 196610, 6, 0, 196611, 6, 0, 196613, 6, 0, 196616, 6, 0, 196619, 6, 0, 196622, 6, 0, 196625, 6, 0, 196628, 6, 0 )
tile_data = PoolIntArray( 196608, 11, 0, 196612, 11, 0, 196616, 11, 0, 196620, 11, 0, 196624, 11, 0, 196628, 11, 0 )
[node name="Close" type="ParallaxLayer" parent="ParallaxBackground"]
[node name="Close" type="ParallaxLayer" parent="Background"]
motion_scale = Vector2( 0.8, 1 )
motion_mirroring = Vector2( 1440, 0 )
[node name="TileMap" type="TileMap" parent="ParallaxBackground/Close"]
[node name="Trees" type="TileMap" parent="Background/Close"]
tile_set = ExtResource( 1 )
format = 1
tile_data = PoolIntArray( -131071, 18, 0 )
[node name="Grass" type="TileMap" parent="Background/Close"]
tile_set = ExtResource( 1 )
cell_size = Vector2( 60, 60 )
format = 1
tile_data = PoolIntArray( 196608, 12, 0, 196612, 12, 0, 196616, 12, 0, 196620, 12, 0, 196624, 12, 0, 196628, 12, 0 )
[node name="Poles" type="ParallaxLayer" parent="ParallaxBackground"]
motion_scale = Vector2( 0.95, 1 )
[node name="Road" type="ParallaxLayer" parent="Background"]
motion_mirroring = Vector2( 1440, 0 )
[node name="TileMap" type="TileMap" parent="ParallaxBackground/Poles"]
[node name="Road" type="TileMap" parent="Background/Road"]
tile_set = ExtResource( 1 )
cell_size = Vector2( 60, 60 )
format = 1
tile_data = PoolIntArray( 0, 7, 0, 196609, 7, 0 )
tile_data = PoolIntArray( 393216, 14, 0, 393220, 14, 0, 393224, 14, 0, 393228, 14, 0, 393232, 14, 0, 393236, 14, 0 )
[node name="FG" type="Node2D" parent="."]
[node name="Poles(back)" type="TileMap" parent="Background/Road"]
tile_set = ExtResource( 1 )
cell_size = Vector2( 30, 30 )
cell_custom_transform = Transform2D( 30, 0, 0, 0, 0, 0 )
format = 1
tile_data = PoolIntArray( 65536, 7, 0, 65538, 15, 0, 65540, 15, 0, 65542, 15, 0, 65544, 15, 0, 65546, 15, 0, 65548, 15, 0, 65550, 15, 0, 65552, 15, 0, 65554, 15, 0, 65556, 15, 0, 65558, 15, 0, 65560, 15, 0, 65562, 15, 0, 65564, 15, 0, 65566, 15, 0, 65568, 15, 0, 65570, 15, 0, 65572, 15, 0, 65574, 15, 0, 65576, 15, 0, 65578, 15, 0, 65580, 15, 0, 65582, 15, 0, 720896, 16, 0 )
[node name="Player" parent="FG" instance=ExtResource( 2 )]
[node name="Player" parent="." instance=ExtResource( 2 )]
position = Vector2( 472, 433 )
[node name="Foreground" type="ParallaxBackground" parent="."]
layer = 1
[node name="Road" type="ParallaxLayer" parent="Foreground"]
motion_mirroring = Vector2( 1440, 0 )
[node name="Poles(front)" type="TileMap" parent="Foreground/Road"]
z_index = 1
tile_set = ExtResource( 1 )
cell_size = Vector2( 30, 30 )
format = 1
tile_data = PoolIntArray( 458752, 15, 0, 458754, 7, 0, 458756, 15, 0, 458758, 15, 0, 458760, 15, 0, 458762, 15, 0, 458764, 15, 0, 458766, 15, 0, 458768, 15, 0, 458770, 15, 0, 458772, 15, 0, 458774, 15, 0, 458776, 15, 0, 458778, 15, 0, 458780, 15, 0, 458782, 15, 0, 458784, 15, 0, 458786, 15, 0, 458788, 15, 0, 458790, 15, 0, 458792, 15, 0, 458794, 15, 0, 458796, 15, 0, 458798, 15, 0 )
[node name="Close" type="ParallaxLayer" parent="Foreground"]
motion_scale = Vector2( 0.8, 1 )
motion_mirroring = Vector2( 1440, 0 )
[node name="Grass(Front)" type="TileMap" parent="Foreground/Close"]
z_index = 2
tile_set = ExtResource( 1 )
cell_size = Vector2( 60, 60 )
cell_y_sort = true
format = 1
tile_data = PoolIntArray( 393216, 12, 0, 393220, 12, 0, 393224, 12, 0, 393228, 12, 0, 393232, 12, 0, 393236, 12, 0, 589824, 13, 0, 589828, 13, 0, 589832, 13, 0, 589836, 13, 0, 589840, 13, 0, 589844, 13, 0 )

2
Story/Ch1S2.tscn

@ -68,7 +68,7 @@ motion_scale = Vector2( 1.05, 1 ) @@ -68,7 +68,7 @@ motion_scale = Vector2( 1.05, 1 )
tile_set = ExtResource( 7 )
cell_size = Vector2( 60, 60 )
format = 1
tile_data = PoolIntArray( 65536, 1, 0, 65537, 1, 0, 65538, 1, 0, 65541, 1, 0, 65542, 1, 0, 65543, 1, 0, 65544, 1, 0 )
tile_data = PoolIntArray( -131072, 17, 0, 65540, 6, 0, 65542, 6, 0, 65543, 6, 0 )
[node name="BG" type="Node2D" parent="."]

20
Story/ScrollCamera.gd

@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
extends Camera2D
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
onready var target = get_node("../Player")
func _process (delta):
position = target.position
position.y -= 180

BIN
Tiles/gumtree-bigger.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

35
Tiles/gumtree-bigger.png.import

@ -0,0 +1,35 @@ @@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gumtree-bigger.png-139742aa8731c90dfec7e26955f627db.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Tiles/gumtree-bigger.png"
dest_files=[ "res://.import/gumtree-bigger.png-139742aa8731c90dfec7e26955f627db.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=true
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

BIN
Tiles/gumtree.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

35
Tiles/gumtree.png.import

@ -0,0 +1,35 @@ @@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gumtree.png-8a61d8e72b90a690d6ea402d323bf476.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Tiles/gumtree.png"
dest_files=[ "res://.import/gumtree.png-8a61d8e72b90a690d6ea402d323bf476.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=true
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

BIN
Tiles/morning-grass5-bottom.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 B

35
Tiles/morning-grass5-bottom.png.import

@ -0,0 +1,35 @@ @@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/morning-grass5-bottom.png-15098c31ed1269ffe464bb6a0be6de5a.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Tiles/morning-grass5-bottom.png"
dest_files=[ "res://.import/morning-grass5-bottom.png-15098c31ed1269ffe464bb6a0be6de5a.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=true
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

BIN
Tiles/road.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 637 B

35
Tiles/road.png.import

@ -0,0 +1,35 @@ @@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/road.png-0834f06422ea05eadd652bbd8513bd39.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Tiles/road.png"
dest_files=[ "res://.import/road.png-0834f06422ea05eadd652bbd8513bd39.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=true
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

BIN
Tiles/small-grass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

35
Tiles/small-grass.png.import

@ -0,0 +1,35 @@ @@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/small-grass.png-3c43f8d0b5b5986d7a119494a09a5e5b.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Tiles/small-grass.png"
dest_files=[ "res://.import/small-grass.png-3c43f8d0b5b5986d7a119494a09a5e5b.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=true
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

BIN
Tiles/telephone-pole.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 489 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Loading…
Cancel
Save