diff --git a/Enemy.tscn b/Enemy.tscn new file mode 100644 index 0000000..3db3621 --- /dev/null +++ b/Enemy.tscn @@ -0,0 +1,260 @@ +[gd_scene load_steps=58 format=2] + +[ext_resource path="res://NightBorne.png" type="Texture" id=1] + +[sub_resource type="AtlasTexture" id=1] +atlas = ExtResource( 1 ) +region = Rect2( 0, 0, 80, 80 ) + +[sub_resource type="AtlasTexture" id=2] +atlas = ExtResource( 1 ) +region = Rect2( 80, 0, 80, 80 ) + +[sub_resource type="AtlasTexture" id=3] +atlas = ExtResource( 1 ) +region = Rect2( 160, 0, 80, 80 ) + +[sub_resource type="AtlasTexture" id=4] +atlas = ExtResource( 1 ) +region = Rect2( 240, 0, 80, 80 ) + +[sub_resource type="AtlasTexture" id=5] +atlas = ExtResource( 1 ) +region = Rect2( 320, 0, 80, 80 ) + +[sub_resource type="AtlasTexture" id=6] +atlas = ExtResource( 1 ) +region = Rect2( 400, 0, 80, 80 ) + +[sub_resource type="AtlasTexture" id=7] +atlas = ExtResource( 1 ) +region = Rect2( 480, 0, 80, 80 ) + +[sub_resource type="AtlasTexture" id=8] +atlas = ExtResource( 1 ) +region = Rect2( 560, 0, 80, 80 ) + +[sub_resource type="AtlasTexture" id=9] +atlas = ExtResource( 1 ) +region = Rect2( 640, 0, 80, 80 ) + +[sub_resource type="AtlasTexture" id=10] +atlas = ExtResource( 1 ) +region = Rect2( 0, 80, 80, 80 ) + +[sub_resource type="AtlasTexture" id=11] +atlas = ExtResource( 1 ) +region = Rect2( 80, 80, 80, 80 ) + +[sub_resource type="AtlasTexture" id=12] +atlas = ExtResource( 1 ) +region = Rect2( 160, 80, 80, 80 ) + +[sub_resource type="AtlasTexture" id=13] +atlas = ExtResource( 1 ) +region = Rect2( 240, 80, 80, 80 ) + +[sub_resource type="AtlasTexture" id=14] +atlas = ExtResource( 1 ) +region = Rect2( 320, 80, 80, 80 ) + +[sub_resource type="AtlasTexture" id=15] +atlas = ExtResource( 1 ) +region = Rect2( 400, 80, 80, 80 ) + +[sub_resource type="AtlasTexture" id=16] +atlas = ExtResource( 1 ) +region = Rect2( 0, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=17] +atlas = ExtResource( 1 ) +region = Rect2( 80, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=18] +atlas = ExtResource( 1 ) +region = Rect2( 160, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=19] +atlas = ExtResource( 1 ) +region = Rect2( 240, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=20] +atlas = ExtResource( 1 ) +region = Rect2( 320, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=21] +atlas = ExtResource( 1 ) +region = Rect2( 400, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=22] +atlas = ExtResource( 1 ) +region = Rect2( 480, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=23] +atlas = ExtResource( 1 ) +region = Rect2( 560, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=24] +atlas = ExtResource( 1 ) +region = Rect2( 640, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=25] +atlas = ExtResource( 1 ) +region = Rect2( 720, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=26] +atlas = ExtResource( 1 ) +region = Rect2( 800, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=27] +atlas = ExtResource( 1 ) +region = Rect2( 880, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=28] +atlas = ExtResource( 1 ) +region = Rect2( 960, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=29] +atlas = ExtResource( 1 ) +region = Rect2( 1040, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=30] +atlas = ExtResource( 1 ) +region = Rect2( 1120, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=31] +atlas = ExtResource( 1 ) +region = Rect2( 1200, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=32] +atlas = ExtResource( 1 ) +region = Rect2( 1280, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=33] +atlas = ExtResource( 1 ) +region = Rect2( 1360, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=34] +atlas = ExtResource( 1 ) +region = Rect2( 1440, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=35] +atlas = ExtResource( 1 ) +region = Rect2( 1520, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=36] +atlas = ExtResource( 1 ) +region = Rect2( 1600, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=37] +atlas = ExtResource( 1 ) +region = Rect2( 1680, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=38] +atlas = ExtResource( 1 ) +region = Rect2( 1760, 320, 80, 80 ) + +[sub_resource type="AtlasTexture" id=39] +atlas = ExtResource( 1 ) +region = Rect2( 0, 240, 80, 80 ) + +[sub_resource type="AtlasTexture" id=40] +atlas = ExtResource( 1 ) +region = Rect2( 80, 240, 80, 80 ) + +[sub_resource type="AtlasTexture" id=41] +atlas = ExtResource( 1 ) +region = Rect2( 160, 240, 80, 80 ) + +[sub_resource type="AtlasTexture" id=42] +atlas = ExtResource( 1 ) +region = Rect2( 240, 240, 80, 80 ) + +[sub_resource type="AtlasTexture" id=43] +atlas = ExtResource( 1 ) +region = Rect2( 320, 240, 80, 80 ) + +[sub_resource type="AtlasTexture" id=44] +atlas = ExtResource( 1 ) +region = Rect2( 0, 160, 80, 80 ) + +[sub_resource type="AtlasTexture" id=45] +atlas = ExtResource( 1 ) +region = Rect2( 80, 160, 80, 80 ) + +[sub_resource type="AtlasTexture" id=46] +atlas = ExtResource( 1 ) +region = Rect2( 160, 160, 80, 80 ) + +[sub_resource type="AtlasTexture" id=47] +atlas = ExtResource( 1 ) +region = Rect2( 240, 160, 80, 80 ) + +[sub_resource type="AtlasTexture" id=48] +atlas = ExtResource( 1 ) +region = Rect2( 320, 160, 80, 80 ) + +[sub_resource type="AtlasTexture" id=49] +atlas = ExtResource( 1 ) +region = Rect2( 400, 160, 80, 80 ) + +[sub_resource type="AtlasTexture" id=50] +atlas = ExtResource( 1 ) +region = Rect2( 480, 160, 80, 80 ) + +[sub_resource type="AtlasTexture" id=51] +atlas = ExtResource( 1 ) +region = Rect2( 560, 160, 80, 80 ) + +[sub_resource type="AtlasTexture" id=52] +atlas = ExtResource( 1 ) +region = Rect2( 640, 160, 80, 80 ) + +[sub_resource type="AtlasTexture" id=53] +atlas = ExtResource( 1 ) +region = Rect2( 720, 160, 80, 80 ) + +[sub_resource type="AtlasTexture" id=54] +atlas = ExtResource( 1 ) +region = Rect2( 800, 160, 80, 80 ) + +[sub_resource type="AtlasTexture" id=55] +atlas = ExtResource( 1 ) +region = Rect2( 880, 160, 80, 80 ) + +[sub_resource type="SpriteFrames" id=56] +animations = [ { +"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ) ], +"loop": true, +"name": "idle", +"speed": 10.0 +}, { +"frames": [ SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ) ], +"loop": true, +"name": "running", +"speed": 10.0 +}, { +"frames": [ SubResource( 16 ), SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ), SubResource( 21 ), SubResource( 22 ), SubResource( 23 ), SubResource( 24 ), SubResource( 25 ), SubResource( 26 ), SubResource( 27 ), SubResource( 28 ), SubResource( 29 ), SubResource( 30 ), SubResource( 31 ), SubResource( 32 ), SubResource( 33 ), SubResource( 34 ), SubResource( 35 ), SubResource( 36 ), SubResource( 37 ), SubResource( 38 ) ], +"loop": true, +"name": "death", +"speed": 10.0 +}, { +"frames": [ SubResource( 39 ), SubResource( 40 ), SubResource( 41 ), SubResource( 42 ), SubResource( 43 ) ], +"loop": true, +"name": "hurt", +"speed": 5.0 +}, { +"frames": [ SubResource( 44 ), SubResource( 45 ), SubResource( 46 ), SubResource( 47 ), SubResource( 48 ), SubResource( 49 ), SubResource( 50 ), SubResource( 51 ), SubResource( 52 ), SubResource( 53 ), SubResource( 54 ), SubResource( 55 ) ], +"loop": true, +"name": "attack", +"speed": 10.0 +} ] + +[node name="Node2D" type="KinematicBody2D"] + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] + +[node name="AnimatedSprite" type="AnimatedSprite" parent="."] +frames = SubResource( 56 ) +animation = "death" +playing = true diff --git a/NightBorne.png b/NightBorne.png new file mode 100644 index 0000000..5e8d1ad Binary files /dev/null and b/NightBorne.png differ diff --git a/NightBorne.png.import b/NightBorne.png.import new file mode 100644 index 0000000..5df4353 --- /dev/null +++ b/NightBorne.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/NightBorne.png-f5e2e92d75746ab47dc17c615f9ef23c.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://NightBorne.png" +dest_files=[ "res://.import/NightBorne.png-f5e2e92d75746ab47dc17c615f9ef23c.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 diff --git a/Player.tscn b/Player.tscn index e621a9d..f75f9f1 100644 --- a/Player.tscn +++ b/Player.tscn @@ -14,11 +14,6 @@ animations = [ { }, { "frames": [ ExtResource( 2 ) ], "loop": false, -"name": "look_right", -"speed": 5.0 -}, { -"frames": [ ExtResource( 2 ) ], -"loop": false, "name": "look_left", "speed": 5.0 }, { @@ -26,6 +21,11 @@ animations = [ { "loop": false, "name": "look_down", "speed": 5.0 +}, { +"frames": [ ExtResource( 2 ) ], +"loop": false, +"name": "look_right", +"speed": 5.0 } ] [sub_resource type="CapsuleShape2D" id=2] @@ -146,26 +146,26 @@ tracks/1/keys = { "values": [ false ] } -[sub_resource type="AnimationNodeAnimation" id=8] +[sub_resource type="AnimationNodeAnimation" id=15] animation = "Look Left" -[sub_resource type="AnimationNodeAnimation" id=9] +[sub_resource type="AnimationNodeAnimation" id=16] animation = "Look Down" -[sub_resource type="AnimationNodeAnimation" id=10] +[sub_resource type="AnimationNodeAnimation" id=17] animation = "Look Right" -[sub_resource type="AnimationNodeAnimation" id=11] +[sub_resource type="AnimationNodeAnimation" id=18] animation = "Look Up" [sub_resource type="AnimationNodeBlendSpace2D" id=12] -blend_point_0/node = SubResource( 8 ) +blend_point_0/node = SubResource( 15 ) blend_point_0/pos = Vector2( -1.01, 0 ) -blend_point_1/node = SubResource( 9 ) +blend_point_1/node = SubResource( 16 ) blend_point_1/pos = Vector2( 0, 1.1 ) -blend_point_2/node = SubResource( 10 ) +blend_point_2/node = SubResource( 17 ) blend_point_2/pos = Vector2( 1, 0 ) -blend_point_3/node = SubResource( 11 ) +blend_point_3/node = SubResource( 18 ) blend_point_3/pos = Vector2( 0, -1.1 ) min_space = Vector2( -1.01, -1.1 ) max_space = Vector2( 1, 1.1 ) diff --git a/World.tscn b/World.tscn index afd4339..49ffe97 100644 --- a/World.tscn +++ b/World.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=10 format=2] +[gd_scene load_steps=11 format=2] [ext_resource path="res://Player.tscn" type="PackedScene" id=1] [ext_resource path="res://World.gd" type="Script" id=2] @@ -55,6 +55,31 @@ points = PoolVector2Array( 33.0868, 45.5302, 15.4222, 45.5302, 15.4222, 39.0812, 3/z_index = 1 [sub_resource type="TileSet" id=3] +0/name = "Sand.png 0" +0/texture = ExtResource( 6 ) +0/tex_offset = Vector2( 0, 0 ) +0/modulate = Color( 1, 1, 1, 1 ) +0/region = Rect2( 0, 0, 80, 48 ) +0/tile_mode = 1 +0/autotile/bitmask_mode = 1 +0/autotile/bitmask_flags = [ Vector2( 0, 0 ), 176, Vector2( 0, 1 ), 146, Vector2( 0, 2 ), 50, Vector2( 1, 0 ), 56, Vector2( 1, 2 ), 56, Vector2( 2, 0 ), 152, Vector2( 2, 1 ), 146, Vector2( 2, 2 ), 26, Vector2( 3, 0 ), 432, Vector2( 3, 1 ), 54, Vector2( 4, 0 ), 216, Vector2( 4, 1 ), 27 ] +0/autotile/icon_coordinate = Vector2( 0, 0 ) +0/autotile/tile_size = Vector2( 16, 16 ) +0/autotile/spacing = 0 +0/autotile/occluder_map = [ ] +0/autotile/navpoly_map = [ ] +0/autotile/priority_map = [ ] +0/autotile/z_index_map = [ ] +0/occluder_offset = Vector2( 0, 0 ) +0/navigation_offset = Vector2( 0, 0 ) +0/shape_offset = Vector2( 0, 0 ) +0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +0/shape_one_way = false +0/shape_one_way_margin = 0.0 +0/shapes = [ ] +0/z_index = 0 + +[sub_resource type="TileSet" id=4] 0/name = "Grass.png 0" 0/texture = ExtResource( 3 ) 0/tex_offset = Vector2( 0, 0 ) @@ -108,7 +133,7 @@ points = PoolVector2Array( 33.0868, 45.5302, 15.4222, 45.5302, 15.4222, 39.0812, 2/region = Rect2( 0, 0, 80, 48 ) 2/tile_mode = 1 2/autotile/bitmask_mode = 1 -2/autotile/bitmask_flags = [ Vector2( 0, 0 ), 176, Vector2( 0, 1 ), 146, Vector2( 0, 2 ), 50, Vector2( 1, 0 ), 56, Vector2( 1, 1 ), 186, Vector2( 1, 2 ), 56, Vector2( 2, 0 ), 152, Vector2( 2, 1 ), 146, Vector2( 2, 2 ), 58, Vector2( 3, 0 ), 176, Vector2( 3, 1 ), 50, Vector2( 3, 2 ), 56, Vector2( 4, 0 ), 152, Vector2( 4, 1 ), 26, Vector2( 4, 2 ), 56 ] +2/autotile/bitmask_flags = [ Vector2( 0, 0 ), 176, Vector2( 0, 1 ), 146, Vector2( 0, 2 ), 50, Vector2( 1, 0 ), 56, Vector2( 1, 2 ), 56, Vector2( 2, 0 ), 152, Vector2( 2, 1 ), 146, Vector2( 2, 2 ), 58, Vector2( 3, 0 ), 176, Vector2( 3, 1 ), 50, Vector2( 3, 2 ), 56, Vector2( 4, 0 ), 152, Vector2( 4, 1 ), 26, Vector2( 4, 2 ), 56 ] 2/autotile/icon_coordinate = Vector2( 0, 0 ) 2/autotile/tile_size = Vector2( 16, 16 ) 2/autotile/spacing = 0 @@ -146,9 +171,16 @@ cell_y_sort = true format = 1 tile_data = PoolIntArray( -327677, 1, 0, -262127, 1, 0, -196594, 1, 0, -131072, 1, 0, -131054, 1, 0, -65523, 3, 65537, 1, 1, 0, 4, 1, 0, 11, 3, 65538, 17, 1, 0, 65536, 1, 0, 65537, 3, 1, 65544, 3, 65537, 65548, 3, 2, 65551, 1, 0, 65552, 3, 65538, 131074, 1, 0, 131082, 1, 0, 131089, 1, 0, 196608, 1, 0, 262147, 3, 0, 262152, 3, 2, 262153, 0, 4, 327682, 0, 3, 327687, 0, 3, 327688, 0, 131074, 327689, 0, 65536, 327692, 3, 131073, 327694, 3, 65538, 393217, 0, 3, 393218, 0, 131074, 393219, 0, 131072, 393222, 0, 131073, 393223, 0, 131074, 393224, 0, 0, 393225, 0, 65540, 393233, 3, 131074, 458753, 1, 0, 458754, 0, 1, 458755, 3, 2, 458758, 0, 1, 458759, 0, 1, 458760, 0, 65540, 458761, 3, 2, 524291, 0, 65539, 524292, 0, 65540, 524295, 3, 131072, 524300, 3, 65536, 524303, 3, 2, 524305, 1, 0, 589828, 3, 131074 ) +[node name="TileMap" type="TileMap" parent="YSort"] +z_index = 3 +tile_set = SubResource( 3 ) +cell_size = Vector2( 16, 16 ) +cell_custom_transform = Transform2D( 16, 0, 0, 16, 0, 0 ) +format = 1 + [node name="Ground" type="TileMap" parent="YSort"] z_index = 1 -tile_set = SubResource( 3 ) +tile_set = SubResource( 4 ) cell_size = Vector2( 16, 16 ) cell_custom_transform = Transform2D( 16, 0, 0, 16, 0, 0 ) cell_tile_origin = 1 diff --git a/forestTreeBig.png.import b/forestTreeBig.png.import index c9e0f11..1c71350 100644 --- a/forestTreeBig.png.import +++ b/forestTreeBig.png.import @@ -28,7 +28,6 @@ process/fix_alpha_border=true process/premult_alpha=false process/HDR_as_SRGB=false process/invert_color=false -process/normal_map_invert_y=false stream=false size_limit=0 detect_3d=true