parralax background, two terrains, collectible coin, some graphics, physics layer
This commit is contained in:
parent
a7e18c2689
commit
c2f329ac60
BIN
Assets/Graphics/Pickups/coin.png
Normal file
BIN
Assets/Graphics/Pickups/coin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 500 B |
34
Assets/Graphics/Pickups/coin.png.import
Normal file
34
Assets/Graphics/Pickups/coin.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d06dps348kx8t"
|
||||
path="res://.godot/imported/coin.png-0ccc183d0b7e2d6217ce08e6ae3f2f99.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Graphics/Pickups/coin.png"
|
||||
dest_files=["res://.godot/imported/coin.png-0ccc183d0b7e2d6217ce08e6ae3f2f99.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
BIN
Assets/Graphics/Terrains/forestbackground.png
Normal file
BIN
Assets/Graphics/Terrains/forestbackground.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.3 KiB |
34
Assets/Graphics/Terrains/forestbackground.png.import
Normal file
34
Assets/Graphics/Terrains/forestbackground.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cugs4plceapu2"
|
||||
path="res://.godot/imported/forestbackground.png-7425b7259c92191c396c3f9b136a1635.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Graphics/Terrains/forestbackground.png"
|
||||
dest_files=["res://.godot/imported/forestbackground.png-7425b7259c92191c396c3f9b136a1635.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
BIN
Assets/Graphics/Terrains/forestsky.png
Normal file
BIN
Assets/Graphics/Terrains/forestsky.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 670 B |
34
Assets/Graphics/Terrains/forestsky.png.import
Normal file
34
Assets/Graphics/Terrains/forestsky.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c0aoaemjratj1"
|
||||
path="res://.godot/imported/forestsky.png-4e517044e69bb838f55c336f4dc91003.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Graphics/Terrains/forestsky.png"
|
||||
dest_files=["res://.godot/imported/forestsky.png-4e517044e69bb838f55c336f4dc91003.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
BIN
Assets/Graphics/Terrains/mushroom_32x64.png
Normal file
BIN
Assets/Graphics/Terrains/mushroom_32x64.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
34
Assets/Graphics/Terrains/mushroom_32x64.png.import
Normal file
34
Assets/Graphics/Terrains/mushroom_32x64.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://kjupkmvjxlrg"
|
||||
path="res://.godot/imported/mushroom_32x64.png-045a9f6c97f4744672252c37c3ee4a71.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Graphics/Terrains/mushroom_32x64.png"
|
||||
dest_files=["res://.godot/imported/mushroom_32x64.png-045a9f6c97f4744672252c37c3ee4a71.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
BIN
Assets/Graphics/Terrains/spookytrees.png
Normal file
BIN
Assets/Graphics/Terrains/spookytrees.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
34
Assets/Graphics/Terrains/spookytrees.png.import
Normal file
34
Assets/Graphics/Terrains/spookytrees.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://e4k3axgdgkcw"
|
||||
path="res://.godot/imported/spookytrees.png-3282657c8bcb0972efaabcd8b5e85697.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Graphics/Terrains/spookytrees.png"
|
||||
dest_files=["res://.godot/imported/spookytrees.png-3282657c8bcb0972efaabcd8b5e85697.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
BIN
Assets/Graphics/Terrains/veg_32x32.png
Normal file
BIN
Assets/Graphics/Terrains/veg_32x32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 675 B |
34
Assets/Graphics/Terrains/veg_32x32.png.import
Normal file
34
Assets/Graphics/Terrains/veg_32x32.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bcrc6n8wjvwnh"
|
||||
path="res://.godot/imported/veg_32x32.png-1741f2d541cb7742bf94d56461556077.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Graphics/Terrains/veg_32x32.png"
|
||||
dest_files=["res://.godot/imported/veg_32x32.png-1741f2d541cb7742bf94d56461556077.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
@ -204,4 +204,6 @@ sprite_frames = SubResource("SpriteFrames_miouo")
|
||||
animation = &"falling"
|
||||
autoplay = "idle"
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
|
||||
[connection signal="animation_finished" from="PlayerGraphic" to="." method="_on_animation_finished"]
|
||||
|
115
Scenes/coin.tscn
Normal file
115
Scenes/coin.tscn
Normal file
@ -0,0 +1,115 @@
|
||||
[gd_scene load_steps=17 format=3 uid="uid://dr1mp5x0cmbhw"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d06dps348kx8t" path="res://Assets/Graphics/Pickups/coin.png" id="1_2qo34"]
|
||||
[ext_resource type="Script" uid="uid://cl87sslvg52qg" path="res://Scripts/coin.gd" id="1_jgi06"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_jgi06"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_g537i"]
|
||||
atlas = ExtResource("1_2qo34")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_h2p6v"]
|
||||
atlas = ExtResource("1_2qo34")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ffmqm"]
|
||||
atlas = ExtResource("1_2qo34")
|
||||
region = Rect2(32, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_81h6x"]
|
||||
atlas = ExtResource("1_2qo34")
|
||||
region = Rect2(48, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qbp07"]
|
||||
atlas = ExtResource("1_2qo34")
|
||||
region = Rect2(64, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2l7mo"]
|
||||
atlas = ExtResource("1_2qo34")
|
||||
region = Rect2(80, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_q30xt"]
|
||||
atlas = ExtResource("1_2qo34")
|
||||
region = Rect2(96, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7w2r2"]
|
||||
atlas = ExtResource("1_2qo34")
|
||||
region = Rect2(112, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tthw5"]
|
||||
atlas = ExtResource("1_2qo34")
|
||||
region = Rect2(128, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6pu15"]
|
||||
atlas = ExtResource("1_2qo34")
|
||||
region = Rect2(144, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vgc30"]
|
||||
atlas = ExtResource("1_2qo34")
|
||||
region = Rect2(160, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qtgto"]
|
||||
atlas = ExtResource("1_2qo34")
|
||||
region = Rect2(176, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_m55n1"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_g537i")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_h2p6v")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ffmqm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_81h6x")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qbp07")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2l7mo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_q30xt")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7w2r2")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tthw5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6pu15")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vgc30")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qtgto")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
script = ExtResource("1_jgi06")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
scale = Vector2(0.611397, 0.612769)
|
||||
shape = SubResource("CircleShape2D_jgi06")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
sprite_frames = SubResource("SpriteFrames_m55n1")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.658766
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
414
Scenes/game.tscn
414
Scenes/game.tscn
@ -1,122 +1,488 @@
|
||||
[gd_scene load_steps=12 format=4 uid="uid://c6mxse0hqjro7"]
|
||||
[gd_scene load_steps=18 format=4 uid="uid://c6mxse0hqjro7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://tno7aku0yyke" path="res://Scripts/gamecontroller.gd" id="1_wrm1d"]
|
||||
[ext_resource type="Texture2D" uid="uid://mfcyrgamj3cc" path="res://Assets/Graphics/Terrains/Terrain (32x32).png" id="2_1l0tm"]
|
||||
[ext_resource type="Script" uid="uid://bs4frobn6kxne" path="res://Scripts/scene_manager.gd" id="2_i6g32"]
|
||||
[ext_resource type="Texture2D" uid="uid://c0aoaemjratj1" path="res://Assets/Graphics/Terrains/forestsky.png" id="2_ldgsr"]
|
||||
[ext_resource type="PackedScene" uid="uid://cd7fv3pwgr880" path="res://Scenes/crate.tscn" id="3_3dryh"]
|
||||
[ext_resource type="Texture2D" uid="uid://kjupkmvjxlrg" path="res://Assets/Graphics/Terrains/mushroom_32x64.png" id="3_h4fw4"]
|
||||
[ext_resource type="Texture2D" uid="uid://cugs4plceapu2" path="res://Assets/Graphics/Terrains/forestbackground.png" id="3_o5yvi"]
|
||||
[ext_resource type="PackedScene" uid="uid://bu8e4iyw8pc03" path="res://Scenes/Player.tscn" id="4_3dryh"]
|
||||
[ext_resource type="Texture2D" uid="uid://bcrc6n8wjvwnh" path="res://Assets/Graphics/Terrains/veg_32x32.png" id="4_ldgsr"]
|
||||
[ext_resource type="Texture2D" uid="uid://e4k3axgdgkcw" path="res://Assets/Graphics/Terrains/spookytrees.png" id="4_o5yvi"]
|
||||
[ext_resource type="PackedScene" uid="uid://b5d8himq5sttt" path="res://Scenes/trigger.tscn" id="4_wowpa"]
|
||||
[ext_resource type="PackedScene" uid="uid://cm8o5vpn4a00" path="res://Scenes/bullet.tscn" id="5_wowpa"]
|
||||
[ext_resource type="PackedScene" uid="uid://dr1mp5x0cmbhw" path="res://Scenes/coin.tscn" id="12_rku1e"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_v158k"]
|
||||
texture = ExtResource("2_1l0tm")
|
||||
texture_region_size = Vector2i(32, 32)
|
||||
0:0/0 = 0
|
||||
0:0/0/terrain_set = 0
|
||||
0:0/0/terrain = 0
|
||||
0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 16, 16, 7.16919, 16, -5.89467, 16, -16, 16, -16, 7.32851)
|
||||
0:0/0/terrains_peering_bit/right_side = 0
|
||||
0:0/0/terrains_peering_bit/bottom_right_corner = 0
|
||||
0:0/0/terrains_peering_bit/bottom_side = 0
|
||||
1:0/0 = 0
|
||||
1:0/0/terrain_set = 0
|
||||
1:0/0/terrain = 0
|
||||
1:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 16, 16, 7.16919, 16, -5.89467, 16, -16, 16, -16, 7.32851)
|
||||
1:0/0/terrains_peering_bit/right_side = 0
|
||||
1:0/0/terrains_peering_bit/bottom_right_corner = 0
|
||||
1:0/0/terrains_peering_bit/bottom_side = 0
|
||||
1:0/0/terrains_peering_bit/bottom_left_corner = 0
|
||||
1:0/0/terrains_peering_bit/left_side = 0
|
||||
2:0/0 = 0
|
||||
2:0/0/terrain_set = 0
|
||||
2:0/0/terrain = 0
|
||||
2:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 16, 16, 7.16919, 16, -5.89467, 16, -16, 16, -16, 7.32851)
|
||||
2:0/0/terrains_peering_bit/bottom_side = 0
|
||||
2:0/0/terrains_peering_bit/bottom_left_corner = 0
|
||||
2:0/0/terrains_peering_bit/left_side = 0
|
||||
4:0/0 = 0
|
||||
4:0/0/terrain_set = 0
|
||||
4:0/0/terrain = 0
|
||||
4:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 16, 16, 7.16919, 16, -5.89467, 16, -16, 16, -16, 7.32851)
|
||||
4:0/0/terrains_peering_bit/bottom_side = 0
|
||||
6:0/0 = 0
|
||||
6:0/0/terrain_set = 0
|
||||
6:0/0/terrain = 0
|
||||
6:0/0/terrains_peering_bit/right_side = 0
|
||||
6:0/0/terrains_peering_bit/bottom_side = 0
|
||||
6:0/0/terrains_peering_bit/bottom_left_corner = 0
|
||||
6:0/0/terrains_peering_bit/left_side = 0
|
||||
6:0/0/terrains_peering_bit/top_left_corner = 0
|
||||
6:0/0/terrains_peering_bit/top_side = 0
|
||||
6:0/0/terrains_peering_bit/top_right_corner = 0
|
||||
7:0/0 = 0
|
||||
7:0/0/terrain_set = 0
|
||||
7:0/0/terrain = 0
|
||||
7:0/0/terrains_peering_bit/right_side = 0
|
||||
7:0/0/terrains_peering_bit/bottom_right_corner = 0
|
||||
7:0/0/terrains_peering_bit/bottom_side = 0
|
||||
7:0/0/terrains_peering_bit/left_side = 0
|
||||
7:0/0/terrains_peering_bit/top_left_corner = 0
|
||||
7:0/0/terrains_peering_bit/top_side = 0
|
||||
7:0/0/terrains_peering_bit/top_right_corner = 0
|
||||
9:0/0 = 0
|
||||
9:0/0/terrain_set = 0
|
||||
9:0/0/terrain = 0
|
||||
9:0/0/terrains_peering_bit/right_side = 0
|
||||
9:0/0/terrains_peering_bit/bottom_right_corner = 0
|
||||
9:0/0/terrains_peering_bit/bottom_side = 0
|
||||
9:0/0/terrains_peering_bit/bottom_left_corner = 0
|
||||
9:0/0/terrains_peering_bit/left_side = 0
|
||||
9:0/0/terrains_peering_bit/top_side = 0
|
||||
10:0/0 = 0
|
||||
10:0/0/terrain_set = 0
|
||||
10:0/0/terrain = 0
|
||||
10:0/0/terrains_peering_bit/right_side = 0
|
||||
10:0/0/terrains_peering_bit/bottom_side = 0
|
||||
10:0/0/terrains_peering_bit/bottom_left_corner = 0
|
||||
10:0/0/terrains_peering_bit/left_side = 0
|
||||
10:0/0/terrains_peering_bit/top_left_corner = 0
|
||||
10:0/0/terrains_peering_bit/top_side = 0
|
||||
12:0/0 = 0
|
||||
12:0/0/terrain_set = 0
|
||||
12:0/0/terrain = 0
|
||||
12:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, 16, 16, 16, 16, 16, -16, 16)
|
||||
12:0/0/terrains_peering_bit/right_side = 0
|
||||
12:0/0/terrains_peering_bit/bottom_right_corner = 0
|
||||
12:0/0/terrains_peering_bit/bottom_side = 0
|
||||
12:0/0/terrains_peering_bit/left_side = 0
|
||||
12:0/0/terrains_peering_bit/top_side = 0
|
||||
13:0/0 = 0
|
||||
13:0/0/terrain_set = 0
|
||||
13:0/0/terrain = 0
|
||||
13:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, 16, 16, 16, 16, 16, -16, 16)
|
||||
13:0/0/terrains_peering_bit/right_side = 0
|
||||
13:0/0/terrains_peering_bit/bottom_side = 0
|
||||
13:0/0/terrains_peering_bit/bottom_left_corner = 0
|
||||
13:0/0/terrains_peering_bit/left_side = 0
|
||||
13:0/0/terrains_peering_bit/top_side = 0
|
||||
15:0/0 = 0
|
||||
15:0/0/terrain_set = 0
|
||||
15:0/0/terrain = 0
|
||||
15:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, 16, 16, 16, 16, 16, -16, 16)
|
||||
15:0/0/terrains_peering_bit/right_side = 0
|
||||
15:0/0/terrains_peering_bit/bottom_side = 0
|
||||
15:0/0/terrains_peering_bit/left_side = 0
|
||||
15:0/0/terrains_peering_bit/top_side = 0
|
||||
0:1/0 = 0
|
||||
0:1/0/terrain_set = 0
|
||||
0:1/0/terrain = 0
|
||||
0:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 16, 16, 7.16919, 16, -5.89467, 16, -16, 16, -16, 7.32851)
|
||||
0:1/0/terrains_peering_bit/right_side = 0
|
||||
0:1/0/terrains_peering_bit/bottom_right_corner = 0
|
||||
0:1/0/terrains_peering_bit/bottom_side = 0
|
||||
0:1/0/terrains_peering_bit/top_side = 0
|
||||
0:1/0/terrains_peering_bit/top_right_corner = 0
|
||||
1:1/0 = 0
|
||||
1:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 16, 16, 7.16919, 16, -5.89467, 16, -16, 16, -16, 7.32851)
|
||||
2:1/0 = 0
|
||||
2:1/0/terrain_set = 0
|
||||
2:1/0/terrain = 0
|
||||
2:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 16, 16, 7.16919, 16, -5.89467, 16, -16, 16, -16, 7.32851)
|
||||
2:1/0/terrains_peering_bit/bottom_side = 0
|
||||
2:1/0/terrains_peering_bit/bottom_left_corner = 0
|
||||
2:1/0/terrains_peering_bit/left_side = 0
|
||||
2:1/0/terrains_peering_bit/top_left_corner = 0
|
||||
2:1/0/terrains_peering_bit/top_side = 0
|
||||
4:1/0 = 0
|
||||
4:1/0/terrain_set = 0
|
||||
4:1/0/terrain = 0
|
||||
4:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 16, 16, 7.16919, 16, -5.89467, 16, -16, 16, -16, 7.32851)
|
||||
4:1/0/terrains_peering_bit/bottom_side = 0
|
||||
4:1/0/terrains_peering_bit/top_side = 0
|
||||
6:1/0 = 0
|
||||
6:1/0/terrain_set = 0
|
||||
6:1/0/terrain = 0
|
||||
6:1/0/terrains_peering_bit/right_side = 0
|
||||
6:1/0/terrains_peering_bit/bottom_right_corner = 0
|
||||
6:1/0/terrains_peering_bit/bottom_side = 0
|
||||
6:1/0/terrains_peering_bit/bottom_left_corner = 0
|
||||
6:1/0/terrains_peering_bit/left_side = 0
|
||||
6:1/0/terrains_peering_bit/top_left_corner = 0
|
||||
6:1/0/terrains_peering_bit/top_side = 0
|
||||
7:1/0 = 0
|
||||
7:1/0/terrain_set = 0
|
||||
7:1/0/terrain = 0
|
||||
7:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, 16, 16, 16, 16, 16, -16, 16)
|
||||
7:1/0/terrains_peering_bit/right_side = 0
|
||||
7:1/0/terrains_peering_bit/bottom_right_corner = 0
|
||||
7:1/0/terrains_peering_bit/bottom_side = 0
|
||||
7:1/0/terrains_peering_bit/bottom_left_corner = 0
|
||||
7:1/0/terrains_peering_bit/left_side = 0
|
||||
7:1/0/terrains_peering_bit/top_side = 0
|
||||
7:1/0/terrains_peering_bit/top_right_corner = 0
|
||||
9:1/0 = 0
|
||||
9:1/0/terrain_set = 0
|
||||
9:1/0/terrain = 0
|
||||
9:1/0/terrains_peering_bit/right_side = 0
|
||||
9:1/0/terrains_peering_bit/bottom_right_corner = 0
|
||||
9:1/0/terrains_peering_bit/bottom_side = 0
|
||||
9:1/0/terrains_peering_bit/left_side = 0
|
||||
9:1/0/terrains_peering_bit/top_side = 0
|
||||
9:1/0/terrains_peering_bit/top_right_corner = 0
|
||||
10:1/0 = 0
|
||||
10:1/0/terrain_set = 0
|
||||
10:1/0/terrain = 0
|
||||
10:1/0/terrains_peering_bit/right_side = 0
|
||||
10:1/0/terrains_peering_bit/bottom_side = 0
|
||||
10:1/0/terrains_peering_bit/left_side = 0
|
||||
10:1/0/terrains_peering_bit/top_left_corner = 0
|
||||
10:1/0/terrains_peering_bit/top_side = 0
|
||||
10:1/0/terrains_peering_bit/top_right_corner = 0
|
||||
12:1/0 = 0
|
||||
12:1/0/terrain_set = 0
|
||||
12:1/0/terrain = 0
|
||||
12:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, 16, 16, 16, 16, 16, -16, 16)
|
||||
12:1/0/terrains_peering_bit/right_side = 0
|
||||
12:1/0/terrains_peering_bit/bottom_side = 0
|
||||
12:1/0/terrains_peering_bit/left_side = 0
|
||||
12:1/0/terrains_peering_bit/top_side = 0
|
||||
12:1/0/terrains_peering_bit/top_right_corner = 0
|
||||
13:1/0 = 0
|
||||
13:1/0/terrain_set = 0
|
||||
13:1/0/terrain = 0
|
||||
13:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, 16, 16, 16, 16, 16, -16, 16)
|
||||
13:1/0/terrains_peering_bit/right_side = 0
|
||||
13:1/0/terrains_peering_bit/bottom_side = 0
|
||||
13:1/0/terrains_peering_bit/left_side = 0
|
||||
13:1/0/terrains_peering_bit/top_left_corner = 0
|
||||
13:1/0/terrains_peering_bit/top_side = 0
|
||||
15:1/0 = 0
|
||||
15:1/0/terrain_set = 0
|
||||
15:1/0/terrain = 0
|
||||
15:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, 16, 16, 16, 16, 16, -16, 16)
|
||||
15:1/0/terrains_peering_bit/right_side = 0
|
||||
15:1/0/terrains_peering_bit/bottom_side = 0
|
||||
15:1/0/terrains_peering_bit/bottom_left_corner = 0
|
||||
15:1/0/terrains_peering_bit/left_side = 0
|
||||
15:1/0/terrains_peering_bit/top_side = 0
|
||||
15:1/0/terrains_peering_bit/top_right_corner = 0
|
||||
16:1/0 = 0
|
||||
16:1/0/terrain_set = 0
|
||||
16:1/0/terrain = 0
|
||||
16:1/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, 16, 16, 16, 16, 16, -16, 16)
|
||||
16:1/0/terrains_peering_bit/right_side = 0
|
||||
16:1/0/terrains_peering_bit/bottom_right_corner = 0
|
||||
16:1/0/terrains_peering_bit/bottom_side = 0
|
||||
16:1/0/terrains_peering_bit/left_side = 0
|
||||
16:1/0/terrains_peering_bit/top_left_corner = 0
|
||||
16:1/0/terrains_peering_bit/top_side = 0
|
||||
0:2/0 = 0
|
||||
0:2/0/terrain_set = 0
|
||||
0:2/0/terrain = 0
|
||||
0:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 16, 16, 7.16919, 16, -5.89467, 16, -12.9045, 12.7452, -16, 7.32851)
|
||||
0:2/0/terrains_peering_bit/right_side = 0
|
||||
0:2/0/terrains_peering_bit/top_side = 0
|
||||
0:2/0/terrains_peering_bit/top_right_corner = 0
|
||||
1:2/0 = 0
|
||||
1:2/0/terrain_set = 0
|
||||
1:2/0/terrain = 0
|
||||
1:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 16, 16, 7.16919, 16, -5.89467, 16, -16, 16, -16, 7.32851)
|
||||
1:2/0/terrains_peering_bit/right_side = 0
|
||||
1:2/0/terrains_peering_bit/left_side = 0
|
||||
1:2/0/terrains_peering_bit/top_left_corner = 0
|
||||
1:2/0/terrains_peering_bit/top_side = 0
|
||||
1:2/0/terrains_peering_bit/top_right_corner = 0
|
||||
2:2/0 = 0
|
||||
2:2/0/terrain_set = 0
|
||||
2:2/0/terrain = 0
|
||||
2:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 10.9928, 12.4266, 7.16919, 16, -5.89467, 16, -16, 16, -16, 7.32851)
|
||||
2:2/0/terrains_peering_bit/left_side = 0
|
||||
2:2/0/terrains_peering_bit/top_left_corner = 0
|
||||
2:2/0/terrains_peering_bit/top_side = 0
|
||||
4:2/0 = 0
|
||||
4:2/0/terrain_set = 0
|
||||
4:2/0/terrain = 0
|
||||
4:2/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 12.7452, 12.4266, 7.16919, 16, -5.89467, 16, -12.4266, 12.7452, -16, 7.32851)
|
||||
4:2/0/terrains_peering_bit/top_side = 0
|
||||
6:3/0 = 0
|
||||
6:3/0/terrain_set = 0
|
||||
6:3/0/terrain = 0
|
||||
6:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, -1.59315, -16, -0.955891, 16, -16, 16)
|
||||
6:3/0/terrains_peering_bit/right_side = 0
|
||||
6:3/0/terrains_peering_bit/bottom_side = 0
|
||||
6:3/0/terrains_peering_bit/top_side = 0
|
||||
6:3/0/terrains_peering_bit/top_right_corner = 0
|
||||
7:3/0 = 0
|
||||
7:3/0/terrain_set = 0
|
||||
7:3/0/terrain = 0
|
||||
7:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(5.41673, -16, 16, -16, 16, 16, 5.09809, 16)
|
||||
7:3/0/terrains_peering_bit/bottom_side = 0
|
||||
7:3/0/terrains_peering_bit/left_side = 0
|
||||
7:3/0/terrains_peering_bit/top_left_corner = 0
|
||||
7:3/0/terrains_peering_bit/top_side = 0
|
||||
9:3/0 = 0
|
||||
9:3/0/terrain_set = 0
|
||||
9:3/0/terrain = 0
|
||||
9:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, -5.41672, -16, -4.77946)
|
||||
9:3/0/terrains_peering_bit/right_side = 0
|
||||
9:3/0/terrains_peering_bit/bottom_side = 0
|
||||
9:3/0/terrains_peering_bit/bottom_left_corner = 0
|
||||
9:3/0/terrains_peering_bit/left_side = 0
|
||||
10:3/0 = 0
|
||||
10:3/0/terrain_set = 0
|
||||
10:3/0/terrain = 0
|
||||
10:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, -5.41672, -16, -4.77946)
|
||||
10:3/0/terrains_peering_bit/right_side = 0
|
||||
10:3/0/terrains_peering_bit/bottom_right_corner = 0
|
||||
10:3/0/terrains_peering_bit/bottom_side = 0
|
||||
10:3/0/terrains_peering_bit/left_side = 0
|
||||
12:3/0 = 0
|
||||
12:3/0/terrain_set = 0
|
||||
12:3/0/terrain = 0
|
||||
12:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, -6.05398, -16, -6.05398, 16, -16, 16)
|
||||
12:3/0/terrains_peering_bit/right_side = 0
|
||||
12:3/0/terrains_peering_bit/bottom_side = 0
|
||||
12:3/0/terrains_peering_bit/top_side = 0
|
||||
13:3/0 = 0
|
||||
13:3/0/terrain_set = 0
|
||||
13:3/0/terrain = 0
|
||||
13:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, -5.41672, -16, -4.77946)
|
||||
13:3/0/terrains_peering_bit/right_side = 0
|
||||
13:3/0/terrains_peering_bit/bottom_side = 0
|
||||
13:3/0/terrains_peering_bit/left_side = 0
|
||||
15:3/0 = 0
|
||||
15:3/0/terrain_set = 0
|
||||
15:3/0/terrain = 0
|
||||
15:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 16, 16, 7.16919, 16, -5.89467, 16, -16, 16, -16, 7.32851)
|
||||
15:3/0/terrains_peering_bit/right_side = 0
|
||||
15:3/0/terrains_peering_bit/bottom_side = 0
|
||||
16:3/0 = 0
|
||||
16:3/0/terrain_set = 0
|
||||
16:3/0/terrain = 0
|
||||
16:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 16, 16, 7.16919, 16, -5.89467, 16, -16, 16, -16, 7.32851)
|
||||
16:3/0/terrains_peering_bit/bottom_side = 0
|
||||
16:3/0/terrains_peering_bit/left_side = 0
|
||||
0:4/0 = 0
|
||||
0:4/0/terrain_set = 0
|
||||
0:4/0/terrain = 0
|
||||
0:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 16, 16, 7.16919, 16, -5.89467, 16, -12.2673, 12.7452, -16, 7.32851)
|
||||
0:4/0/terrains_peering_bit/right_side = 0
|
||||
1:4/0 = 0
|
||||
1:4/0/terrain_set = 0
|
||||
1:4/0/terrain = 0
|
||||
1:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 16, 16, 7.16919, 16, -5.89467, 16, -16, 16, -16, 7.32851)
|
||||
1:4/0/terrains_peering_bit/right_side = 0
|
||||
1:4/0/terrains_peering_bit/left_side = 0
|
||||
2:4/0 = 0
|
||||
2:4/0/terrain_set = 0
|
||||
2:4/0/terrain = 0
|
||||
2:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 12.5859, 12.7452, 7.16919, 16, -5.89467, 16, -16, 16, -16, 7.32851)
|
||||
2:4/0/terrains_peering_bit/left_side = 0
|
||||
4:4/0 = 0
|
||||
4:4/0/terrain_set = 0
|
||||
4:4/0/terrain = 0
|
||||
4:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 12.5859, 13.0639, 7.16919, 16, -5.89467, 16, -12.2673, 12.7452, -16, 7.32851)
|
||||
6:4/0 = 0
|
||||
6:4/0/terrain_set = 0
|
||||
6:4/0/terrain = 0
|
||||
6:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, -1.59315, -16, -0.955891, 16, -16, 16)
|
||||
6:4/0/terrains_peering_bit/right_side = 0
|
||||
6:4/0/terrains_peering_bit/bottom_right_corner = 0
|
||||
6:4/0/terrains_peering_bit/bottom_side = 0
|
||||
6:4/0/terrains_peering_bit/top_side = 0
|
||||
7:4/0 = 0
|
||||
7:4/0/terrain_set = 0
|
||||
7:4/0/terrain = 0
|
||||
7:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(5.41673, -16, 16, -16, 16, 16, 5.09809, 16)
|
||||
7:4/0/terrains_peering_bit/bottom_side = 0
|
||||
7:4/0/terrains_peering_bit/bottom_left_corner = 0
|
||||
7:4/0/terrains_peering_bit/left_side = 0
|
||||
7:4/0/terrains_peering_bit/top_side = 0
|
||||
9:4/0 = 0
|
||||
9:4/0/terrain_set = 0
|
||||
9:4/0/terrain = 0
|
||||
9:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, 3.82357, 16, 3.50494, 16, 16, -16, 16)
|
||||
9:4/0/terrains_peering_bit/right_side = 0
|
||||
9:4/0/terrains_peering_bit/left_side = 0
|
||||
9:4/0/terrains_peering_bit/top_left_corner = 0
|
||||
9:4/0/terrains_peering_bit/top_side = 0
|
||||
10:4/0 = 0
|
||||
10:4/0/terrain_set = 0
|
||||
10:4/0/terrain = 0
|
||||
10:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, 3.82357, 16, 3.50494, 16, 16, -16, 16)
|
||||
10:4/0/terrains_peering_bit/right_side = 0
|
||||
10:4/0/terrains_peering_bit/left_side = 0
|
||||
10:4/0/terrains_peering_bit/top_side = 0
|
||||
10:4/0/terrains_peering_bit/top_right_corner = 0
|
||||
12:4/0 = 0
|
||||
12:4/0/terrain_set = 0
|
||||
12:4/0/terrain = 0
|
||||
12:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, 4.46083, 16, 4.77946, 16, 16, -16, 16)
|
||||
12:4/0/terrains_peering_bit/right_side = 0
|
||||
12:4/0/terrains_peering_bit/left_side = 0
|
||||
12:4/0/terrains_peering_bit/top_side = 0
|
||||
13:4/0 = 0
|
||||
13:4/0/terrain_set = 0
|
||||
13:4/0/terrain = 0
|
||||
13:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(4.46083, -16, 16, -16, 16, 16, 5.09809, 16)
|
||||
13:4/0/terrains_peering_bit/bottom_side = 0
|
||||
13:4/0/terrains_peering_bit/left_side = 0
|
||||
13:4/0/terrains_peering_bit/top_side = 0
|
||||
15:4/0 = 0
|
||||
15:4/0/terrain_set = 0
|
||||
15:4/0/terrain = 0
|
||||
15:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 9.87755, 16, 16, 7.16919, 16, -5.89467, 16, -12.4266, 11.7893, -16, 7.32851)
|
||||
15:4/0/terrains_peering_bit/right_side = 0
|
||||
15:4/0/terrains_peering_bit/top_side = 0
|
||||
16:4/0 = 0
|
||||
16:4/0/terrain_set = 0
|
||||
16:4/0/terrain = 0
|
||||
16:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 7.00988, 13.3825, 13.0639, 7.16919, 16, -5.89467, 16, -16, 16, -16, 7.32851)
|
||||
16:4/0/terrains_peering_bit/left_side = 0
|
||||
16:4/0/terrains_peering_bit/top_side = 0
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_o5yvi"]
|
||||
texture = ExtResource("3_h4fw4")
|
||||
texture_region_size = Vector2i(32, 32)
|
||||
0:0/0 = 0
|
||||
0:0/0/terrain_set = 0
|
||||
0:0/0/terrain = 1
|
||||
0:0/0/terrains_peering_bit/bottom_side = 1
|
||||
0:1/0 = 0
|
||||
0:1/0/terrain_set = 0
|
||||
0:1/0/terrain = 1
|
||||
0:1/0/terrains_peering_bit/top_side = 1
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_rku1e"]
|
||||
texture = ExtResource("4_ldgsr")
|
||||
texture_region_size = Vector2i(32, 32)
|
||||
0:0/0 = 0
|
||||
0:0/0/terrain_set = 0
|
||||
0:0/0/terrain = 1
|
||||
|
||||
[sub_resource type="TileSet" id="TileSet_h4fw4"]
|
||||
tile_size = Vector2i(32, 32)
|
||||
physics_layer_0/collision_layer = 1
|
||||
terrain_set_0/mode = 0
|
||||
terrain_set_0/terrain_0/name = "leafygreen"
|
||||
terrain_set_0/terrain_0/color = Color(0.5, 0.34375, 0.25, 1)
|
||||
terrain_set_0/terrain_1/name = "veggie"
|
||||
terrain_set_0/terrain_1/color = Color(0.5, 0.4375, 0.25, 1)
|
||||
sources/0 = SubResource("TileSetAtlasSource_v158k")
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2poj3"]
|
||||
size = Vector2(50, 20)
|
||||
sources/1 = SubResource("TileSetAtlasSource_o5yvi")
|
||||
sources/4 = SubResource("TileSetAtlasSource_rku1e")
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_1l0tm"]
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
script = ExtResource("1_wrm1d")
|
||||
|
||||
[node name="ParallaxBackground" type="Parallax2D" parent="."]
|
||||
repeat_size = Vector2(320, 180)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="ParallaxBackground"]
|
||||
position = Vector2(160, 90)
|
||||
texture = ExtResource("2_ldgsr")
|
||||
|
||||
[node name="ParallaxMidGround" type="Parallax2D" parent="."]
|
||||
scroll_scale = Vector2(1.1, 0)
|
||||
repeat_size = Vector2(320, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="ParallaxMidGround"]
|
||||
position = Vector2(160, 300)
|
||||
texture = ExtResource("3_o5yvi")
|
||||
|
||||
[node name="ParallaxForeground" type="Parallax2D" parent="."]
|
||||
scroll_scale = Vector2(1.2, 1)
|
||||
scroll_offset = Vector2(-320, 0)
|
||||
repeat_size = Vector2(320, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="ParallaxForeground"]
|
||||
position = Vector2(160, 300)
|
||||
texture = ExtResource("4_o5yvi")
|
||||
|
||||
[node name="TileMapLayer" type="TileMapLayer" parent="."]
|
||||
tile_map_data = PackedByteArray("AAASAAoAAAAEAAQAAAATAAoAAAAEAAQAAAAUAAoAAAAEAAQAAAAVAAoAAAAEAAQAAAARAAoAAAAEAAQAAAAQAAoAAAAEAAQAAAAPAAoAAAAEAAQAAAA=")
|
||||
texture_filter = 1
|
||||
tile_map_data = PackedByteArray("AAAWAAoAAAAQAAQAAAAWAAkAAAAPAAMAAAAXAAkAAAAQAAQAAAAXAAgAAAAPAAMAAAAYAAgAAAABAAQAAAAZAAgAAAAQAAQAAAAZAAcAAAAPAAMAAAAaAAcAAAAQAAQAAAAaAAYAAAAPAAMAAAAbAAYAAAABAAQAAAAcAAYAAAABAAQAAAAdAAYAAAABAAQAAAAeAAYAAAABAAQAAAAfAAYAAAABAAQAAAAgAAYAAAABAAQAAAAhAAYAAAABAAQAAAAiAAYAAAABAAQAAAAjAAYAAAABAAQAAAAkAAYAAAABAAQAAAAlAAYAAAABAAQAAAAmAAYAAAABAAQAAAAnAAYAAAACAAQAAAAqAAYAAAAAAAQAAAArAAYAAAABAAQAAAAsAAYAAAABAAQAAAAtAAYAAAABAAQAAAAiAAkAAAAAAAQAAAAjAAkAAAABAAQAAAAkAAkAAAABAAQAAAAlAAkAAAANAAMAAAAmAAkAAAABAAQAAAAnAAkAAAABAAQAAAAoAAkAAAABAAQAAAApAAkAAAABAAQAAAAqAAkAAAABAAQAAAArAAkAAAABAAQAAAAsAAkAAAABAAQAAAAtAAkAAAABAAQAAAAuAAkAAAACAAQAAAAbAAwAAAABAAQAAAAcAAwAAAABAAQAAAAdAAwAAAABAAQAAAAeAAwAAAABAAQAAAAfAAwAAAABAAQAAAAgAAwAAAABAAQAAAAhAAwAAAABAAQAAAAiAAwAAAABAAQAAAAjAAwAAAABAAQAAAAuAAYAAAAKAAQAAAAuAAUAAAAAAAEAAAAuAAQAAAAAAAEAAAAuAAMAAAAAAAEAAAAuAAIAAAAAAAEAAAAuAAEAAAAAAAEAAAAuAAAAAAAAAAEAAAAuAP//AAAAAAAAAAAvAP//AAABAAAAAAAwAP//AAABAAAAAAAxAP//AAABAAAAAAAyAP//AAACAAAAAAAyAAAAAAACAAEAAAAyAAEAAAACAAEAAAAyAAIAAAACAAEAAAAyAAMAAAACAAEAAAAyAAQAAAACAAEAAAAyAAUAAAACAAEAAAAyAAYAAAACAAIAAAAxAAYAAAABAAIAAAAwAAYAAAABAAIAAAAvAAYAAAABAAIAAAAvAAUAAAAGAAAAAAAwAAUAAAAGAAAAAAAxAAUAAAAGAAAAAAAxAAQAAAAGAAAAAAAwAAQAAAAGAAAAAAAvAAQAAAAGAAAAAAAvAAMAAAAGAAAAAAAwAAMAAAAGAAAAAAAxAAMAAAAGAAAAAAAxAAIAAAAGAAAAAAAwAAIAAAAGAAAAAAAvAAIAAAAGAAAAAAAvAAEAAAAGAAEAAAAwAAEAAAAHAAEAAAAxAAEAAAAHAAEAAAAxAAAAAAAHAAAAAAAwAAAAAAAHAAAAAAAvAAAAAAAGAAAAAAAkAAwAAAABAAQAAAAlAAwAAAAQAAQAAAAlAAsAAAAEAAEAAAAlAAoAAAAEAAEAAAAHABEAAAAAAAQAAAAIABEAAAABAAQAAAAJABEAAAABAAQAAAAKABEAAAABAAQAAAALABEAAAABAAQAAAAMABEAAAABAAQAAAANABEAAAABAAQAAAAOABEAAAABAAQAAAAPABEAAAABAAQAAAAQABEAAAABAAQAAAARABEAAAABAAQAAAASABEAAAABAAQAAAATABEAAAAQAAQAAAATABAAAAAPAAMAAAAUABAAAAAQAAQAAAAUAA8AAAAPAAMAAAAVAA8AAAABAAQAAAAWAA8AAAAQAAQAAAAWAA4AAAAPAAMAAAAXAA4AAAAQAAQAAAAXAA0AAAAPAAMAAAAYAA0AAAABAAQAAAAZAA0AAAABAAQAAAAaAA0AAAAQAAQAAAAaAAwAAAAPAAMAAAAKABAABAAAAAAAAAAjAAsABAAAAAAAAAAlAAUABAAAAAAAAAAPABAAAQAAAAEAAAAPAA8AAQAAAAAAAAAgAAUAAQAAAAEAAAAgAAQAAQAAAAAAAAAAAAwAAAAAAAQAAAABAAwAAAABAAQAAAACAAwAAAABAAQAAAADAAwAAAABAAQAAAAEAAwAAAABAAQAAAAFAAwAAAABAAQAAAAGAAwAAAABAAQAAAAHAAwAAAABAAQAAAAIAAwAAAABAAQAAAAJAAwAAAABAAQAAAAKAAwAAAABAAQAAAALAAwAAAABAAQAAAAMAAwAAAABAAQAAAANAAwAAAABAAQAAAAOAAwAAAABAAQAAAAPAAwAAAABAAQAAAAQAAwAAAABAAQAAAARAAwAAAABAAQAAAASAAwAAAABAAQAAAATAAwAAAAQAAQAAAATAAsAAAAPAAMAAAAUAAsAAAABAAQAAAAVAAsAAAAQAAQAAAAVAAoAAAAPAAMAAAAJAAsAAQAAAAEAAAAJAAoAAQAAAAAAAAAOAAsABAAAAAAAAAASAAsABAAAAAAAAAACAAsABAAAAAAAAAA=")
|
||||
tile_set = SubResource("TileSet_h4fw4")
|
||||
|
||||
[node name="SceneManager" type="Node2D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("2_i6g32")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
position = Vector2(592, 337)
|
||||
scale = Vector2(4.45399, 1.56585)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
shape = SubResource("RectangleShape2D_2poj3")
|
||||
|
||||
[node name="RigidBody2D3" parent="." instance=ExtResource("3_3dryh")]
|
||||
position = Vector2(596, 262)
|
||||
position = Vector2(430, 515)
|
||||
|
||||
[node name="RigidBody2D4" parent="." instance=ExtResource("3_3dryh")]
|
||||
position = Vector2(616, 222)
|
||||
position = Vector2(1132, 137)
|
||||
|
||||
[node name="RigidBody2D5" parent="." instance=ExtResource("3_3dryh")]
|
||||
position = Vector2(574, 222)
|
||||
position = Vector2(903, 162)
|
||||
|
||||
[node name="CharacterBody2D" parent="." instance=ExtResource("4_3dryh")]
|
||||
position = Vector2(613, 309)
|
||||
|
||||
[node name="Bullet" parent="." instance=ExtResource("5_wowpa")]
|
||||
position = Vector2(520, 265)
|
||||
position = Vector2(522, 370)
|
||||
|
||||
[node name="Triggers" type="Node2D" parent="."]
|
||||
|
||||
[node name="Area2D2" parent="Triggers" instance=ExtResource("4_wowpa")]
|
||||
position = Vector2(507, 414)
|
||||
position = Vector2(166, 525)
|
||||
effect = "destroy"
|
||||
|
||||
[node name="Area2D3" parent="Triggers" instance=ExtResource("4_wowpa")]
|
||||
position = Vector2(679, 430)
|
||||
position = Vector2(900, 341)
|
||||
|
||||
[node name="StaticBody2D2" type="StaticBody2D" parent="."]
|
||||
position = Vector2(589, 544)
|
||||
position = Vector2(574, 603)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2"]
|
||||
shape = SubResource("WorldBoundaryShape2D_1l0tm")
|
||||
|
||||
[node name="Coins" type="Node2D" parent="."]
|
||||
|
||||
[node name="Area2D" parent="Coins" instance=ExtResource("12_rku1e")]
|
||||
position = Vector2(555, 373)
|
||||
|
||||
[node name="Area2D2" parent="Coins" instance=ExtResource("12_rku1e")]
|
||||
position = Vector2(432, 374)
|
||||
|
||||
[node name="Area2D3" parent="Coins" instance=ExtResource("12_rku1e")]
|
||||
position = Vector2(896, 372)
|
||||
|
||||
[connection signal="areatrigger" from="Triggers/Area2D2" to="." method="_on_areatrigger"]
|
||||
[connection signal="areatrigger" from="Triggers/Area2D3" to="." method="_on_areatrigger"]
|
||||
|
17
Scripts/coin.gd
Normal file
17
Scripts/coin.gd
Normal file
@ -0,0 +1,17 @@
|
||||
class_name Coin extends Area2D
|
||||
|
||||
signal coinCollectedSignal(body, coin)
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
print("coin sees collision")
|
||||
coinCollectedSignal.emit(body, self)
|
1
Scripts/coin.gd.uid
Normal file
1
Scripts/coin.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://cl87sslvg52qg
|
@ -1,5 +1,6 @@
|
||||
extends Node2D
|
||||
|
||||
var totalCoinsAvailable
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
@ -18,3 +19,10 @@ func _on_areatrigger(effect, body) -> void:
|
||||
body.queue_free()
|
||||
if effect == "powerup":
|
||||
print("Power up the player")
|
||||
|
||||
func totalCoinCount(totalCoins):
|
||||
print("GC knows total coins"+str(totalCoins) )
|
||||
totalCoinsAvailable = totalCoins
|
||||
func coinCollected(body, coin):
|
||||
print("GC knows coin collected")
|
||||
coin.queue_free()
|
||||
|
@ -5,10 +5,18 @@ var bulletArray =[]
|
||||
var totalAllowedBullets = 7
|
||||
@onready var triggers: Node2D = $"../Triggers"
|
||||
@onready var gameController: Node2D = $".."
|
||||
@onready var coins: Node2D = $"../Coins"
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
for obj in triggers.get_children():
|
||||
obj.areatrigger.connect(gameController._on_areatrigger)
|
||||
var coinCount = 0
|
||||
for obj in coins.get_children():
|
||||
obj.coinCollectedSignal.connect(gameController.coinCollected)
|
||||
coinCount +=1
|
||||
#send information to the game controller
|
||||
gameController.totalCoinCount(coinCount)
|
||||
|
||||
#makes bullets
|
||||
func bulletFactory():
|
||||
|
@ -15,6 +15,14 @@ run/main_scene="uid://c6mxse0hqjro7"
|
||||
config/features=PackedStringArray("4.4", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[display]
|
||||
|
||||
window/size/viewport_width=320
|
||||
window/size/viewport_height=180
|
||||
window/size/window_width_override=960
|
||||
window/size/window_height_override=540
|
||||
window/stretch/mode="viewport"
|
||||
|
||||
[file_customization]
|
||||
|
||||
folder_colors={
|
||||
|
Loading…
Reference in New Issue
Block a user