From 74241e34aba15bd9381d240ecda3369ba5fbf13d Mon Sep 17 00:00:00 2001 From: godzilla5hrimp Date: Fri, 2 Oct 2026 20:53:56 +0200 Subject: [PATCH] feat: updated `.gitignore` not to have sh*tton of icons in git; locked rotation for block; added couple of new blocks to the game_scene; rearranged some nodes; fixed dialogue UI for NPC; added icon to the player node; added GitPlugin; --- .gitignore | 1 + Scenes/Block/block.tscn | 1 + Scenes/GameScene/game_scene.tscn | 44 +++++++++++++----------- Scenes/NPC/npc.tscn | 22 ++++++------ Scenes/Player/player.gd | 1 + Scenes/Player/player.tscn | 26 +++++++------- Scenes/TreasureChest/treasure_chest.tscn | 4 +-- project.godot | 9 +++++ 8 files changed, 61 insertions(+), 47 deletions(-) diff --git a/.gitignore b/.gitignore index c1f9aa1..24ae23a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ .godot/* .nomedia .DS_Store +/addons/at-icons/ diff --git a/Scenes/Block/block.tscn b/Scenes/Block/block.tscn index 0ecdb90..cacddbb 100644 --- a/Scenes/Block/block.tscn +++ b/Scenes/Block/block.tscn @@ -17,6 +17,7 @@ collision_layer = 4 collision_mask = 15 physics_material_override = SubResource("PhysicsMaterial_n5fck") gravity_scale = 0.0 +lock_rotation = true linear_damp = 10.0 [node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=195703280] diff --git a/Scenes/GameScene/game_scene.tscn b/Scenes/GameScene/game_scene.tscn index 20c23aa..a7aa8af 100644 --- a/Scenes/GameScene/game_scene.tscn +++ b/Scenes/GameScene/game_scene.tscn @@ -806,6 +806,27 @@ tile_set = SubResource("TileSet_bqpwv") [node name="PuzzleButton" parent="." unique_id=125477561 instance=ExtResource("7_ohrk8")] position = Vector2(183, -86) +[node name="ObjectLayer" type="TileMapLayer" parent="." unique_id=1983037004] + +[node name="TreasureChest" parent="ObjectLayer" unique_id=2069908436 instance=ExtResource("9_bkvnf")] +position = Vector2(-41, -19) + +[node name="TreasureChest2" parent="ObjectLayer" unique_id=1691247799 instance=ExtResource("9_bkvnf")] +position = Vector2(15, -19) + +[node name="TreasureChest3" parent="ObjectLayer" unique_id=267919049 instance=ExtResource("9_bkvnf")] +position = Vector2(-79, -19) + +[node name="Player" parent="." unique_id=1991398375 instance=ExtResource("1_2p8i2")] +push_strength = 100 + +[node name="Camera2D" type="Camera2D" parent="Player" unique_id=1335060572] +zoom = Vector2(5, 5) +limit_left = -192 +limit_top = -144 +limit_right = 192 +limit_bottom = 160 + [node name="ObstacleLayer" type="TileMapLayer" parent="." unique_id=703817951] y_sort_enabled = true tile_map_data = PackedByteArray("AAAIAP7/AAAAAAIAAAAKAP3/AAAAAAIAAAAMAP7/AAAAAAIAAAAIAP//AAAAAAIAAAALAAAAAAAAAAIAAAAIAAEAAAAAAAIAAAALAAIAAAAAAAIAAAACAAQAAAAAAAIAAAAFAAMAAAAAAAIAAAAFAAUAAAAAAAIAAAAHAAMAAAAAAAIAAAAIAAQAAAAAAAIAAAAJAAMAAAAAAAIAAAALAAQAAAAAAAIAAAD///f/AAAAAAIAAAD///j/AAAAAAIAAAD///n/AAAAAAIAAAACAPf/AAAAAAIAAAACAPj/AAAAAAIAAAACAPn/AAAAAAIAAAAAAPr/AAAAAAIAAAAEAPr/AAAAAAIAAAD8//f/AAAAAAIAAAD5//f/AAAAAAIAAAD2//f/AAAAAAIAAADz//f/AAAAAAIAAAD1//b/AAAAAAIAAAD3//b/AAAAAAIAAAD5//b/AAAAAAIAAAD8//b/AAAAAAIAAAABAPb/AAAAAAIAAAAEAPX/AAAAAAIAAAADAPb/AAAAAAIAAAAHAPX/AAAAAAIAAAAKAPX/AAAAAAIAAAANAPb/AAAAAAIAAAANAPf/AAAAAAIAAAANAPj/AAAAAAIAAAANAPz/AAAAAAIAAAANAPv/AAAAAAIAAAAIAPn/AQAAAAcAAAAMAPr/AAASAAkAAAAMAAYAAAASAAkAAAAMAAcAAAASAAkAAAAMAAgAAAASAAkAAAAMAAkAAAASAAkAAAAMAAoAAAASAAkAAAALAAoAAAASAAkAAAAKAAoAAAASAAkAAAAJAAoAAAASAAkAAAAIAAoAAAASAAkAAAAHAAoAAAASAAkAAAAGAAoAAAASAAkAAAAFAAoAAAASAAkAAAAEAAoAAAASAAkAAAADAAoAAAASAAkAAAACAAoAAAASAAkAAAABAAoAAAASAAkAAAAAAAoAAAASAAkAAAD//woAAAASAAkAAAD+/woAAAASAAkAAAD9/woAAAASAAkAAAD8/woAAAASAAkAAAD7/woAAAASAAkAAAD6/woAAAASAAkAAAD5/woAAAASAAkAAAD4/woAAAASAAkAAAD3/woAAAASAAkAAAD2/woAAAASAAkAAAD1/woAAAASAAkAAAD0/woAAAASAAkAAADz/woAAAASAAkAAADz//n/AAASAAkAAADz//r/AAASAAkAAADz//v/AAASAAkAAADz//z/AAASAAkAAADz//3/AAASAAkAAADz//7/AAASAAkAAADz////AAASAAkAAADz/wAAAAASAAkAAADz/wEAAAASAAkAAADz/wIAAAASAAkAAADz/wMAAAASAAkAAADz/wQAAAASAAkAAADz/wUAAAASAAkAAADz/wYAAAASAAkAAADz/wcAAAASAAkAAADz/wgAAAASAAkAAADz/wkAAAASAAkAAAA=") @@ -834,15 +855,6 @@ text = "Green Ninja" [node name="Switch" parent="ObstacleLayer" unique_id=78052327 instance=ExtResource("8_njm7v")] position = Vector2(-8, -26) -[node name="TreasureChest" parent="ObstacleLayer" unique_id=2069908436 instance=ExtResource("9_bkvnf")] -position = Vector2(-41, -19) - -[node name="TreasureChest2" parent="ObstacleLayer" unique_id=1691247799 instance=ExtResource("9_bkvnf")] -position = Vector2(15, -19) - -[node name="TreasureChest3" parent="ObstacleLayer" unique_id=267919049 instance=ExtResource("9_bkvnf")] -position = Vector2(-79, -19) - [node name="SlimeEnemy" parent="ObstacleLayer" unique_id=384578683 instance=ExtResource("10_6dkqd")] position = Vector2(-77, 11) @@ -850,23 +862,12 @@ position = Vector2(-77, 11) position = Vector2(137, -107) collision_mask = 1 -[node name="Player" parent="." unique_id=1991398375 instance=ExtResource("1_2p8i2")] -push_strength = 100 - -[node name="Camera2D" type="Camera2D" parent="Player" unique_id=1335060572] -zoom = Vector2(5, 5) -limit_left = -192 -limit_top = -144 -limit_right = 192 -limit_bottom = 160 - [node name="LockedDoor" parent="." unique_id=964088255 instance=ExtResource("6_elpgg")] position = Vector2(137, -107) script = ExtResource("7_nr542") [node name="Block" parent="." unique_id=2096944035 instance=ExtResource("6_12ovb")] position = Vector2(163, -75) -lock_rotation = true [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="." unique_id=1027726927] process_mode = 3 @@ -875,6 +876,9 @@ volume_db = -5.0 autoplay = true parameters/looping = true +[node name="Block2" parent="." unique_id=1465438737 instance=ExtResource("6_12ovb")] +position = Vector2(30, 2) + [connection signal="pressed" from="PuzzleButton" to="LockedDoor" method="_on_puzzle_button_pressed"] [connection signal="unpressed" from="PuzzleButton" to="LockedDoor" method="_on_puzzle_button_unpressed"] diff --git a/Scenes/NPC/npc.tscn b/Scenes/NPC/npc.tscn index 815dd02..5c3aa18 100644 --- a/Scenes/NPC/npc.tscn +++ b/Scenes/NPC/npc.tscn @@ -8,7 +8,7 @@ [ext_resource type="AudioStream" uid="uid://kxkws5kmf3ru" path="res://Ninja Adventure - Asset Pack/Sounds/Game/Voice4.wav" id="6_fqw72"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_chgu2"] -size = Vector2(14, 13) +size = Vector2(14, 9) [sub_resource type="AtlasTexture" id="AtlasTexture_chgu2"] atlas = ExtResource("1_3am0f") @@ -26,7 +26,7 @@ process_mode = 3 script = ExtResource("1_bjna2") [node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1581401512] -position = Vector2(0, 0.5) +position = Vector2(0, 2.5) shape = SubResource("RectangleShape2D_chgu2") [node name="Sprite2D" type="Sprite2D" parent="." unique_id=2127209036] @@ -36,20 +36,18 @@ texture = SubResource("AtlasTexture_chgu2") visible = false [node name="DialogBoxTexture" type="TextureRect" parent="CanvasLayer" unique_id=2039853714] -offset_left = 428.0 -offset_top = 498.0 -offset_right = 728.0 -offset_bottom = 556.0 -offset_transform_enabled = true -offset_transform_scale = Vector2(3.7, 3.7) +offset_left = 14.206848 +offset_top = 418.0 +offset_right = 991.79315 +offset_bottom = 607.0 texture = ExtResource("3_0s07e") [node name="NPCIcon" type="TextureRect" parent="CanvasLayer/DialogBoxTexture" unique_id=1385209557 groups=["interactable"]] layout_mode = 0 -offset_left = 5.0 -offset_top = 14.0 -offset_right = 45.0 -offset_bottom = 54.0 +offset_left = 22.793152 +offset_top = 47.0 +offset_right = 142.79315 +offset_bottom = 167.0 texture = ExtResource("4_aqj1y") [node name="DialogLabel" type="Label" parent="CanvasLayer" unique_id=439922902] diff --git a/Scenes/Player/player.gd b/Scenes/Player/player.gd index 2e6ab6d..2aacda9 100644 --- a/Scenes/Player/player.gd +++ b/Scenes/Player/player.gd @@ -1,3 +1,4 @@ +@icon("res://addons/at-icons/control/person_body.svg") extends CharacterBody2D class_name Player diff --git a/Scenes/Player/player.tscn b/Scenes/Player/player.tscn index 2fc26a5..12e4963 100644 --- a/Scenes/Player/player.tscn +++ b/Scenes/Player/player.tscn @@ -99,7 +99,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_eksi1") }], -"loop": 1, +"loop": true, "name": &"attack_down", "speed": 5.0 }, { @@ -107,7 +107,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_jincj") }], -"loop": 1, +"loop": true, "name": &"attack_left", "speed": 5.0 }, { @@ -115,7 +115,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_rqdc0") }], -"loop": 1, +"loop": true, "name": &"attack_right", "speed": 5.0 }, { @@ -123,7 +123,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_qr1w5") }], -"loop": 1, +"loop": true, "name": &"attack_up", "speed": 5.0 }, { @@ -131,7 +131,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_ythyg") }], -"loop": 1, +"loop": true, "name": &"death", "speed": 5.0 }, { @@ -148,7 +148,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_06tpx") }], -"loop": 1, +"loop": true, "name": &"move_down", "speed": 6.0 }, { @@ -165,7 +165,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_dd0ac") }], -"loop": 1, +"loop": true, "name": &"move_left", "speed": 6.0 }, { @@ -182,7 +182,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_jhyir") }], -"loop": 1, +"loop": true, "name": &"move_right", "speed": 6.0 }, { @@ -199,7 +199,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_ks1b7") }], -"loop": 1, +"loop": true, "name": &"move_up", "speed": 6.0 }] @@ -239,7 +239,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_hnuln") }], -"loop": 1, +"loop": true, "name": &"0_hp", "speed": 5.0 }, { @@ -247,7 +247,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_aqm4k") }], -"loop": 1, +"loop": true, "name": &"1_hp", "speed": 5.0 }, { @@ -255,7 +255,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_rcvs5") }], -"loop": 1, +"loop": true, "name": &"2_hp", "speed": 5.0 }, { @@ -263,7 +263,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_h8ma5") }], -"loop": 1, +"loop": true, "name": &"3_hp", "speed": 5.0 }] diff --git a/Scenes/TreasureChest/treasure_chest.tscn b/Scenes/TreasureChest/treasure_chest.tscn index b1ed14c..72857b6 100644 --- a/Scenes/TreasureChest/treasure_chest.tscn +++ b/Scenes/TreasureChest/treasure_chest.tscn @@ -23,7 +23,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_2tkyh") }], -"loop": 1, +"loop": true, "name": &"closed", "speed": 5.0 }, { @@ -31,7 +31,7 @@ animations = [{ "duration": 1.0, "texture": SubResource("AtlasTexture_sdjdt") }], -"loop": 1, +"loop": true, "name": &"open", "speed": 5.0 }] diff --git a/project.godot b/project.godot index 50331ae..6a87f26 100644 --- a/project.godot +++ b/project.godot @@ -23,6 +23,15 @@ SceneManager="*uid://6txu74mchftj" window/stretch/mode="canvas_items" +[editor] + +version_control/plugin_name="GitPlugin" +version_control/autoload_on_startup=true + +[editor_plugins] + +enabled=PackedStringArray("res://addons/at-icons/plugin.cfg") + [global_group] wall="A wall tilemap layer"