diff --git a/assets/fonts/PixelOperator8-Bold.ttf.import b/assets/fonts/PixelOperator8-Bold.ttf.import index 0edb4af..cde8403 100644 --- a/assets/fonts/PixelOperator8-Bold.ttf.import +++ b/assets/fonts/PixelOperator8-Bold.ttf.import @@ -23,6 +23,7 @@ allow_system_fallback=true force_autohinter=false hinting=1 subpixel_positioning=1 +keep_rounding_remainders=true oversampling=0.0 Fallbacks=null fallbacks=[] diff --git a/assets/fonts/PixelOperator8.ttf.import b/assets/fonts/PixelOperator8.ttf.import index a4a69b7..d1fb907 100644 --- a/assets/fonts/PixelOperator8.ttf.import +++ b/assets/fonts/PixelOperator8.ttf.import @@ -23,6 +23,7 @@ allow_system_fallback=true force_autohinter=false hinting=1 subpixel_positioning=1 +keep_rounding_remainders=true oversampling=0.0 Fallbacks=null fallbacks=[] diff --git a/assets/sprites/knight-sheet.png b/assets/sprites/knight-sheet.png new file mode 100644 index 0000000..29c7026 Binary files /dev/null and b/assets/sprites/knight-sheet.png differ diff --git a/assets/sprites/knight-sheet.png.import b/assets/sprites/knight-sheet.png.import new file mode 100644 index 0000000..5eabb56 --- /dev/null +++ b/assets/sprites/knight-sheet.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://r42asaariiel" +path="res://.godot/imported/knight-sheet.png-bec1616426964f35f628a3e1512f6064.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/knight-sheet.png" +dest_files=["res://.godot/imported/knight-sheet.png-bec1616426964f35f628a3e1512f6064.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 diff --git a/assets/sprites/knight.aseprite b/assets/sprites/knight.aseprite new file mode 100644 index 0000000..41d60f8 Binary files /dev/null and b/assets/sprites/knight.aseprite differ diff --git a/assets/sprites/world_tileset-sheet.png b/assets/sprites/world_tileset-sheet.png new file mode 100644 index 0000000..a574637 Binary files /dev/null and b/assets/sprites/world_tileset-sheet.png differ diff --git a/assets/sprites/world_tileset-sheet.png.import b/assets/sprites/world_tileset-sheet.png.import new file mode 100644 index 0000000..73d80d5 --- /dev/null +++ b/assets/sprites/world_tileset-sheet.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bl6u4oikhovy2" +path="res://.godot/imported/world_tileset-sheet.png-38be4269b18db235cde4a17bf0d08a89.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/world_tileset-sheet.png" +dest_files=["res://.godot/imported/world_tileset-sheet.png-38be4269b18db235cde4a17bf0d08a89.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 diff --git a/project.godot b/project.godot index 7698b47..e492dbf 100644 --- a/project.godot +++ b/project.godot @@ -12,7 +12,7 @@ config_version=5 config/name="Princess Dragon Slayer" run/main_scene="res://scenes/game.tscn" -config/features=PackedStringArray("4.3", "Forward Plus") +config/features=PackedStringArray("4.4", "Forward Plus") [autoload] diff --git a/scenes/coin.tscn b/scenes/coin.tscn index 2308cd4..2ef6503 100644 --- a/scenes/coin.tscn +++ b/scenes/coin.tscn @@ -194,8 +194,8 @@ tracks/3/keys = { [sub_resource type="AnimationLibrary" id="AnimationLibrary_kby16"] _data = { -"RESET": SubResource("Animation_l41fi"), -"collect": SubResource("Animation_djd7n") +&"RESET": SubResource("Animation_l41fi"), +&"collect": SubResource("Animation_djd7n") } [node name="Coin" type="Area2D"] @@ -213,7 +213,7 @@ shape = SubResource("CapsuleShape2D_wugld") [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { -"": SubResource("AnimationLibrary_kby16") +&"": SubResource("AnimationLibrary_kby16") } [node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."] diff --git a/scenes/game.tscn b/scenes/game.tscn index 7877f2b..bb5e58a 100644 --- a/scenes/game.tscn +++ b/scenes/game.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=12 format=4 uid="uid://bftnbe6bs7unm"] +[gd_scene load_steps=14 format=4 uid="uid://bftnbe6bs7unm"] [ext_resource type="PackedScene" uid="uid://r1ex2hm0w68w" path="res://scenes/player.tscn" id="1_bet5j"] [ext_resource type="Texture2D" uid="uid://buys6ooyytlxw" path="res://assets/sprites/world_tileset.png" id="1_xr8eg"] +[ext_resource type="Texture2D" uid="uid://bl6u4oikhovy2" path="res://assets/sprites/world_tileset-sheet.png" id="3_0tnpc"] [ext_resource type="PackedScene" uid="uid://b314kt4tvhykm" path="res://scenes/coin.tscn" id="3_fl3ak"] [ext_resource type="Script" uid="uid://d3tamph1wtuyg" path="res://scripts/ground.gd" id="3_xffrs"] [ext_resource type="Script" uid="uid://cnypyawdc2pav" path="res://scripts/game_manager.gd" id="5_6hne7"] @@ -171,8 +172,139 @@ texture = ExtResource("1_xr8eg") 2:4/size_in_atlas = Vector2i(3, 3) 2:4/0 = 0 +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_vtaks"] +texture = ExtResource("3_0tnpc") +0:0/0 = 0 +1:0/0 = 0 +2:0/0 = 0 +3:0/0 = 0 +4:0/0 = 0 +5:0/0 = 0 +6:0/0 = 0 +7:0/0 = 0 +8:0/0 = 0 +9:0/0 = 0 +10:0/0 = 0 +11:0/0 = 0 +0:1/0 = 0 +1:1/0 = 0 +2:1/0 = 0 +3:1/0 = 0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+2:12/0 = 0 +3:12/0 = 0 +4:12/0 = 0 +0:13/0 = 0 +1:13/0 = 0 +2:13/0 = 0 +3:13/0 = 0 +4:13/0 = 0 +5:13/0 = 0 +0:14/0 = 0 +1:14/0 = 0 +2:14/0 = 0 +3:14/0 = 0 +4:14/0 = 0 +0:15/0 = 0 +1:15/0 = 0 +2:15/0 = 0 +3:15/0 = 0 + [sub_resource type="TileSet" id="TileSet_1155g"] physics_layer_0/collision_layer = 1 +sources/2 = SubResource("TileSetAtlasSource_vtaks") sources/0 = SubResource("TileSetAtlasSource_q7uas") [sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_u51kv"] diff --git a/scenes/player.tscn b/scenes/player.tscn index 2f9a3e2..84d2435 100644 --- a/scenes/player.tscn +++ b/scenes/player.tscn @@ -1,137 +1,137 @@ [gd_scene load_steps=33 format=3 uid="uid://r1ex2hm0w68w"] -[ext_resource type="Texture2D" uid="uid://rreep3laiho3" path="res://assets/sprites/knight.png" id="1_bdpdo"] [ext_resource type="Script" uid="uid://dnsg58qosk0ay" path="res://scripts/player.gd" id="1_ttddr"] +[ext_resource type="Texture2D" uid="uid://r42asaariiel" path="res://assets/sprites/knight-sheet.png" id="2_qhqgy"] [sub_resource type="CircleShape2D" id="CircleShape2D_flmdw"] radius = 6.08276 -[sub_resource type="AtlasTexture" id="AtlasTexture_khi4m"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_dqkch"] +atlas = ExtResource("2_qhqgy") region = Rect2(0, 0, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_b6rxo"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_qlg0r"] +atlas = ExtResource("2_qhqgy") region = Rect2(32, 0, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_rxxsx"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_tuyoq"] +atlas = ExtResource("2_qhqgy") region = Rect2(64, 0, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_aqn6i"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_fjrip"] +atlas = ExtResource("2_qhqgy") region = Rect2(96, 0, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_adjag"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_g2els"] +atlas = ExtResource("2_qhqgy") region = Rect2(0, 160, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_38xna"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_4ni07"] +atlas = ExtResource("2_qhqgy") region = Rect2(32, 160, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_r5svv"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_l71n6"] +atlas = ExtResource("2_qhqgy") region = Rect2(64, 160, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_ls2a4"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_ke2ow"] +atlas = ExtResource("2_qhqgy") region = Rect2(96, 160, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_5ncli"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_ujl30"] +atlas = ExtResource("2_qhqgy") region = Rect2(128, 160, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_k3i8h"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_31cv2"] +atlas = ExtResource("2_qhqgy") region = Rect2(160, 160, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_tms7b"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_pf23h"] +atlas = ExtResource("2_qhqgy") region = Rect2(192, 160, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_xitvk"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_dt7fs"] +atlas = ExtResource("2_qhqgy") region = Rect2(224, 160, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_l1urg"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_qhqgy"] +atlas = ExtResource("2_qhqgy") region = Rect2(0, 64, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_jpa7q"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_smehm"] +atlas = ExtResource("2_qhqgy") region = Rect2(32, 64, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_50l3e"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_ur7pv"] +atlas = ExtResource("2_qhqgy") region = Rect2(64, 64, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_e1lxk"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_y4r1p"] +atlas = ExtResource("2_qhqgy") region = Rect2(96, 64, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_suufl"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_d2wvv"] +atlas = ExtResource("2_qhqgy") region = Rect2(128, 64, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_lu04q"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_3v2ag"] +atlas = ExtResource("2_qhqgy") region = Rect2(160, 64, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_jdlrl"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_jej6c"] +atlas = ExtResource("2_qhqgy") region = Rect2(192, 64, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_k7asf"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_f1ej7"] +atlas = ExtResource("2_qhqgy") region = Rect2(224, 64, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_ncdm3"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_oprun"] +atlas = ExtResource("2_qhqgy") region = Rect2(0, 96, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_xsfv4"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_a8ls1"] +atlas = ExtResource("2_qhqgy") region = Rect2(32, 96, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_ngoxg"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_qfm1y"] +atlas = ExtResource("2_qhqgy") region = Rect2(64, 96, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_0qpvs"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_fulsm"] +atlas = ExtResource("2_qhqgy") region = Rect2(96, 96, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_c0i1o"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_4r5pv"] +atlas = ExtResource("2_qhqgy") region = Rect2(128, 96, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_yf7yy"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_60mlk"] +atlas = ExtResource("2_qhqgy") region = Rect2(160, 96, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_6k6qs"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_i4ail"] +atlas = ExtResource("2_qhqgy") region = Rect2(192, 96, 32, 32) -[sub_resource type="AtlasTexture" id="AtlasTexture_woy78"] -atlas = ExtResource("1_bdpdo") +[sub_resource type="AtlasTexture" id="AtlasTexture_a38lo"] +atlas = ExtResource("2_qhqgy") region = Rect2(224, 96, 32, 32) [sub_resource type="SpriteFrames" id="SpriteFrames_5pxeq"] animations = [{ "frames": [{ "duration": 1.0, -"texture": SubResource("AtlasTexture_khi4m") +"texture": SubResource("AtlasTexture_dqkch") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_b6rxo") +"texture": SubResource("AtlasTexture_qlg0r") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_rxxsx") +"texture": SubResource("AtlasTexture_tuyoq") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_aqn6i") +"texture": SubResource("AtlasTexture_fjrip") }], "loop": true, "name": &"idle", @@ -139,28 +139,28 @@ animations = [{ }, { "frames": [{ "duration": 1.0, -"texture": SubResource("AtlasTexture_adjag") +"texture": SubResource("AtlasTexture_g2els") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_38xna") +"texture": SubResource("AtlasTexture_4ni07") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_r5svv") +"texture": SubResource("AtlasTexture_l71n6") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_ls2a4") +"texture": SubResource("AtlasTexture_ke2ow") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_5ncli") +"texture": SubResource("AtlasTexture_ujl30") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_k3i8h") +"texture": SubResource("AtlasTexture_31cv2") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_tms7b") +"texture": SubResource("AtlasTexture_pf23h") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_xitvk") +"texture": SubResource("AtlasTexture_dt7fs") }], "loop": true, "name": &"jump", @@ -168,52 +168,52 @@ animations = [{ }, { "frames": [{ "duration": 1.0, -"texture": SubResource("AtlasTexture_l1urg") +"texture": SubResource("AtlasTexture_qhqgy") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_jpa7q") +"texture": SubResource("AtlasTexture_smehm") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_50l3e") +"texture": SubResource("AtlasTexture_ur7pv") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_e1lxk") +"texture": SubResource("AtlasTexture_y4r1p") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_suufl") +"texture": SubResource("AtlasTexture_d2wvv") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_lu04q") +"texture": SubResource("AtlasTexture_3v2ag") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_jdlrl") +"texture": SubResource("AtlasTexture_jej6c") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_k7asf") +"texture": SubResource("AtlasTexture_f1ej7") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_ncdm3") +"texture": SubResource("AtlasTexture_oprun") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_xsfv4") +"texture": SubResource("AtlasTexture_a8ls1") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_ngoxg") +"texture": SubResource("AtlasTexture_qfm1y") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_0qpvs") +"texture": SubResource("AtlasTexture_fulsm") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_c0i1o") +"texture": SubResource("AtlasTexture_4r5pv") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_yf7yy") +"texture": SubResource("AtlasTexture_60mlk") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_6k6qs") +"texture": SubResource("AtlasTexture_i4ail") }, { "duration": 1.0, -"texture": SubResource("AtlasTexture_woy78") +"texture": SubResource("AtlasTexture_a38lo") }], "loop": true, "name": &"run", @@ -231,6 +231,5 @@ shape = SubResource("CircleShape2D_flmdw") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] sprite_frames = SubResource("SpriteFrames_5pxeq") -animation = &"jump" +animation = &"run" autoplay = "idle" -frame_progress = 0.149237