First commit. Player moves on basic frame layout
parent
3edc4657cb
commit
374fb2d613
|
@ -0,0 +1 @@
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
|
@ -0,0 +1,507 @@
|
||||||
|
[gd_scene load_steps=23 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://assets/worlds/tiles/city.png" type="Texture" id=1]
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=1]
|
||||||
|
points = PoolVector2Array( 0, 0, 48, 0, 48, 64, 0, 64 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=2]
|
||||||
|
points = PoolVector2Array( 0, 0, 48, 0, 48, 64, 0, 64 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=3]
|
||||||
|
points = PoolVector2Array( 0, 0, 16, 0, 16, 48, 0, 48 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=4]
|
||||||
|
points = PoolVector2Array( 0, 0, 32, 0, 32, 64, 0, 64 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=5]
|
||||||
|
points = PoolVector2Array( 0, 0, 16, 0, 16, 48, 0, 48 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=6]
|
||||||
|
points = PoolVector2Array( 0, 0, 32, 0, 32, 64, 0, 64 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=7]
|
||||||
|
points = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=8]
|
||||||
|
points = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=9]
|
||||||
|
points = PoolVector2Array( 0, 0, 16, 0, 16, 32, 0, 32 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=10]
|
||||||
|
points = PoolVector2Array( 0, 0, 16, 0, 16, 64, 0, 64 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=11]
|
||||||
|
points = PoolVector2Array( 0, 0, 16, 0, 16, 16, 0, 16 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=12]
|
||||||
|
points = PoolVector2Array( 0, 0, 32, 0, 32, 32, 0, 32 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=13]
|
||||||
|
points = PoolVector2Array( 64, 0, 48, 16, 16, 16, 0, 0, 16, 0, 16, 0, 16, 0 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=14]
|
||||||
|
points = PoolVector2Array( 0, 0, 16, 0, 16, 32, 0, 32 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=15]
|
||||||
|
points = PoolVector2Array( 0, 0, 48, 0, 48, 32, 0, 32 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=16]
|
||||||
|
points = PoolVector2Array( 0, 0, 16, 0, 16, 32, 0, 32 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=17]
|
||||||
|
points = PoolVector2Array( 0, 0, 48, 0, 48, 64, 0, 64 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=18]
|
||||||
|
points = PoolVector2Array( 0, 0, 16, 0, 16, 48, 0, 48 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=19]
|
||||||
|
points = PoolVector2Array( 0, 0, 48, 0, 48, 64, 0, 64 )
|
||||||
|
|
||||||
|
[sub_resource type="ConvexPolygonShape2D" id=20]
|
||||||
|
points = PoolVector2Array( 0, 0, 16, 0, 16, 32, 0, 32 )
|
||||||
|
|
||||||
|
[sub_resource type="TileSet" id=21]
|
||||||
|
0/name = "Window1"
|
||||||
|
0/texture = ExtResource( 1 )
|
||||||
|
0/tex_offset = Vector2( 0, 0 )
|
||||||
|
0/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
0/region = Rect2( 224, 16, 48, 64 )
|
||||||
|
0/tile_mode = 0
|
||||||
|
0/occluder_offset = Vector2( 0, 0 )
|
||||||
|
0/navigation_offset = Vector2( 0, 0 )
|
||||||
|
0/shape_offset = Vector2( 0, 0 )
|
||||||
|
0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
0/shape = SubResource( 1 )
|
||||||
|
0/shape_one_way = false
|
||||||
|
0/shape_one_way_margin = 1.0
|
||||||
|
0/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 1 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
0/z_index = 0
|
||||||
|
1/name = "Window2"
|
||||||
|
1/texture = ExtResource( 1 )
|
||||||
|
1/tex_offset = Vector2( 0, 0 )
|
||||||
|
1/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
1/region = Rect2( 224, 96, 48, 64 )
|
||||||
|
1/tile_mode = 0
|
||||||
|
1/occluder_offset = Vector2( 0, 0 )
|
||||||
|
1/navigation_offset = Vector2( 0, 0 )
|
||||||
|
1/shape_offset = Vector2( 0, 0 )
|
||||||
|
1/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
1/shape = SubResource( 2 )
|
||||||
|
1/shape_one_way = false
|
||||||
|
1/shape_one_way_margin = 1.0
|
||||||
|
1/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 2 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
1/z_index = 0
|
||||||
|
2/name = "AirConditioner"
|
||||||
|
2/texture = ExtResource( 1 )
|
||||||
|
2/tex_offset = Vector2( 0, 0 )
|
||||||
|
2/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
2/region = Rect2( 176, 144, 32, 32 )
|
||||||
|
2/tile_mode = 0
|
||||||
|
2/occluder_offset = Vector2( 0, 0 )
|
||||||
|
2/navigation_offset = Vector2( 0, 0 )
|
||||||
|
2/shape_offset = Vector2( 0, 0 )
|
||||||
|
2/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
2/shape = SubResource( 12 )
|
||||||
|
2/shape_one_way = false
|
||||||
|
2/shape_one_way_margin = 1.0
|
||||||
|
2/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 12 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
2/z_index = 0
|
||||||
|
3/name = "Ladder"
|
||||||
|
3/texture = ExtResource( 1 )
|
||||||
|
3/tex_offset = Vector2( 0, 0 )
|
||||||
|
3/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
3/region = Rect2( 32, 96, 16, 32 )
|
||||||
|
3/tile_mode = 0
|
||||||
|
3/occluder_offset = Vector2( 0, 0 )
|
||||||
|
3/navigation_offset = Vector2( 0, 0 )
|
||||||
|
3/shape_offset = Vector2( 0, 0 )
|
||||||
|
3/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
3/shape = SubResource( 14 )
|
||||||
|
3/shape_one_way = false
|
||||||
|
3/shape_one_way_margin = 1.0
|
||||||
|
3/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 14 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
3/z_index = 0
|
||||||
|
4/name = "Pipes1"
|
||||||
|
4/texture = ExtResource( 1 )
|
||||||
|
4/tex_offset = Vector2( 0, 0 )
|
||||||
|
4/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
4/region = Rect2( 160, 96, 48, 32 )
|
||||||
|
4/tile_mode = 0
|
||||||
|
4/occluder_offset = Vector2( 0, 0 )
|
||||||
|
4/navigation_offset = Vector2( 0, 0 )
|
||||||
|
4/shape_offset = Vector2( 0, 0 )
|
||||||
|
4/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
4/shape = SubResource( 15 )
|
||||||
|
4/shape_one_way = false
|
||||||
|
4/shape_one_way_margin = 1.0
|
||||||
|
4/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 15 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
4/z_index = 0
|
||||||
|
5/name = "Pipe2"
|
||||||
|
5/texture = ExtResource( 1 )
|
||||||
|
5/tex_offset = Vector2( 0, 0 )
|
||||||
|
5/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
5/region = Rect2( 352, 96, 16, 32 )
|
||||||
|
5/tile_mode = 0
|
||||||
|
5/occluder_offset = Vector2( 0, 0 )
|
||||||
|
5/navigation_offset = Vector2( 0, 0 )
|
||||||
|
5/shape_offset = Vector2( 0, 0 )
|
||||||
|
5/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
5/shape = SubResource( 16 )
|
||||||
|
5/shape_one_way = false
|
||||||
|
5/shape_one_way_margin = 1.0
|
||||||
|
5/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 16 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
5/z_index = 0
|
||||||
|
6/name = "Window3"
|
||||||
|
6/texture = ExtResource( 1 )
|
||||||
|
6/tex_offset = Vector2( 0, 0 )
|
||||||
|
6/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
6/region = Rect2( 224, 176, 48, 64 )
|
||||||
|
6/tile_mode = 0
|
||||||
|
6/occluder_offset = Vector2( 0, 0 )
|
||||||
|
6/navigation_offset = Vector2( 0, 0 )
|
||||||
|
6/shape_offset = Vector2( 0, 0 )
|
||||||
|
6/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
6/shape = SubResource( 17 )
|
||||||
|
6/shape_one_way = false
|
||||||
|
6/shape_one_way_margin = 1.0
|
||||||
|
6/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 17 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
6/z_index = 0
|
||||||
|
7/name = "Pipe3"
|
||||||
|
7/texture = ExtResource( 1 )
|
||||||
|
7/tex_offset = Vector2( 0, 0 )
|
||||||
|
7/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
7/region = Rect2( 64, 96, 16, 48 )
|
||||||
|
7/tile_mode = 0
|
||||||
|
7/occluder_offset = Vector2( 0, 0 )
|
||||||
|
7/navigation_offset = Vector2( 0, 0 )
|
||||||
|
7/shape_offset = Vector2( 0, 0 )
|
||||||
|
7/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
7/shape = SubResource( 18 )
|
||||||
|
7/shape_one_way = false
|
||||||
|
7/shape_one_way_margin = 1.0
|
||||||
|
7/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 18 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
7/z_index = 0
|
||||||
|
8/name = "Window4"
|
||||||
|
8/texture = ExtResource( 1 )
|
||||||
|
8/tex_offset = Vector2( 0, 0 )
|
||||||
|
8/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
8/region = Rect2( 48, 16, 48, 64 )
|
||||||
|
8/tile_mode = 0
|
||||||
|
8/occluder_offset = Vector2( 0, 0 )
|
||||||
|
8/navigation_offset = Vector2( 0, 0 )
|
||||||
|
8/shape_offset = Vector2( 0, 0 )
|
||||||
|
8/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
8/shape = SubResource( 19 )
|
||||||
|
8/shape_one_way = false
|
||||||
|
8/shape_one_way_margin = 1.0
|
||||||
|
8/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 19 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
8/z_index = 0
|
||||||
|
9/name = "Cable1"
|
||||||
|
9/texture = ExtResource( 1 )
|
||||||
|
9/tex_offset = Vector2( 0, 0 )
|
||||||
|
9/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
9/region = Rect2( 64, 160, 16, 32 )
|
||||||
|
9/tile_mode = 0
|
||||||
|
9/occluder_offset = Vector2( 0, 0 )
|
||||||
|
9/navigation_offset = Vector2( 0, 0 )
|
||||||
|
9/shape_offset = Vector2( 0, 0 )
|
||||||
|
9/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
9/shape = SubResource( 20 )
|
||||||
|
9/shape_one_way = false
|
||||||
|
9/shape_one_way_margin = 1.0
|
||||||
|
9/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 20 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
9/z_index = 0
|
||||||
|
10/name = "Light1"
|
||||||
|
10/texture = ExtResource( 1 )
|
||||||
|
10/tex_offset = Vector2( 0, 0 )
|
||||||
|
10/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
10/region = Rect2( 112, 96, 32, 64 )
|
||||||
|
10/tile_mode = 0
|
||||||
|
10/occluder_offset = Vector2( 0, 0 )
|
||||||
|
10/navigation_offset = Vector2( 0, 0 )
|
||||||
|
10/shape_offset = Vector2( 0, 0 )
|
||||||
|
10/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
10/shape_one_way = false
|
||||||
|
10/shape_one_way_margin = 0.0
|
||||||
|
10/shapes = [ ]
|
||||||
|
10/z_index = 0
|
||||||
|
11/name = "WallLeft1"
|
||||||
|
11/texture = ExtResource( 1 )
|
||||||
|
11/tex_offset = Vector2( 0, 0 )
|
||||||
|
11/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
11/region = Rect2( 16, 16, 16, 48 )
|
||||||
|
11/tile_mode = 0
|
||||||
|
11/occluder_offset = Vector2( 0, 0 )
|
||||||
|
11/navigation_offset = Vector2( 0, 0 )
|
||||||
|
11/shape_offset = Vector2( 0, 0 )
|
||||||
|
11/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
11/shape = SubResource( 3 )
|
||||||
|
11/shape_one_way = false
|
||||||
|
11/shape_one_way_margin = 1.0
|
||||||
|
11/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 3 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
11/z_index = 0
|
||||||
|
12/name = "WallLeft2"
|
||||||
|
12/texture = ExtResource( 1 )
|
||||||
|
12/tex_offset = Vector2( 0, 0 )
|
||||||
|
12/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
12/region = Rect2( 144, 16, 32, 64 )
|
||||||
|
12/tile_mode = 0
|
||||||
|
12/occluder_offset = Vector2( 0, 0 )
|
||||||
|
12/navigation_offset = Vector2( 0, 0 )
|
||||||
|
12/shape_offset = Vector2( 0, 0 )
|
||||||
|
12/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
12/shape = SubResource( 4 )
|
||||||
|
12/shape_one_way = false
|
||||||
|
12/shape_one_way_margin = 1.0
|
||||||
|
12/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 4 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
12/z_index = 0
|
||||||
|
13/name = "WallRight1"
|
||||||
|
13/texture = ExtResource( 1 )
|
||||||
|
13/tex_offset = Vector2( 0, 0 )
|
||||||
|
13/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
13/region = Rect2( 112, 16, 16, 48 )
|
||||||
|
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 = SubResource( 5 )
|
||||||
|
13/shape_one_way = false
|
||||||
|
13/shape_one_way_margin = 1.0
|
||||||
|
13/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 5 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
13/z_index = 0
|
||||||
|
14/name = "WallRight2"
|
||||||
|
14/texture = ExtResource( 1 )
|
||||||
|
14/tex_offset = Vector2( 0, 0 )
|
||||||
|
14/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
14/region = Rect2( 288, 16, 32, 64 )
|
||||||
|
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 = SubResource( 6 )
|
||||||
|
14/shape_one_way = false
|
||||||
|
14/shape_one_way_margin = 1.0
|
||||||
|
14/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 6 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
14/z_index = 0
|
||||||
|
15/name = "Console1"
|
||||||
|
15/texture = ExtResource( 1 )
|
||||||
|
15/tex_offset = Vector2( 0, 0 )
|
||||||
|
15/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
15/region = Rect2( 320, 96, 16, 16 )
|
||||||
|
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 = SubResource( 7 )
|
||||||
|
15/shape_one_way = false
|
||||||
|
15/shape_one_way_margin = 1.0
|
||||||
|
15/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 7 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
15/z_index = 0
|
||||||
|
16/name = "Console2"
|
||||||
|
16/texture = ExtResource( 1 )
|
||||||
|
16/tex_offset = Vector2( 0, 0 )
|
||||||
|
16/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
16/region = Rect2( 320, 112, 16, 16 )
|
||||||
|
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 = SubResource( 8 )
|
||||||
|
16/shape_one_way = false
|
||||||
|
16/shape_one_way_margin = 1.0
|
||||||
|
16/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 8 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
16/z_index = 0
|
||||||
|
17/name = "Grid1"
|
||||||
|
17/texture = ExtResource( 1 )
|
||||||
|
17/tex_offset = Vector2( 0, 0 )
|
||||||
|
17/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
17/region = Rect2( 288, 96, 16, 32 )
|
||||||
|
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 = SubResource( 9 )
|
||||||
|
17/shape_one_way = false
|
||||||
|
17/shape_one_way_margin = 1.0
|
||||||
|
17/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 9 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
17/z_index = 0
|
||||||
|
18/name = "WallCentral1"
|
||||||
|
18/texture = ExtResource( 1 )
|
||||||
|
18/tex_offset = Vector2( 0, 0 )
|
||||||
|
18/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
18/region = Rect2( 192, 16, 16, 64 )
|
||||||
|
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 = SubResource( 10 )
|
||||||
|
18/shape_one_way = false
|
||||||
|
18/shape_one_way_margin = 1.0
|
||||||
|
18/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 10 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
18/z_index = 0
|
||||||
|
19/name = "WallCentral2"
|
||||||
|
19/texture = ExtResource( 1 )
|
||||||
|
19/tex_offset = Vector2( 0, 0 )
|
||||||
|
19/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
19/region = Rect2( 336, 16, 16, 16 )
|
||||||
|
19/tile_mode = 0
|
||||||
|
19/occluder_offset = Vector2( 0, 0 )
|
||||||
|
19/navigation_offset = Vector2( 0, 0 )
|
||||||
|
19/shape_offset = Vector2( 0, 0 )
|
||||||
|
19/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
19/shape = SubResource( 11 )
|
||||||
|
19/shape_one_way = false
|
||||||
|
19/shape_one_way_margin = 1.0
|
||||||
|
19/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 11 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
19/z_index = 0
|
||||||
|
20/name = "Platform1"
|
||||||
|
20/texture = ExtResource( 1 )
|
||||||
|
20/tex_offset = Vector2( 0, 0 )
|
||||||
|
20/modulate = Color( 1, 1, 1, 1 )
|
||||||
|
20/region = Rect2( 96, 176, 64, 16 )
|
||||||
|
20/tile_mode = 0
|
||||||
|
20/occluder_offset = Vector2( 0, 0 )
|
||||||
|
20/navigation_offset = Vector2( 0, 0 )
|
||||||
|
20/shape_offset = Vector2( 0, 0 )
|
||||||
|
20/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
20/shape = SubResource( 13 )
|
||||||
|
20/shape_one_way = false
|
||||||
|
20/shape_one_way_margin = 1.0
|
||||||
|
20/shapes = [ {
|
||||||
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
|
"one_way": false,
|
||||||
|
"one_way_margin": 1.0,
|
||||||
|
"shape": SubResource( 13 ),
|
||||||
|
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
|
||||||
|
} ]
|
||||||
|
20/z_index = 0
|
||||||
|
|
||||||
|
[node name="CityTiles" type="TileMap"]
|
||||||
|
tile_set = SubResource( 21 )
|
||||||
|
cell_size = Vector2( 16, 16 )
|
||||||
|
collision_layer = 4
|
||||||
|
collision_mask = 0
|
||||||
|
format = 1
|
||||||
|
tile_data = PoolIntArray( -65536, 19, 0, -65535, 19, 0, -65534, 19, 0, -65533, 19, 0, -65532, 19, 0, -65531, 19, 0, -65530, 19, 0, -65529, 19, 0, -65528, 19, 0, -65527, 19, 0, -65526, 19, 0, -65525, 19, 0, -65524, 19, 0, -65523, 19, 0, -65522, 19, 0, -65521, 19, 0, -65520, 19, 0, -65519, 19, 0, -65518, 19, 0, -65517, 19, 0, -65516, 19, 0, -65515, 19, 0, -65514, 19, 0, -65513, 19, 0, -65512, 19, 0, -65511, 19, 0, -65510, 19, 0, -65509, 19, 0, -65508, 19, 0, -65507, 19, 0, -65506, 19, 0, 0, 15, 0, 1, 13, 0, 20, 11, 0, 30, 13, 0, 65536, 9, 0, 131072, 9, 0, 196608, 9, 0, 196609, 13, 0, 196628, 11, 0, 196638, 13, 0, 327680, 9, 0, 393216, 16, 0, 393217, 13, 0, 393236, 11, 0, 393237, 19, 0, 393238, 19, 0, 393239, 19, 0, 393240, 19, 0, 393241, 19, 0, 393242, 19, 0, 393243, 19, 0, 393244, 19, 0, 393245, 19, 0, 393246, 13, 0, 458752, 9, 0, 458779, 8, 0, 524288, 9, 0, 589825, 13, 0, 589844, 11, 0, 589854, 13, 0, 655360, 15, 0, 720896, 9, 0, 720923, 2, 0, 720925, 5, 0, 786433, 13, 0, 786452, 11, 0, 786462, 13, 0, 851968, 9, 0, 851995, 3, 0, 851996, 16, 0, 851997, 5, 0, 917532, 9, 0, 983040, 9, 0, 983041, 13, 0, 983060, 11, 0, 983066, 20, 0, 983069, 5, 0, 983070, 13, 0, 1048576, 9, 0, 1048603, 0, 0, 1114112, 9, 0, 1179649, 13, 0, 1179668, 11, 0, 1179678, 13, 0, 1245184, 16, 0, 1310720, 9, 0, 1310722, 19, 0, 1310723, 19, 0, 1310724, 19, 0, 1310725, 19, 0, 1310726, 19, 0, 1310727, 19, 0, 1310728, 19, 0, 1310729, 19, 0, 1310730, 19, 0, 1310731, 19, 0, 1310732, 19, 0, 1310733, 19, 0, 1310734, 19, 0, 1310735, 19, 0, 1310736, 19, 0, 1310737, 19, 0, 1310738, 19, 0, 1310739, 19, 0, 1310740, 19, 0, 1310741, 19, 0, 1310742, 19, 0, 1310743, 19, 0, 1310744, 19, 0, 1310745, 19, 0, 1310746, 19, 0, 1310747, 19, 0, 1310748, 19, 0, 1310749, 19, 0 )
|
|
@ -0,0 +1,5 @@
|
||||||
|
[gd_scene format=2]
|
||||||
|
|
||||||
|
[node name="Hitbox" type="Area2D"]
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
@ -0,0 +1,5 @@
|
||||||
|
[gd_scene format=2]
|
||||||
|
|
||||||
|
[node name="Hurtbox" type="Area2D"]
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
@ -0,0 +1,21 @@
|
||||||
|
[gd_scene load_steps=4 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://assets/players/soldier.png" type="Texture" id=1]
|
||||||
|
[ext_resource path="res://src/players/Soldier.gd" type="Script" id=2]
|
||||||
|
|
||||||
|
[sub_resource type="CapsuleShape2D" id=1]
|
||||||
|
radius = 8.0
|
||||||
|
height = 6.0
|
||||||
|
|
||||||
|
[node name="Soldier" type="KinematicBody2D"]
|
||||||
|
collision_mask = 6
|
||||||
|
script = ExtResource( 2 )
|
||||||
|
|
||||||
|
[node name="Sprite" type="Sprite" parent="."]
|
||||||
|
position = Vector2( 0, -4 )
|
||||||
|
texture = ExtResource( 1 )
|
||||||
|
|
||||||
|
[node name="Body" type="CollisionShape2D" parent="."]
|
||||||
|
position = Vector2( 0, 3 )
|
||||||
|
rotation = 1.5708
|
||||||
|
shape = SubResource( 1 )
|
Binary file not shown.
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/soldier.png-251132fc7f17b9d0f270fd976aba38fd.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/players/soldier.png"
|
||||||
|
dest_files=[ "res://.import/soldier.png-251132fc7f17b9d0f270fd976aba38fd.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=false
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=false
|
||||||
|
svg/scale=1.0
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/buildings-bg.png-89d51162fa56205d0ace2f4c0b59ff31.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/worlds/backgrounds/buildings-bg.png"
|
||||||
|
dest_files=[ "res://.import/buildings-bg.png-89d51162fa56205d0ace2f4c0b59ff31.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=false
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=false
|
||||||
|
svg/scale=1.0
|
Binary file not shown.
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/default-background.png-cd15db8a98fd961639cb55f77dbf4ee2.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/worlds/backgrounds/default-background.png"
|
||||||
|
dest_files=[ "res://.import/default-background.png-cd15db8a98fd961639cb55f77dbf4ee2.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=false
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=false
|
||||||
|
svg/scale=1.0
|
Binary file not shown.
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/near-buildings-bg.png-4cab8366da2ff7646747e98027f73395.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/worlds/backgrounds/near-buildings-bg.png"
|
||||||
|
dest_files=[ "res://.import/near-buildings-bg.png-4cab8366da2ff7646747e98027f73395.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=false
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=false
|
||||||
|
svg/scale=1.0
|
Binary file not shown.
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/skyline-a.png-8e2efc2e97600295636b24b480436a8c.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/worlds/backgrounds/skyline-a.png"
|
||||||
|
dest_files=[ "res://.import/skyline-a.png-8e2efc2e97600295636b24b480436a8c.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=false
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=false
|
||||||
|
svg/scale=1.0
|
Binary file not shown.
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/skyline-b.png-63a13124048ffb47a15864a4ce9512a4.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/worlds/backgrounds/skyline-b.png"
|
||||||
|
dest_files=[ "res://.import/skyline-b.png-63a13124048ffb47a15864a4ce9512a4.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=false
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=false
|
||||||
|
svg/scale=1.0
|
Binary file not shown.
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/city.png-aecc9b4cce39199d1db32c0922d30d1e.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/worlds/tiles/city.png"
|
||||||
|
dest_files=[ "res://.import/city.png-aecc9b4cce39199d1db32c0922d30d1e.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=false
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=false
|
||||||
|
svg/scale=1.0
|
|
@ -0,0 +1,7 @@
|
||||||
|
[gd_resource type="Environment" load_steps=2 format=2]
|
||||||
|
|
||||||
|
[sub_resource type="ProceduralSky" id=1]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
background_mode = 2
|
||||||
|
background_sky = SubResource( 1 )
|
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://icon.png"
|
||||||
|
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=false
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=false
|
||||||
|
svg/scale=1.0
|
|
@ -0,0 +1,102 @@
|
||||||
|
; Engine configuration file.
|
||||||
|
; It's best edited using the editor UI and not directly,
|
||||||
|
; since the parameters that go here are not all obvious.
|
||||||
|
;
|
||||||
|
; Format:
|
||||||
|
; [section] ; section goes between []
|
||||||
|
; param=value ; assign values to parameters
|
||||||
|
|
||||||
|
config_version=4
|
||||||
|
|
||||||
|
_global_script_classes=[ ]
|
||||||
|
_global_script_class_icons={
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[application]
|
||||||
|
|
||||||
|
config/name="CyberInvaders"
|
||||||
|
run/main_scene="res://assets/worlds/BasicWorld.tscn"
|
||||||
|
config/icon="res://icon.png"
|
||||||
|
|
||||||
|
[display]
|
||||||
|
|
||||||
|
window/size/width=480
|
||||||
|
window/size/height=320
|
||||||
|
window/size/test_width=1280
|
||||||
|
window/size/test_height=720
|
||||||
|
window/stretch/mode="2d"
|
||||||
|
|
||||||
|
[importer_defaults]
|
||||||
|
|
||||||
|
texture={
|
||||||
|
"compress/bptc_ldr": 0,
|
||||||
|
"compress/hdr_mode": 0,
|
||||||
|
"compress/lossy_quality": 0.7,
|
||||||
|
"compress/mode": 0,
|
||||||
|
"compress/normal_map": 0,
|
||||||
|
"detect_3d": false,
|
||||||
|
"flags/anisotropic": false,
|
||||||
|
"flags/filter": false,
|
||||||
|
"flags/mipmaps": false,
|
||||||
|
"flags/repeat": 0,
|
||||||
|
"flags/srgb": 2,
|
||||||
|
"process/HDR_as_SRGB": false,
|
||||||
|
"process/fix_alpha_border": true,
|
||||||
|
"process/invert_color": false,
|
||||||
|
"process/premult_alpha": false,
|
||||||
|
"size_limit": 0,
|
||||||
|
"stream": false,
|
||||||
|
"svg/scale": 1.0
|
||||||
|
}
|
||||||
|
|
||||||
|
[input]
|
||||||
|
|
||||||
|
ui_accept={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777221,"unicode":0,"echo":false,"script":null)
|
||||||
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777222,"unicode":0,"echo":false,"script":null)
|
||||||
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":0,"pressure":0.0,"pressed":false,"script":null)
|
||||||
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"unicode":0,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
ui_left={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"unicode":0,"echo":false,"script":null)
|
||||||
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":14,"pressure":0.0,"pressed":false,"script":null)
|
||||||
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"unicode":0,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
ui_right={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"unicode":0,"echo":false,"script":null)
|
||||||
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":15,"pressure":0.0,"pressed":false,"script":null)
|
||||||
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"unicode":0,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
ui_up={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"unicode":0,"echo":false,"script":null)
|
||||||
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":12,"pressure":0.0,"pressed":false,"script":null)
|
||||||
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"unicode":0,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
ui_down={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"unicode":0,"echo":false,"script":null)
|
||||||
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":13,"pressure":0.0,"pressed":false,"script":null)
|
||||||
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"unicode":0,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
[layer_names]
|
||||||
|
|
||||||
|
2d_physics/layer_1="player"
|
||||||
|
2d_physics/layer_2="enemy"
|
||||||
|
2d_physics/layer_3="world"
|
||||||
|
2d_physics/layer_4="playerHurtbox"
|
||||||
|
2d_physics/layer_5="enemyHurtbox"
|
||||||
|
|
||||||
|
[rendering]
|
||||||
|
|
||||||
|
environment/default_environment="res://default_env.tres"
|
|
@ -0,0 +1,21 @@
|
||||||
|
extends KinematicBody2D
|
||||||
|
|
||||||
|
export var ACCELERATION: int = 700
|
||||||
|
export var MAX_SPEED: int = 150
|
||||||
|
export var ROLL_SPEED: int = 120
|
||||||
|
export var FRICTION: int = 550
|
||||||
|
|
||||||
|
var velocity: Vector2 = Vector2.ZERO
|
||||||
|
|
||||||
|
func _physics_process(delta: float) -> void:
|
||||||
|
var input_vector := Vector2.ZERO
|
||||||
|
input_vector.x = Input.get_action_strength("ui_right") - Input.get_action_strength("ui_left")
|
||||||
|
input_vector.y = Input.get_action_strength("ui_down") - Input.get_action_strength("ui_up")
|
||||||
|
input_vector = input_vector.normalized()
|
||||||
|
|
||||||
|
if input_vector != Vector2.ZERO:
|
||||||
|
input_vector = velocity.move_toward(input_vector * MAX_SPEED, ACCELERATION * delta)
|
||||||
|
else:
|
||||||
|
input_vector = velocity.move_toward(Vector2.ZERO, FRICTION * delta)
|
||||||
|
|
||||||
|
velocity = move_and_slide(input_vector)
|
Loading…
Reference in New Issue