Adds Chicken Enemy
Animation Tree - In-Progress
@@ -0,0 +1,3 @@
|
||||
source_md5="1a0b324bc2c06c132f6e17d509928a34"
|
||||
dest_md5="3a7a5d1fabd1d2c52a32f59b751cfd7c"
|
||||
|
||||
BIN
.import/Hit (32x34).png-732fd1d0690b71ac82d22221aba2f5ad.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="540724fcaccd692f5d3adb169fa8db2b"
|
||||
dest_md5="662a6fbffedd8a07cca5f23aca90c40b"
|
||||
|
||||
BIN
.import/Idle (32x34).png-e4e3d07dda254934514d8a3ce37efdd6.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="58190fdf957eaba5b783bbe2df837c2e"
|
||||
dest_md5="5ce83adf73743be95b56eed796bd3355"
|
||||
|
||||
BIN
.import/Run (32x34).png-46fb23496f7fbe5ff034989409629207.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="29897c72fce5d6401ba5f85133a1c9e7"
|
||||
dest_md5="388f0c394ec4de9bdb8b5455861704a7"
|
||||
|
||||
BIN
.import/chicken_hit1.png-8d41f4f93553e79ada71205a67aa00c7.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="29897c72fce5d6401ba5f85133a1c9e7"
|
||||
dest_md5="388f0c394ec4de9bdb8b5455861704a7"
|
||||
|
||||
BIN
.import/chicken_hit2.png-04aa05a079f927bf40d35ea4d3dc09cc.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="7dccbf5557711b7dfd10576923243fb6"
|
||||
dest_md5="74f65a0c0d9c03f9ddf1d71c1846e06b"
|
||||
|
||||
BIN
.import/chicken_hit3.png-c18cae0836c1b0b01a43f89d64367a7a.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="705b21d1ffbef326646fdfa0b84eead7"
|
||||
dest_md5="68edc02ae8bd3035cba2cb29b65491fc"
|
||||
|
||||
BIN
.import/chicken_hit4.png-0c41a5a4cd3597696684714bffaa7347.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="7bd1abe189aedff759525a3a889e3744"
|
||||
dest_md5="5d4c2da9b8e6dc60815132eb0ad7f8a1"
|
||||
|
||||
BIN
.import/chicken_hit5.png-a69586c36c55262851e56cbedb0495d9.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="dc144920cc3d1fe57fe3534c4f86ef26"
|
||||
dest_md5="6a0a80857dc5dc9fe239d0850eff315f"
|
||||
|
||||
BIN
.import/chicken_idle1.png-bae799c1775d8303142102038839413b.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="f67ab8fdd92c127d9f9d89adae6fec2b"
|
||||
dest_md5="ef6dd209414c7c7706841a37fa099dd6"
|
||||
|
||||
BIN
.import/chicken_idle10.png-8e142ad65369232903864ee38abc82cc.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="f67ab8fdd92c127d9f9d89adae6fec2b"
|
||||
dest_md5="ef6dd209414c7c7706841a37fa099dd6"
|
||||
|
||||
BIN
.import/chicken_idle11.png-54efe339c39d739c5ed4853427a96c4b.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="f67ab8fdd92c127d9f9d89adae6fec2b"
|
||||
dest_md5="ef6dd209414c7c7706841a37fa099dd6"
|
||||
|
||||
BIN
.import/chicken_idle12.png-eb9b7dafe5b7f9b1dc9e1ad382c1a982.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="2a26c1102516b0af9cae3abd11f0256b"
|
||||
dest_md5="d6266903ba169bbc49812f0c0f1a8ab0"
|
||||
|
||||
BIN
.import/chicken_idle13.png-529b2cd3b1d90c2efe445f6d9d676d1b.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="7af82bdb15aa7cfd02d6311de2af7480"
|
||||
dest_md5="e14e12859c5378ee323596194b5e71ce"
|
||||
|
||||
BIN
.import/chicken_idle2.png-026e3ab3763f57e87e25326f5ce7b13d.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="66022d5296e9905aa1ce65f6e6791a8e"
|
||||
dest_md5="5d7eefcfc6ddb3cc0a420ac77f571720"
|
||||
|
||||
BIN
.import/chicken_idle3.png-efce26f584e15ddfb66ab7a57efdb9d1.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="e09c414faf4b9add6321674864a8cd0b"
|
||||
dest_md5="1501d4cf035e4c4cbd13fe95c23808ef"
|
||||
|
||||
BIN
.import/chicken_idle4.png-0c5ca41783656381298cf5d4b1cdf0f6.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="e09c414faf4b9add6321674864a8cd0b"
|
||||
dest_md5="1501d4cf035e4c4cbd13fe95c23808ef"
|
||||
|
||||
BIN
.import/chicken_idle5.png-73905222827dd5a9b371a320b43d7c0c.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="b2f4638c5bba5d9ec944dfac7e50b316"
|
||||
dest_md5="1e79734f945c12882fa260b32981c16f"
|
||||
|
||||
BIN
.import/chicken_idle6.png-0680476a27b5b2d4629f33338c0edfa5.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="2546294fc23c81818c7dec172b878711"
|
||||
dest_md5="50a4cc22bbabbd3022c2501311db6ca7"
|
||||
|
||||
BIN
.import/chicken_idle7.png-00503ca2f8f4a9e25229c37bbdc64fd8.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="d15830d4bcbebede64e2b09aec3c80bf"
|
||||
dest_md5="73654e8de1df6a71304ef57ff3520cbb"
|
||||
|
||||
BIN
.import/chicken_idle8.png-e6cedb50308721c91c5fd5675119fceb.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="776075da210f2dcfd7acd42bd9782669"
|
||||
dest_md5="1c78edfc41c55fdbcc6287dcf56ebb51"
|
||||
|
||||
BIN
.import/chicken_idle9.png-f9ded328a4510f13a3a31f9d406ff1cd.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="600c532d62991cd2b4295637c04a922a"
|
||||
dest_md5="be96ade8fe88ded880b96aa53d755d25"
|
||||
|
||||
BIN
.import/chicken_run1.png-a343d1f81fa023e053955eeb272a0ad9.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="ddd078569c5c25a3a627947af9e252a5"
|
||||
dest_md5="d63c19207617ec5269a24742edaef77c"
|
||||
|
||||
BIN
.import/chicken_run10.png-e71d8caf63a5acd00282ff123b386ec4.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="ea2fd449c7749291520de35c0ad54b24"
|
||||
dest_md5="b31d6da8aca36fc825d3bf3b6f5d1a6c"
|
||||
|
||||
BIN
.import/chicken_run11.png-f01ca12a009d6128e841e21383757dab.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="89b1b07a8ee778a55dbe5da973b9523a"
|
||||
dest_md5="b061ea3809c375e5e5dda7bacb6a218d"
|
||||
|
||||
BIN
.import/chicken_run12.png-29d6cf214af37cbbbf14a7e9faf00437.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="34609517698b90a022fc03d23155f93d"
|
||||
dest_md5="4044b8b40f0ecf7df358f970904f4997"
|
||||
|
||||
BIN
.import/chicken_run13.png-c3f3a4af3be747e1158feb427bd4d1aa.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="34609517698b90a022fc03d23155f93d"
|
||||
dest_md5="4044b8b40f0ecf7df358f970904f4997"
|
||||
|
||||
BIN
.import/chicken_run14.png-d2f26a0657ea27a900295a395ac66032.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="e784321898995b10dd272bc3d57751e2"
|
||||
dest_md5="9a62fd96fe23fa3bd02a85675fcdecc3"
|
||||
|
||||
BIN
.import/chicken_run2.png-f280e81134e7fa7198c63645279a59b0.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="e784321898995b10dd272bc3d57751e2"
|
||||
dest_md5="9a62fd96fe23fa3bd02a85675fcdecc3"
|
||||
|
||||
BIN
.import/chicken_run3.png-042f05b993093f7ec103984f43a19714.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="fd82628b41ed18a081c95d40379165ae"
|
||||
dest_md5="2625bda7826163aa02482bffddb69700"
|
||||
|
||||
BIN
.import/chicken_run4.png-efdeabb441df21ba19cfdbacb1e3cb70.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="f11760d810fc7dc8d0e44cbe28d98768"
|
||||
dest_md5="2192dee2bf3d14b41f35ac8f5dc986a0"
|
||||
|
||||
BIN
.import/chicken_run5.png-5405930f206575bde5d4ae7da0f7df71.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="77a4e70c24c254aa09818baac52de633"
|
||||
dest_md5="d9b7a6d978f6db7ac2730ba6d28bb0a4"
|
||||
|
||||
BIN
.import/chicken_run6.png-a2f278c6d9ab268121721da4b62a75e9.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="77a4e70c24c254aa09818baac52de633"
|
||||
dest_md5="d9b7a6d978f6db7ac2730ba6d28bb0a4"
|
||||
|
||||
BIN
.import/chicken_run7.png-4e91a131add44f26fc62fdbba1b2250c.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="feb5a314443fdefce01cc43f23e14ac5"
|
||||
dest_md5="dc62be0201eb555bf45d230b99f23ef2"
|
||||
|
||||
BIN
.import/chicken_run8.png-f22de58052feb8d76ec304b61927f371.stex
Normal file
@@ -0,0 +1,3 @@
|
||||
source_md5="ddd078569c5c25a3a627947af9e252a5"
|
||||
dest_md5="d63c19207617ec5269a24742edaef77c"
|
||||
|
||||
BIN
.import/chicken_run9.png-99c6ca34d63baafd6fbb44c7d5e43cc3.stex
Normal file
@@ -60,5 +60,4 @@ anims/idle = SubResource( 3 )
|
||||
stream = ExtResource( 3 )
|
||||
|
||||
[connection signal="body_entered" from="Sprite/Area2D" to="." method="_on_Area2D_body_entered"]
|
||||
[connection signal="body_exited" from="Sprite/Area2D" to="." method="_on_Area2D_body_exited"]
|
||||
[connection signal="finished" from="pickup" to="." method="_on_pickup_finished"]
|
||||
|
||||
@@ -1,105 +0,0 @@
|
||||
[gd_scene load_steps=47 format=2]
|
||||
|
||||
[ext_resource path="res://pinkman/idle/idle7.png" type="Texture" id=1]
|
||||
[ext_resource path="res://pinkman/double-jump/double_jump1.png" type="Texture" id=2]
|
||||
[ext_resource path="res://pinkman/double-jump/double_jump5.png" type="Texture" id=3]
|
||||
[ext_resource path="res://pinkman/idle/idle11.png" type="Texture" id=4]
|
||||
[ext_resource path="res://pinkman/idle/idle8.png" type="Texture" id=5]
|
||||
[ext_resource path="res://pinkman/idle/idle10.png" type="Texture" id=6]
|
||||
[ext_resource path="res://pinkman/double-jump/double_jump3.png" type="Texture" id=7]
|
||||
[ext_resource path="res://pinkman/idle/idle9.png" type="Texture" id=8]
|
||||
[ext_resource path="res://pinkman/double-jump/double_jump6.png" type="Texture" id=9]
|
||||
[ext_resource path="res://pinkman/double-jump/double_jump2.png" type="Texture" id=10]
|
||||
[ext_resource path="res://pinkman/double-jump/double_jump4.png" type="Texture" id=11]
|
||||
[ext_resource path="res://pinkman/idle/idle6.png" type="Texture" id=12]
|
||||
[ext_resource path="res://pinkman/idle/idle1.png" type="Texture" id=13]
|
||||
[ext_resource path="res://pinkman/idle/idle2.png" type="Texture" id=14]
|
||||
[ext_resource path="res://pinkman/idle/idle3.png" type="Texture" id=15]
|
||||
[ext_resource path="res://pinkman/idle/idle4.png" type="Texture" id=16]
|
||||
[ext_resource path="res://pinkman/idle/idle5.png" type="Texture" id=17]
|
||||
[ext_resource path="res://pinkman/wall-jump/wall-jump3.png" type="Texture" id=18]
|
||||
[ext_resource path="res://pinkman/wall-jump/wall-jump5.png" type="Texture" id=19]
|
||||
[ext_resource path="res://pinkman/wall-jump/wall-jump4.png" type="Texture" id=20]
|
||||
[ext_resource path="res://pinkman/run/run9.png" type="Texture" id=21]
|
||||
[ext_resource path="res://pinkman/run/run6.png" type="Texture" id=22]
|
||||
[ext_resource path="res://pinkman/hit/hit2.png" type="Texture" id=23]
|
||||
[ext_resource path="res://pinkman/run/run7.png" type="Texture" id=24]
|
||||
[ext_resource path="res://pinkman/hit/hit6.png" type="Texture" id=25]
|
||||
[ext_resource path="res://pinkman/run/run11.png" type="Texture" id=26]
|
||||
[ext_resource path="res://pinkman/wall-jump/wall-jump1.png" type="Texture" id=27]
|
||||
[ext_resource path="res://pinkman/jump/jump.png" type="Texture" id=28]
|
||||
[ext_resource path="res://pinkman/wall-jump/wall-jump2.png" type="Texture" id=29]
|
||||
[ext_resource path="res://pinkman/fall/fall.png" type="Texture" id=30]
|
||||
[ext_resource path="res://pinkman/hit/hit1.png" type="Texture" id=31]
|
||||
[ext_resource path="res://pinkman/run/run3.png" type="Texture" id=32]
|
||||
[ext_resource path="res://pinkman/hit/hit4.png" type="Texture" id=33]
|
||||
[ext_resource path="res://pinkman/run/run10.png" type="Texture" id=34]
|
||||
[ext_resource path="res://pinkman/run/run5.png" type="Texture" id=35]
|
||||
[ext_resource path="res://pinkman/run/run12.png" type="Texture" id=36]
|
||||
[ext_resource path="res://pinkman/hit/hit5.png" type="Texture" id=37]
|
||||
[ext_resource path="res://pinkman/run/run4.png" type="Texture" id=38]
|
||||
[ext_resource path="res://pinkman/run/run1.png" type="Texture" id=39]
|
||||
[ext_resource path="res://pinkman/hit/hit3.png" type="Texture" id=40]
|
||||
[ext_resource path="res://pinkman/hit/hit7.png" type="Texture" id=41]
|
||||
[ext_resource path="res://pinkman/run/run2.png" type="Texture" id=42]
|
||||
[ext_resource path="res://pinkman/run/run8.png" type="Texture" id=43]
|
||||
[ext_resource path="res://entities/Player.gd" type="Script" id=44]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=2]
|
||||
height = 8.0
|
||||
|
||||
[sub_resource type="SpriteFrames" id=1]
|
||||
animations = [ {
|
||||
"frames": [ ExtResource( 13 ), ExtResource( 14 ), ExtResource( 15 ), ExtResource( 16 ), ExtResource( 17 ), ExtResource( 12 ), ExtResource( 1 ), ExtResource( 5 ), ExtResource( 8 ), ExtResource( 6 ), ExtResource( 4 ) ],
|
||||
"loop": true,
|
||||
"name": "idle",
|
||||
"speed": 25.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 27 ), ExtResource( 29 ), ExtResource( 18 ), ExtResource( 20 ), ExtResource( 19 ) ],
|
||||
"loop": true,
|
||||
"name": "wall_jump",
|
||||
"speed": 25.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 30 ) ],
|
||||
"loop": true,
|
||||
"name": "fall",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 2 ), ExtResource( 10 ), ExtResource( 7 ), ExtResource( 11 ), ExtResource( 3 ), ExtResource( 9 ) ],
|
||||
"loop": true,
|
||||
"name": "double_jump",
|
||||
"speed": 25.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 31 ), ExtResource( 23 ), ExtResource( 40 ), ExtResource( 33 ), ExtResource( 37 ), ExtResource( 25 ), ExtResource( 41 ) ],
|
||||
"loop": true,
|
||||
"name": "hit",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 28 ) ],
|
||||
"loop": true,
|
||||
"name": "jump",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 39 ), ExtResource( 42 ), ExtResource( 32 ), ExtResource( 38 ), ExtResource( 35 ), ExtResource( 22 ), ExtResource( 24 ), ExtResource( 43 ), ExtResource( 21 ), ExtResource( 34 ), ExtResource( 26 ), ExtResource( 36 ) ],
|
||||
"loop": true,
|
||||
"name": "run",
|
||||
"speed": 25.0
|
||||
} ]
|
||||
|
||||
[node name="Player" type="KinematicBody2D"]
|
||||
z_index = 1
|
||||
script = ExtResource( 44 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2( 0, 2 )
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2( 0, 2 )
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
frames = SubResource( 1 )
|
||||
animation = "idle"
|
||||
BIN
entities/chicken/Hit (32x34).png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
35
entities/chicken/Hit (32x34).png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/Hit (32x34).png-732fd1d0690b71ac82d22221aba2f5ad.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/chicken/Hit (32x34).png"
|
||||
dest_files=[ "res://.import/Hit (32x34).png-732fd1d0690b71ac82d22221aba2f5ad.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
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
entities/chicken/Idle (32x34).png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
35
entities/chicken/Idle (32x34).png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/Idle (32x34).png-e4e3d07dda254934514d8a3ce37efdd6.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/chicken/Idle (32x34).png"
|
||||
dest_files=[ "res://.import/Idle (32x34).png-e4e3d07dda254934514d8a3ce37efdd6.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
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
entities/chicken/Run (32x34).png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
35
entities/chicken/Run (32x34).png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/Run (32x34).png-46fb23496f7fbe5ff034989409629207.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/chicken/Run (32x34).png"
|
||||
dest_files=[ "res://.import/Run (32x34).png-46fb23496f7fbe5ff034989409629207.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
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
26
entities/chicken/chicken.gd
Normal file
@@ -0,0 +1,26 @@
|
||||
extends KinematicBody2D
|
||||
const UP = Vector2(0, -1)
|
||||
const GRAVITY = 1200
|
||||
const SPEED = 200
|
||||
const health = 10
|
||||
var motion = Vector2()
|
||||
var left = Vector2(-1, 0)
|
||||
var right = Vector2(1, 0)
|
||||
var direction = left
|
||||
onready var sprite = $AnimatedSprite
|
||||
func _physics_process(delta):
|
||||
motion.y += GRAVITY * delta
|
||||
motion.x = direction.x * SPEED
|
||||
motion = move_and_slide(motion, UP)
|
||||
$AnimatedSprite.play("run")
|
||||
if is_on_wall():
|
||||
if direction == left:
|
||||
sprite.flip_h = true
|
||||
direction = right
|
||||
elif direction == right:
|
||||
sprite.flip_h = false
|
||||
direction = left
|
||||
for index in get_slide_count():
|
||||
var collision = get_slide_collision(index)
|
||||
if collision.collider.is_in_group("player"):
|
||||
SignalBus.emit_signal("on_hit",health)
|
||||
76
entities/chicken/chicken.tscn
Normal file
@@ -0,0 +1,76 @@
|
||||
[gd_scene load_steps=37 format=2]
|
||||
|
||||
[ext_resource path="res://entities/chicken/hit/chicken_hit2.png" type="Texture" id=1]
|
||||
[ext_resource path="res://entities/chicken/idle/chicken_idle1.png" type="Texture" id=2]
|
||||
[ext_resource path="res://entities/chicken/idle/chicken_idle7.png" type="Texture" id=3]
|
||||
[ext_resource path="res://entities/chicken/idle/chicken_idle2.png" type="Texture" id=4]
|
||||
[ext_resource path="res://entities/chicken/hit/chicken_hit3.png" type="Texture" id=5]
|
||||
[ext_resource path="res://entities/chicken/hit/chicken_hit4.png" type="Texture" id=6]
|
||||
[ext_resource path="res://entities/chicken/idle/chicken_idle4.png" type="Texture" id=7]
|
||||
[ext_resource path="res://entities/chicken/idle/chicken_idle11.png" type="Texture" id=8]
|
||||
[ext_resource path="res://entities/chicken/idle/chicken_idle8.png" type="Texture" id=9]
|
||||
[ext_resource path="res://entities/chicken/idle/chicken_idle3.png" type="Texture" id=10]
|
||||
[ext_resource path="res://entities/chicken/idle/chicken_idle6.png" type="Texture" id=11]
|
||||
[ext_resource path="res://entities/chicken/idle/chicken_idle9.png" type="Texture" id=12]
|
||||
[ext_resource path="res://entities/chicken/idle/chicken_idle5.png" type="Texture" id=13]
|
||||
[ext_resource path="res://entities/chicken/idle/chicken_idle10.png" type="Texture" id=14]
|
||||
[ext_resource path="res://entities/chicken/idle/chicken_idle13.png" type="Texture" id=15]
|
||||
[ext_resource path="res://entities/chicken/idle/chicken_idle12.png" type="Texture" id=16]
|
||||
[ext_resource path="res://entities/chicken/hit/chicken_hit1.png" type="Texture" id=17]
|
||||
[ext_resource path="res://entities/chicken/hit/chicken_hit5.png" type="Texture" id=18]
|
||||
[ext_resource path="res://entities/chicken/run/chicken_run4.png" type="Texture" id=19]
|
||||
[ext_resource path="res://entities/chicken/run/chicken_run5.png" type="Texture" id=20]
|
||||
[ext_resource path="res://entities/chicken/run/chicken_run7.png" type="Texture" id=21]
|
||||
[ext_resource path="res://entities/chicken/run/chicken_run12.png" type="Texture" id=22]
|
||||
[ext_resource path="res://entities/chicken/run/chicken_run1.png" type="Texture" id=23]
|
||||
[ext_resource path="res://entities/chicken/run/chicken_run11.png" type="Texture" id=24]
|
||||
[ext_resource path="res://entities/chicken/run/chicken_run3.png" type="Texture" id=25]
|
||||
[ext_resource path="res://entities/chicken/run/chicken_run6.png" type="Texture" id=26]
|
||||
[ext_resource path="res://entities/chicken/run/chicken_run8.png" type="Texture" id=27]
|
||||
[ext_resource path="res://entities/chicken/run/chicken_run9.png" type="Texture" id=28]
|
||||
[ext_resource path="res://entities/chicken/run/chicken_run13.png" type="Texture" id=29]
|
||||
[ext_resource path="res://entities/chicken/run/chicken_run2.png" type="Texture" id=30]
|
||||
[ext_resource path="res://entities/chicken/run/chicken_run10.png" type="Texture" id=31]
|
||||
[ext_resource path="res://entities/chicken/run/chicken_run14.png" type="Texture" id=32]
|
||||
[ext_resource path="res://entities/chicken/chicken.gd" type="Script" id=33]
|
||||
|
||||
[sub_resource type="SpriteFrames" id=1]
|
||||
animations = [ {
|
||||
"frames": [ ExtResource( 2 ), ExtResource( 4 ), ExtResource( 10 ), ExtResource( 7 ), ExtResource( 13 ), ExtResource( 11 ), ExtResource( 3 ), ExtResource( 9 ), ExtResource( 12 ), ExtResource( 14 ), ExtResource( 8 ), ExtResource( 16 ), ExtResource( 15 ) ],
|
||||
"loop": true,
|
||||
"name": "idle",
|
||||
"speed": 25.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 17 ), ExtResource( 1 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 18 ) ],
|
||||
"loop": true,
|
||||
"name": "hit",
|
||||
"speed": 25.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 23 ), ExtResource( 30 ), ExtResource( 25 ), ExtResource( 19 ), ExtResource( 20 ), ExtResource( 26 ), ExtResource( 21 ), ExtResource( 27 ), ExtResource( 28 ), ExtResource( 31 ), ExtResource( 24 ), ExtResource( 22 ), ExtResource( 29 ), ExtResource( 32 ) ],
|
||||
"loop": true,
|
||||
"name": "run",
|
||||
"speed": 25.0
|
||||
} ]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=3]
|
||||
extents = Vector2( 13, 14.5 )
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=2]
|
||||
extents = Vector2( 13, 14.5 )
|
||||
|
||||
[node name="Chicken" type="KinematicBody2D"]
|
||||
script = ExtResource( 33 )
|
||||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
frames = SubResource( 1 )
|
||||
animation = "run"
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="AnimatedSprite"]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="AnimatedSprite/Area2D"]
|
||||
position = Vector2( 0, 0.5 )
|
||||
shape = SubResource( 3 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2( 0, 0.5 )
|
||||
shape = SubResource( 2 )
|
||||
BIN
entities/chicken/hit/chicken_hit1.png
Normal file
|
After Width: | Height: | Size: 247 B |
35
entities/chicken/hit/chicken_hit1.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/chicken_hit1.png-8d41f4f93553e79ada71205a67aa00c7.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/chicken/hit/chicken_hit1.png"
|
||||
dest_files=[ "res://.import/chicken_hit1.png-8d41f4f93553e79ada71205a67aa00c7.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
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
entities/chicken/hit/chicken_hit2.png
Normal file
|
After Width: | Height: | Size: 247 B |
35
entities/chicken/hit/chicken_hit2.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/chicken_hit2.png-04aa05a079f927bf40d35ea4d3dc09cc.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/chicken/hit/chicken_hit2.png"
|
||||
dest_files=[ "res://.import/chicken_hit2.png-04aa05a079f927bf40d35ea4d3dc09cc.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
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
entities/chicken/hit/chicken_hit3.png
Normal file
|
After Width: | Height: | Size: 971 B |
35
entities/chicken/hit/chicken_hit3.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/chicken_hit3.png-c18cae0836c1b0b01a43f89d64367a7a.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/chicken/hit/chicken_hit3.png"
|
||||
dest_files=[ "res://.import/chicken_hit3.png-c18cae0836c1b0b01a43f89d64367a7a.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
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
entities/chicken/hit/chicken_hit4.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
35
entities/chicken/hit/chicken_hit4.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/chicken_hit4.png-0c41a5a4cd3597696684714bffaa7347.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/chicken/hit/chicken_hit4.png"
|
||||
dest_files=[ "res://.import/chicken_hit4.png-0c41a5a4cd3597696684714bffaa7347.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
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
entities/chicken/hit/chicken_hit5.png
Normal file
|
After Width: | Height: | Size: 882 B |
35
entities/chicken/hit/chicken_hit5.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/chicken_hit5.png-a69586c36c55262851e56cbedb0495d9.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/chicken/hit/chicken_hit5.png"
|
||||
dest_files=[ "res://.import/chicken_hit5.png-a69586c36c55262851e56cbedb0495d9.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
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
entities/chicken/idle/chicken_idle1.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
35
entities/chicken/idle/chicken_idle1.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/chicken_idle1.png-bae799c1775d8303142102038839413b.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/chicken/idle/chicken_idle1.png"
|
||||
dest_files=[ "res://.import/chicken_idle1.png-bae799c1775d8303142102038839413b.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
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
entities/chicken/idle/chicken_idle10.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
35
entities/chicken/idle/chicken_idle10.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/chicken_idle10.png-8e142ad65369232903864ee38abc82cc.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/chicken/idle/chicken_idle10.png"
|
||||
dest_files=[ "res://.import/chicken_idle10.png-8e142ad65369232903864ee38abc82cc.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
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
entities/chicken/idle/chicken_idle11.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
35
entities/chicken/idle/chicken_idle11.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/chicken_idle11.png-54efe339c39d739c5ed4853427a96c4b.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/chicken/idle/chicken_idle11.png"
|
||||
dest_files=[ "res://.import/chicken_idle11.png-54efe339c39d739c5ed4853427a96c4b.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
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
entities/chicken/idle/chicken_idle12.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
35
entities/chicken/idle/chicken_idle12.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/chicken_idle12.png-eb9b7dafe5b7f9b1dc9e1ad382c1a982.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/chicken/idle/chicken_idle12.png"
|
||||
dest_files=[ "res://.import/chicken_idle12.png-eb9b7dafe5b7f9b1dc9e1ad382c1a982.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
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
entities/chicken/idle/chicken_idle13.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
35
entities/chicken/idle/chicken_idle13.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/chicken_idle13.png-529b2cd3b1d90c2efe445f6d9d676d1b.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/chicken/idle/chicken_idle13.png"
|
||||
dest_files=[ "res://.import/chicken_idle13.png-529b2cd3b1d90c2efe445f6d9d676d1b.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
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||