init: initial commit

This commit is contained in:
2026-03-30 22:45:29 +05:30
commit 11f928ce42
69 changed files with 2149 additions and 0 deletions

32
scenes/bush.tscn Normal file
View File

@@ -0,0 +1,32 @@
[gd_scene format=3 uid="uid://ba4lx4bpujr2s"]
[ext_resource type="Texture2D" uid="uid://dtdncmd6dus80" path="res://assets/sprites/world_tileset.png" id="1_lad4k"]
[sub_resource type="AtlasTexture" id="AtlasTexture_lad4k"]
atlas = ExtResource("1_lad4k")
region = Rect2(16, 64, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ehqem"]
atlas = ExtResource("1_lad4k")
region = Rect2(16, 80, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_tu87o"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_lad4k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ehqem")
}],
"loop": true,
"name": &"default",
"speed": 3.0
}]
[node name="Bush" type="Area2D" unique_id=746900817]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=58297154]
sprite_frames = SubResource("SpriteFrames_tu87o")
autoplay = "default"
frame_progress = 0.44974592

114
scenes/coin.tscn Normal file
View File

@@ -0,0 +1,114 @@
[gd_scene format=3 uid="uid://4y0iag1d8ktc"]
[ext_resource type="Script" uid="uid://ct437mnkqt5dw" path="res://scripts/coin.gd" id="1_i64fm"]
[ext_resource type="Texture2D" uid="uid://cu0kbp5sl3b0i" path="res://assets/sprites/coin.png" id="1_rwqht"]
[sub_resource type="AtlasTexture" id="AtlasTexture_i64fm"]
atlas = ExtResource("1_rwqht")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_11l1o"]
atlas = ExtResource("1_rwqht")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_d14el"]
atlas = ExtResource("1_rwqht")
region = Rect2(32, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_1ikuy"]
atlas = ExtResource("1_rwqht")
region = Rect2(48, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_wnlwo"]
atlas = ExtResource("1_rwqht")
region = Rect2(64, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_jig8b"]
atlas = ExtResource("1_rwqht")
region = Rect2(80, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_xmuha"]
atlas = ExtResource("1_rwqht")
region = Rect2(96, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_kfxoj"]
atlas = ExtResource("1_rwqht")
region = Rect2(112, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_jsmju"]
atlas = ExtResource("1_rwqht")
region = Rect2(128, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_s0mny"]
atlas = ExtResource("1_rwqht")
region = Rect2(144, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_7cc30"]
atlas = ExtResource("1_rwqht")
region = Rect2(160, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_rojmm"]
atlas = ExtResource("1_rwqht")
region = Rect2(176, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_ls27i"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_i64fm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_11l1o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_d14el")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1ikuy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wnlwo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jig8b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xmuha")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kfxoj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jsmju")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_s0mny")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7cc30")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rojmm")
}],
"loop": true,
"name": &"default",
"speed": 10.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_ssuvv"]
radius = 5.0
[node name="Coin" type="Area2D" unique_id=1276888927]
collision_mask = 2
script = ExtResource("1_i64fm")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1140117996]
sprite_frames = SubResource("SpriteFrames_ls27i")
autoplay = "default"
frame = 6
frame_progress = 0.47237945
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1460365858]
shape = SubResource("CircleShape2D_ssuvv")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]

303
scenes/game.tscn Normal file

File diff suppressed because one or more lines are too long

6
scenes/game_manager.tscn Normal file
View File

@@ -0,0 +1,6 @@
[gd_scene format=3 uid="uid://b2siel0e8h4ft"]
[ext_resource type="Script" uid="uid://bd0bxlq84buib" path="res://scripts/game_manager.gd" id="1_hwd4i"]
[node name="GameManager" type="Node" unique_id=566347249]
script = ExtResource("1_hwd4i")

80
scenes/hud.tscn Normal file
View File

@@ -0,0 +1,80 @@
[gd_scene format=3 uid="uid://p8lscf1t23sd"]
[ext_resource type="FontFile" uid="uid://jgv88f60q8tg" path="res://assets/fonts/PixelOperator8.ttf" id="1_ahhtf"]
[ext_resource type="Texture2D" uid="uid://cu0kbp5sl3b0i" path="res://assets/sprites/coin.png" id="2_oo0fn"]
[ext_resource type="Texture2D" uid="uid://s5i2m7twl2gl" path="res://assets/sprites/heart.png" id="3_5ysmq"]
[sub_resource type="AtlasTexture" id="AtlasTexture_6fi6k"]
atlas = ExtResource("2_oo0fn")
region = Rect2(0, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_uo2fv"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_6fi6k")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="AtlasTexture" id="AtlasTexture_5ysmq"]
atlas = ExtResource("3_5ysmq")
region = Rect2(0, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_6fi6k"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_5ysmq")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="HUD" type="CanvasLayer" unique_id=11989556]
[node name="Coins" type="Control" parent="." unique_id=479313734]
layout_mode = 3
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
grow_horizontal = 0
[node name="ScoreLabel" type="Label" parent="Coins" unique_id=813643822]
layout_mode = 0
offset_left = -51.0
offset_top = 30.99999
offset_right = -23.0
offset_bottom = 62.999992
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_fonts/font = ExtResource("1_ahhtf")
theme_override_font_sizes/font_size = 32
text = "0"
[node name="CoinIcon" type="AnimatedSprite2D" parent="Coins" unique_id=418262136]
position = Vector2(-79.5, 46.500015)
scale = Vector2(3.5625017, 3.5625017)
sprite_frames = SubResource("SpriteFrames_uo2fv")
[node name="Hearts" type="Control" parent="." unique_id=131241705]
layout_mode = 3
anchors_preset = 0
[node name="HeartsLabel" type="Label" parent="Hearts" unique_id=420448557]
layout_mode = 0
offset_left = 76.0
offset_top = 32.0
offset_right = 104.0
offset_bottom = 64.0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_fonts/font = ExtResource("1_ahhtf")
theme_override_font_sizes/font_size = 32
text = "0"
[node name="HeartIcon" type="AnimatedSprite2D" parent="Hearts" unique_id=381569197]
position = Vector2(48.000004, 44.000004)
scale = Vector2(3.5625017, 3.5625017)
sprite_frames = SubResource("SpriteFrames_6fi6k")

14
scenes/killzone.tscn Normal file
View File

@@ -0,0 +1,14 @@
[gd_scene format=3 uid="uid://btvetxn3a0nfn"]
[ext_resource type="Script" uid="uid://dt7a05678o5nm" path="res://scripts/killzone.gd" id="1_xlapc"]
[node name="Killzone" type="Area2D" unique_id=528319914]
collision_mask = 2
script = ExtResource("1_xlapc")
[node name="Timer" type="Timer" parent="." unique_id=2059074830]
wait_time = 0.6
one_shot = true
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]

167
scenes/main_menu.tscn Normal file

File diff suppressed because one or more lines are too long

20
scenes/platform.tscn Normal file
View File

@@ -0,0 +1,20 @@
[gd_scene format=3 uid="uid://dqa01xdajdmpt"]
[ext_resource type="Texture2D" uid="uid://un1kmh0dbmi4" path="res://assets/sprites/platforms.png" id="1_ba0x2"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_nlgqw"]
size = Vector2(32, 9)
[node name="Platform" type="AnimatableBody2D" unique_id=998629472]
position = Vector2(16, 8)
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1199438645]
position = Vector2(0, -4)
texture = ExtResource("1_ba0x2")
region_enabled = true
region_rect = Rect2(16, 0, 32, 9)
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=2070236199]
position = Vector2(0, -4)
shape = SubResource("RectangleShape2D_nlgqw")
one_way_collision = true

176
scenes/player.tscn Normal file
View File

@@ -0,0 +1,176 @@
[gd_scene format=3 uid="uid://b3hjlgmu1lcvb"]
[ext_resource type="Texture2D" uid="uid://cfsd4p82x83g" path="res://assets/sprites/knight.png" id="1_3vyb7"]
[ext_resource type="Script" uid="uid://bhqlgaeisqull" path="res://scripts/player.gd" id="1_g2els"]
[sub_resource type="AtlasTexture" id="AtlasTexture_g2els"]
atlas = ExtResource("1_3vyb7")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_qhqgy"]
atlas = ExtResource("1_3vyb7")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_dqkch"]
atlas = ExtResource("1_3vyb7")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_qlg0r"]
atlas = ExtResource("1_3vyb7")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_tuyoq"]
atlas = ExtResource("1_3vyb7")
region = Rect2(0, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_fjrip"]
atlas = ExtResource("1_3vyb7")
region = Rect2(32, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_smehm"]
atlas = ExtResource("1_3vyb7")
region = Rect2(64, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_ur7pv"]
atlas = ExtResource("1_3vyb7")
region = Rect2(96, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_y4r1p"]
atlas = ExtResource("1_3vyb7")
region = Rect2(128, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_d2wvv"]
atlas = ExtResource("1_3vyb7")
region = Rect2(160, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_3v2ag"]
atlas = ExtResource("1_3vyb7")
region = Rect2(192, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_jej6c"]
atlas = ExtResource("1_3vyb7")
region = Rect2(224, 64, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_f1ej7"]
atlas = ExtResource("1_3vyb7")
region = Rect2(0, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_oprun"]
atlas = ExtResource("1_3vyb7")
region = Rect2(32, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_a8ls1"]
atlas = ExtResource("1_3vyb7")
region = Rect2(64, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_qfm1y"]
atlas = ExtResource("1_3vyb7")
region = Rect2(96, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_fulsm"]
atlas = ExtResource("1_3vyb7")
region = Rect2(128, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_4r5pv"]
atlas = ExtResource("1_3vyb7")
region = Rect2(160, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_60mlk"]
atlas = ExtResource("1_3vyb7")
region = Rect2(192, 96, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_i4ail"]
atlas = ExtResource("1_3vyb7")
region = Rect2(224, 96, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_tuyoq"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_g2els")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qhqgy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dqkch")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qlg0r")
}],
"loop": true,
"name": &"idle",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_tuyoq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fjrip")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_smehm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ur7pv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y4r1p")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_d2wvv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3v2ag")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jej6c")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f1ej7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_oprun")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_a8ls1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qfm1y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fulsm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4r5pv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_60mlk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_i4ail")
}],
"loop": true,
"name": &"run",
"speed": 10.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_fjrip"]
radius = 5.0
[node name="Player" type="CharacterBody2D" unique_id=1200467760]
collision_layer = 2
script = ExtResource("1_g2els")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=218937888]
position = Vector2(0, -12)
sprite_frames = SubResource("SpriteFrames_tuyoq")
animation = &"idle"
autoplay = "idle"
frame = 2
frame_progress = 0.93296117
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=2039243727]
position = Vector2(0, -5)
shape = SubResource("CircleShape2D_fjrip")

32
scenes/yellow_bush.tscn Normal file
View File

@@ -0,0 +1,32 @@
[gd_scene format=3 uid="uid://c5tnnrq7mjvis"]
[ext_resource type="Texture2D" uid="uid://dtdncmd6dus80" path="res://assets/sprites/world_tileset.png" id="1_vmkky"]
[sub_resource type="AtlasTexture" id="AtlasTexture_vmkky"]
atlas = ExtResource("1_vmkky")
region = Rect2(80, 112, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_rlqir"]
atlas = ExtResource("1_vmkky")
region = Rect2(80, 128, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_tu87o"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_vmkky")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rlqir")
}],
"loop": true,
"name": &"default",
"speed": 3.0
}]
[node name="Bush" type="Area2D" unique_id=746900817]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=58297154]
sprite_frames = SubResource("SpriteFrames_tu87o")
autoplay = "default"
frame_progress = 0.44974592