initial commit

This commit is contained in:
Simo-Pekka Kerkelä 2025-07-11 00:14:08 +03:00
commit 35bb9bb38f
No known key found for this signature in database
46 changed files with 1243 additions and 0 deletions

75
Zombo.tscn Normal file
View file

@ -0,0 +1,75 @@
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Sprites/sprite-sheet.png" type="Texture" id=1]
[ext_resource path="res://Zombo.gd" type="Script" id=2]
[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
region = Rect2( 32, 32, 16, 16 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
region = Rect2( 0, 32, 16, 16 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 )
region = Rect2( 16, 32, 16, 16 )
[sub_resource type="SpriteFrames" id=4]
animations = [ {
"frames": [ SubResource( 1 ) ],
"loop": true,
"name": "side",
"speed": 5.0
}, {
"frames": [ SubResource( 2 ) ],
"loop": true,
"name": "down",
"speed": 5.0
}, {
"frames": [ SubResource( 3 ) ],
"loop": true,
"name": "up",
"speed": 5.0
} ]
[sub_resource type="CircleShape2D" id=5]
[sub_resource type="CircleShape2D" id=6]
radius = 227.001
[sub_resource type="CircleShape2D" id=7]
radius = 16.2195
[node name="Zombo" type="KinematicBody2D" groups=[
"enemy",
]]
script = ExtResource( 2 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 4 )
animation = "side"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 5 )
[node name="AggroArea" type="Area2D" parent="."]
monitorable = false
[node name="AggroRadius" type="CollisionShape2D" parent="AggroArea"]
shape = SubResource( 6 )
[node name="Look" type="RayCast2D" parent="."]
enabled = true
[node name="AttackArea" type="Area2D" parent="."]
[node name="AttackRadius" type="CollisionShape2D" parent="AttackArea"]
shape = SubResource( 7 )
[node name="StunTimer" type="Timer" parent="."]
wait_time = 0.5
one_shot = true
[connection signal="body_entered" from="AggroArea" to="." method="_on_AggroArea_body_entered"]
[connection signal="timeout" from="StunTimer" to="." method="_on_StunTimer_timeout"]