terrains, physics layer, parallax 2d, custom art
This commit is contained in:
parent
65ad562241
commit
a0f311aad6
Binary file not shown.
After Width: | Height: | Size: 7.3 KiB |
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://jlbx6yvcmten"
|
||||||
|
path="res://.godot/imported/forestbackground.png-f42d75295504b2d17acc59ff8840ec7f.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/graphics/terrains/backgrounds/forestbackground.png"
|
||||||
|
dest_files=["res://.godot/imported/forestbackground.png-f42d75295504b2d17acc59ff8840ec7f.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
|
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://b3smxb17ijk60"
|
||||||
|
path="res://.godot/imported/midtrees.png-12cb76c3dd1b9f6edc0c081a0d1bfebc.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/graphics/terrains/backgrounds/midtrees.png"
|
||||||
|
dest_files=["res://.godot/imported/midtrees.png-12cb76c3dd1b9f6edc0c081a0d1bfebc.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
|
Binary file not shown.
After Width: | Height: | Size: 626 B |
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://8kaggg1kilxy"
|
||||||
|
path="res://.godot/imported/skystrip.png-844d3ff7d8566eaa4b19752fec7f4f77.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/graphics/terrains/backgrounds/skystrip.png"
|
||||||
|
dest_files=["res://.godot/imported/skystrip.png-844d3ff7d8566eaa4b19752fec7f4f77.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
|
@ -8,6 +8,7 @@ size = Vector2(16, 4)
|
|||||||
|
|
||||||
[node name="Area2D" type="Area2D"]
|
[node name="Area2D" type="Area2D"]
|
||||||
script = ExtResource("1_qivxv")
|
script = ExtResource("1_qivxv")
|
||||||
|
metadata/_edit_group_ = true
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
shape = SubResource("RectangleShape2D_dp02a")
|
shape = SubResource("RectangleShape2D_dp02a")
|
||||||
|
@ -1,81 +1,420 @@
|
|||||||
[gd_scene load_steps=13 format=3 uid="uid://dcmyx5g6dksl8"]
|
[gd_scene load_steps=16 format=4 uid="uid://dcmyx5g6dksl8"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://d1ej2kiy7jcpv" path="res://scenes/crate.tscn" id="1_uivx3"]
|
[ext_resource type="PackedScene" uid="uid://d1ej2kiy7jcpv" path="res://scenes/crate.tscn" id="1_uivx3"]
|
||||||
[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_vhl00"]
|
[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_vhl00"]
|
||||||
[ext_resource type="Script" path="res://scripts/trigger.gd" id="3_2qbah"]
|
[ext_resource type="Script" path="res://scripts/trigger.gd" id="3_2qbah"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b75mow511wmmb" path="res://scenes/player.tscn" id="3_8h5jv"]
|
[ext_resource type="PackedScene" uid="uid://b75mow511wmmb" path="res://scenes/player.tscn" id="3_8h5jv"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://jlbx6yvcmten" path="res://assets/graphics/terrains/backgrounds/forestbackground.png" id="3_umlo6"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://8kaggg1kilxy" path="res://assets/graphics/terrains/backgrounds/skystrip.png" id="4_62nh8"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://b3smxb17ijk60" path="res://assets/graphics/terrains/backgrounds/midtrees.png" id="4_201fr"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dwfife67i1fmr" path="res://scenes/bullet.tscn" id="5_7yfvg"]
|
[ext_resource type="PackedScene" uid="uid://dwfife67i1fmr" path="res://scenes/bullet.tscn" id="5_7yfvg"]
|
||||||
[ext_resource type="Script" path="res://scripts/scenemanager.gd" id="6_n2kp0"]
|
[ext_resource type="Script" path="res://scripts/scenemanager.gd" id="6_n2kp0"]
|
||||||
[ext_resource type="Texture2D" uid="uid://btdvc25chjgd" path="res://assets/graphics/terrains/Terrain (32x32).png" id="7_v20os"]
|
[ext_resource type="Texture2D" uid="uid://btdvc25chjgd" path="res://assets/graphics/terrains/Terrain (32x32).png" id="7_v20os"]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1cyeq"]
|
|
||||||
size = Vector2(101, 20)
|
|
||||||
|
|
||||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_bqh70"]
|
|
||||||
distance = -395.0
|
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id="CircleShape2D_mfh1j"]
|
|
||||||
|
|
||||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_3ut3v"]
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_3ut3v"]
|
||||||
texture = ExtResource("7_v20os")
|
texture = ExtResource("7_v20os")
|
||||||
texture_region_size = Vector2i(32, 32)
|
texture_region_size = Vector2i(32, 32)
|
||||||
0:0/0 = 0
|
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, 16, -16, 16)
|
||||||
|
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 = 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, 16, -16, 16)
|
||||||
|
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 = 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, 16, -16, 16)
|
||||||
|
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 = 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, 16, -16, 16)
|
||||||
|
4:0/0/terrains_peering_bit/bottom_side = 0
|
||||||
6:0/0 = 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 = 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 = 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 = 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 = 0
|
||||||
|
12:0/0/terrain_set = 0
|
||||||
|
12:0/0/terrain = 0
|
||||||
|
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 = 0
|
||||||
|
13:0/0/terrain_set = 0
|
||||||
|
13:0/0/terrain = 0
|
||||||
|
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 = 0
|
||||||
|
15:0/0/terrain_set = 0
|
||||||
|
15:0/0/terrain = 0
|
||||||
|
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 = 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, 16, -16, 16)
|
||||||
|
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 = 0
|
||||||
2:1/0 = 0
|
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, 16, -16, 16)
|
||||||
|
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 = 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, 16, -16, 16)
|
||||||
|
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 = 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 = 0
|
||||||
|
7:1/0/terrain_set = 0
|
||||||
|
7:1/0/terrain = 0
|
||||||
|
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 = 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/top_side = 0
|
||||||
|
9:1/0/terrains_peering_bit/top_right_corner = 0
|
||||||
10:1/0 = 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 = 0
|
||||||
|
12:1/0/terrain_set = 0
|
||||||
|
12:1/0/terrain = 0
|
||||||
|
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 = 0
|
||||||
|
13:1/0/terrain_set = 0
|
||||||
|
13:1/0/terrain = 0
|
||||||
|
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 = 0
|
||||||
|
15:1/0/terrain_set = 0
|
||||||
|
15:1/0/terrain = 0
|
||||||
|
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 = 0
|
||||||
|
16:1/0/terrain_set = 0
|
||||||
|
16:1/0/terrain = 0
|
||||||
|
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 = 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, 16, -16, 16)
|
||||||
|
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 = 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, 16, -16, 16)
|
||||||
|
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 = 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, 16, -16, 16)
|
||||||
|
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 = 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, 16, -16, 16)
|
||||||
|
4:2/0/terrains_peering_bit/top_side = 0
|
||||||
6:3/0 = 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, -0.25, -16, 0, 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 = 0
|
||||||
|
7:3/0/terrain_set = 0
|
||||||
|
7:3/0/terrain = 0
|
||||||
|
7:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(16, -16, -0.25, -16, 0, 16, 16, 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 = 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, -7, 16, -6.75)
|
||||||
|
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 = 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, -7, 16, -6.75)
|
||||||
|
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 = 0
|
||||||
|
12:3/0/terrain_set = 0
|
||||||
|
12:3/0/terrain = 0
|
||||||
|
12:3/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, -16, 16, -6, 16, -6.5, -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 = 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, -0.75, 7.5, 0.5, 8, 16, 16, 16, 16, -16)
|
||||||
|
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 = 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, 16, 16, -16)
|
||||||
|
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 = 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, 16, 16, -16)
|
||||||
|
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 = 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, 16, -16, 16)
|
||||||
|
0:4/0/terrains_peering_bit/right_side = 0
|
||||||
1:4/0 = 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, 16, -16, 16)
|
||||||
|
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 = 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, 16, -16, 16)
|
||||||
|
2:4/0/terrains_peering_bit/left_side = 0
|
||||||
4:4/0 = 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, 16, -16, 16)
|
||||||
6:4/0 = 0
|
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, -0.25, -16, 0, 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 = 0
|
||||||
|
7:4/0/terrain_set = 0
|
||||||
|
7:4/0/terrain = 0
|
||||||
|
7:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(16, -16, -0.25, -16, 0, 16, 16, 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 = 0
|
||||||
|
9:4/0/terrain_set = 0
|
||||||
|
9:4/0/terrain = 0
|
||||||
|
9:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, 3.5, -16, 16, 16, 16, 16, 3.5)
|
||||||
|
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 = 0
|
||||||
|
10:4/0/terrain_set = 0
|
||||||
|
10:4/0/terrain = 0
|
||||||
|
10:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, 3.5, -16, 16, 16, 16, 16, 3.5)
|
||||||
|
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 = 0
|
||||||
|
12:4/0/terrain_set = 0
|
||||||
|
12:4/0/terrain = 0
|
||||||
|
12:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, -16, 16, 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 = 0
|
||||||
|
13:4/0/terrain_set = 0
|
||||||
|
13:4/0/terrain = 0
|
||||||
|
13:4/0/physics_layer_0/polygon_0/points = PackedVector2Array(5.5, -16, 6.25, 16, 16, 16, 16, -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 = 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, 16, 16, -16)
|
||||||
|
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 = 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, 16, 16, -16)
|
||||||
|
16:4/0/terrains_peering_bit/left_side = 0
|
||||||
|
16:4/0/terrains_peering_bit/top_side = 0
|
||||||
|
|
||||||
[sub_resource type="TileSet" id="TileSet_ixl4j"]
|
[sub_resource type="TileSet" id="TileSet_ixl4j"]
|
||||||
tile_size = Vector2i(32, 32)
|
tile_size = Vector2i(32, 32)
|
||||||
|
physics_layer_0/collision_layer = 1
|
||||||
|
terrain_set_0/mode = 0
|
||||||
|
terrain_set_0/terrain_0/name = "leafy_ground"
|
||||||
|
terrain_set_0/terrain_0/color = Color(0.5, 0.34375, 0.25, 1)
|
||||||
sources/0 = SubResource("TileSetAtlasSource_3ut3v")
|
sources/0 = SubResource("TileSetAtlasSource_3ut3v")
|
||||||
|
|
||||||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1cyeq"]
|
||||||
|
size = Vector2(101, 20)
|
||||||
|
|
||||||
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_bqh70"]
|
||||||
|
distance = -181.0
|
||||||
|
|
||||||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_mfh1j"]
|
||||||
|
|
||||||
[node name="Game" type="Node2D"]
|
[node name="Game" type="Node2D"]
|
||||||
script = ExtResource("1_vhl00")
|
script = ExtResource("1_vhl00")
|
||||||
|
|
||||||
|
[node name="SceneManager" type="Node" parent="."]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
script = ExtResource("6_n2kp0")
|
||||||
|
|
||||||
|
[node name="Background" type="Parallax2D" parent="."]
|
||||||
|
repeat_size = Vector2(320, 0)
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="Background"]
|
||||||
|
position = Vector2(160, 90)
|
||||||
|
texture = ExtResource("3_umlo6")
|
||||||
|
|
||||||
|
[node name="Sprite2D2" type="Sprite2D" parent="Background"]
|
||||||
|
position = Vector2(160, -68.5)
|
||||||
|
scale = Vector2(1, 5.56667)
|
||||||
|
texture = ExtResource("4_62nh8")
|
||||||
|
|
||||||
|
[node name="Parallax2D2" type="Parallax2D" parent="."]
|
||||||
|
scroll_scale = Vector2(1.2, 1.2)
|
||||||
|
repeat_size = Vector2(320, 0)
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="Parallax2D2"]
|
||||||
|
texture_filter = 1
|
||||||
|
position = Vector2(160, 90)
|
||||||
|
texture = ExtResource("4_201fr")
|
||||||
|
|
||||||
|
[node name="TileMapLayer" type="TileMapLayer" parent="."]
|
||||||
|
position = Vector2(-220, -413)
|
||||||
|
tile_map_data = PackedByteArray("AAALABMAAAAEAAEAAAALABQAAAAEAAEAAAALABUAAAAEAAEAAAALABYAAAAPAAQAAAAMABYAAAAQAAMAAAAMABcAAAAPAAQAAAANABcAAAABAAQAAAAOABcAAAAKAAMAAAAOABgAAAAAAAIAAAAPABcAAAACAAAAAAAPABgAAAAJAAQAAAAQABgAAAABAAQAAAARABgAAAABAAQAAAASABgAAAABAAQAAAATABgAAAACAAQAAAAUABkAAAAAAAQAAAAVABkAAAABAAQAAAAWABkAAAABAAQAAAAXABkAAAABAAQAAAAYABkAAAABAAQAAAAZABkAAAABAAQAAAAaABkAAAABAAQAAAAbABkAAAABAAQAAAAcABkAAAABAAQAAAAdABkAAAABAAQAAAAeABkAAAAKAAMAAAAeABoAAAAAAAIAAAAfABoAAAACAAIAAAAfABkAAAAJAAMAAAAgABkAAAAQAAQAAAAgABgAAAAPAAMAAAAhABgAAAABAAQAAAAiABgAAAABAAQAAAAjABgAAAACAAQAAAAJABIAAAABAAAAAAAKABIAAAABAAAAAAALABIAAAABAAAAAAAMABIAAAABAAAAAAANABIAAAABAAQAAAAIABIAAAABAAAAAAAHABIAAAAKAAMAAAAOABIAAAABAAQAAAAPABIAAAABAAQAAAAQABIAAAACAAQAAAATABIAAAAAAAQAAAAUABIAAAABAAQAAAAVABIAAAABAAQAAAAWABIAAAABAAQAAAAXABIAAAABAAQAAAAYABIAAAABAAQAAAAZABIAAAABAAQAAAAaABIAAAAKAAMAAAA=")
|
||||||
|
tile_set = SubResource("TileSet_ixl4j")
|
||||||
|
|
||||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||||
position = Vector2(622, 343)
|
position = Vector2(340, -161)
|
||||||
metadata/_edit_group_ = true
|
metadata/_edit_group_ = true
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||||
@ -90,7 +429,7 @@ shape = SubResource("WorldBoundaryShape2D_bqh70")
|
|||||||
[node name="CharacterBody2D" parent="." instance=ExtResource("3_8h5jv")]
|
[node name="CharacterBody2D" parent="." instance=ExtResource("3_8h5jv")]
|
||||||
|
|
||||||
[node name="Area2D" type="Area2D" parent="."]
|
[node name="Area2D" type="Area2D" parent="."]
|
||||||
position = Vector2(513, 319)
|
position = Vector2(269, 55)
|
||||||
scale = Vector2(5, 5)
|
scale = Vector2(5, 5)
|
||||||
script = ExtResource("3_2qbah")
|
script = ExtResource("3_2qbah")
|
||||||
metadata/_edit_group_ = true
|
metadata/_edit_group_ = true
|
||||||
@ -100,36 +439,29 @@ shape = SubResource("CircleShape2D_mfh1j")
|
|||||||
debug_color = Color(0.825765, 0.00158581, 0.954354, 0.42)
|
debug_color = Color(0.825765, 0.00158581, 0.954354, 0.42)
|
||||||
|
|
||||||
[node name="Area2D2" parent="." instance=ExtResource("5_7yfvg")]
|
[node name="Area2D2" parent="." instance=ExtResource("5_7yfvg")]
|
||||||
position = Vector2(309, 222)
|
position = Vector2(142, 25)
|
||||||
|
|
||||||
[node name="SceneManager" type="Node" parent="."]
|
|
||||||
unique_name_in_owner = true
|
|
||||||
script = ExtResource("6_n2kp0")
|
|
||||||
|
|
||||||
[node name="crates" type="Node2D" parent="."]
|
[node name="crates" type="Node2D" parent="."]
|
||||||
|
|
||||||
[node name="RigidBody2D" parent="crates" instance=ExtResource("1_uivx3")]
|
[node name="RigidBody2D" parent="crates" instance=ExtResource("1_uivx3")]
|
||||||
position = Vector2(640, 228)
|
position = Vector2(102, 22)
|
||||||
rotation = 0.806532
|
rotation = 0.806532
|
||||||
|
|
||||||
[node name="RigidBody2D5" parent="crates" instance=ExtResource("1_uivx3")]
|
[node name="RigidBody2D5" parent="crates" instance=ExtResource("1_uivx3")]
|
||||||
position = Vector2(687, 174)
|
position = Vector2(135, 3)
|
||||||
rotation = 0.806532
|
rotation = 0.806532
|
||||||
|
|
||||||
[node name="RigidBody2D2" parent="crates" instance=ExtResource("1_uivx3")]
|
[node name="RigidBody2D2" parent="crates" instance=ExtResource("1_uivx3")]
|
||||||
position = Vector2(586, 297)
|
position = Vector2(69, 3.00003)
|
||||||
rotation = 0.806532
|
rotation = 0.806532
|
||||||
|
|
||||||
[node name="RigidBody2D3" parent="crates" instance=ExtResource("1_uivx3")]
|
[node name="RigidBody2D3" parent="crates" instance=ExtResource("1_uivx3")]
|
||||||
position = Vector2(668, 276)
|
position = Vector2(127, 44)
|
||||||
rotation = 0.806532
|
rotation = 0.806532
|
||||||
|
|
||||||
[node name="RigidBody2D4" parent="crates" instance=ExtResource("1_uivx3")]
|
[node name="RigidBody2D4" parent="crates" instance=ExtResource("1_uivx3")]
|
||||||
position = Vector2(749, 242)
|
position = Vector2(57, 39)
|
||||||
rotation = 0.806532
|
rotation = 0.806532
|
||||||
|
|
||||||
[node name="TileMapLayer" type="TileMapLayer" parent="."]
|
|
||||||
tile_set = SubResource("TileSet_ixl4j")
|
|
||||||
|
|
||||||
[connection signal="areaTrigger" from="Area2D" to="." method="_on_trigger"]
|
[connection signal="areaTrigger" from="Area2D" to="." method="_on_trigger"]
|
||||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||||
|
@ -31,8 +31,10 @@ func bulletFactory():
|
|||||||
else:
|
else:
|
||||||
myBullet = bulletArray.pop_back()
|
myBullet = bulletArray.pop_back()
|
||||||
bulletArray.push_front(myBullet)
|
bulletArray.push_front(myBullet)
|
||||||
|
|
||||||
return myBullet
|
return myBullet
|
||||||
func makeBullet(position, speed):
|
func makeBullet(position, speed):
|
||||||
|
print("position "+str(position) )
|
||||||
var myBullet = bulletFactory()
|
var myBullet = bulletFactory()
|
||||||
myBullet.transform = position
|
myBullet.transform = position
|
||||||
myBullet.setSpeed(speed)
|
myBullet.setSpeed(speed)
|
||||||
|
Loading…
Reference in New Issue
Block a user