Adds Chicken Enemy

Animation Tree - In-Progress
This commit is contained in:
Indrajith K L
2022-04-15 02:08:49 +05:30
parent aef3961512
commit 31089507aa
150 changed files with 1718 additions and 114 deletions

View File

@@ -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"

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View 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

View 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)

View 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 )

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 971 B

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 882 B

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_idle2.png-026e3ab3763f57e87e25326f5ce7b13d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/idle/chicken_idle2.png"
dest_files=[ "res://.import/chicken_idle2.png-026e3ab3763f57e87e25326f5ce7b13d.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_idle3.png-efce26f584e15ddfb66ab7a57efdb9d1.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/idle/chicken_idle3.png"
dest_files=[ "res://.import/chicken_idle3.png-efce26f584e15ddfb66ab7a57efdb9d1.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 984 B

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_idle4.png-0c5ca41783656381298cf5d4b1cdf0f6.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/idle/chicken_idle4.png"
dest_files=[ "res://.import/chicken_idle4.png-0c5ca41783656381298cf5d4b1cdf0f6.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 984 B

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_idle5.png-73905222827dd5a9b371a320b43d7c0c.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/idle/chicken_idle5.png"
dest_files=[ "res://.import/chicken_idle5.png-73905222827dd5a9b371a320b43d7c0c.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_idle6.png-0680476a27b5b2d4629f33338c0edfa5.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/idle/chicken_idle6.png"
dest_files=[ "res://.import/chicken_idle6.png-0680476a27b5b2d4629f33338c0edfa5.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_idle7.png-00503ca2f8f4a9e25229c37bbdc64fd8.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/idle/chicken_idle7.png"
dest_files=[ "res://.import/chicken_idle7.png-00503ca2f8f4a9e25229c37bbdc64fd8.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_idle8.png-e6cedb50308721c91c5fd5675119fceb.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/idle/chicken_idle8.png"
dest_files=[ "res://.import/chicken_idle8.png-e6cedb50308721c91c5fd5675119fceb.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_idle9.png-f9ded328a4510f13a3a31f9d406ff1cd.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/idle/chicken_idle9.png"
dest_files=[ "res://.import/chicken_idle9.png-f9ded328a4510f13a3a31f9d406ff1cd.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 910 B

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_run1.png-a343d1f81fa023e053955eeb272a0ad9.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/run/chicken_run1.png"
dest_files=[ "res://.import/chicken_run1.png-a343d1f81fa023e053955eeb272a0ad9.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_run10.png-e71d8caf63a5acd00282ff123b386ec4.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/run/chicken_run10.png"
dest_files=[ "res://.import/chicken_run10.png-e71d8caf63a5acd00282ff123b386ec4.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 862 B

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_run11.png-f01ca12a009d6128e841e21383757dab.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/run/chicken_run11.png"
dest_files=[ "res://.import/chicken_run11.png-f01ca12a009d6128e841e21383757dab.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 841 B

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_run12.png-29d6cf214af37cbbbf14a7e9faf00437.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/run/chicken_run12.png"
dest_files=[ "res://.import/chicken_run12.png-29d6cf214af37cbbbf14a7e9faf00437.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_run13.png-c3f3a4af3be747e1158feb427bd4d1aa.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/run/chicken_run13.png"
dest_files=[ "res://.import/chicken_run13.png-c3f3a4af3be747e1158feb427bd4d1aa.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_run14.png-d2f26a0657ea27a900295a395ac66032.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/run/chicken_run14.png"
dest_files=[ "res://.import/chicken_run14.png-d2f26a0657ea27a900295a395ac66032.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 787 B

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_run2.png-f280e81134e7fa7198c63645279a59b0.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/run/chicken_run2.png"
dest_files=[ "res://.import/chicken_run2.png-f280e81134e7fa7198c63645279a59b0.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 787 B

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_run3.png-042f05b993093f7ec103984f43a19714.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/run/chicken_run3.png"
dest_files=[ "res://.import/chicken_run3.png-042f05b993093f7ec103984f43a19714.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 867 B

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_run4.png-efdeabb441df21ba19cfdbacb1e3cb70.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/run/chicken_run4.png"
dest_files=[ "res://.import/chicken_run4.png-efdeabb441df21ba19cfdbacb1e3cb70.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 840 B

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_run5.png-5405930f206575bde5d4ae7da0f7df71.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/run/chicken_run5.png"
dest_files=[ "res://.import/chicken_run5.png-5405930f206575bde5d4ae7da0f7df71.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_run6.png-a2f278c6d9ab268121721da4b62a75e9.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/run/chicken_run6.png"
dest_files=[ "res://.import/chicken_run6.png-a2f278c6d9ab268121721da4b62a75e9.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_run7.png-4e91a131add44f26fc62fdbba1b2250c.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/run/chicken_run7.png"
dest_files=[ "res://.import/chicken_run7.png-4e91a131add44f26fc62fdbba1b2250c.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 890 B

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_run8.png-f22de58052feb8d76ec304b61927f371.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/run/chicken_run8.png"
dest_files=[ "res://.import/chicken_run8.png-f22de58052feb8d76ec304b61927f371.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/chicken_run9.png-99c6ca34d63baafd6fbb44c7d5e43cc3.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/chicken/run/chicken_run9.png"
dest_files=[ "res://.import/chicken_run9.png-99c6ca34d63baafd6fbb44c7d5e43cc3.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

View File

@@ -5,6 +5,8 @@ export (int) var jump_speed = -400
export (int) var gravity = 1200
export var entity_type = "PLAYER"
export (int) var health = 90
var hurt = false
var velocity = Vector2()
var jumping = false
onready var sprite = $AnimatedSprite
@@ -27,19 +29,33 @@ func get_input():
if right:
velocity.x += run_speed
facing_right = true
$AnimatedSprite.play("run")
play_animation("run")
elif left:
velocity.x -= run_speed
facing_right = false
$AnimatedSprite.play("run")
play_animation("run")
else:
$AnimatedSprite.play("idle")
play_animation("idle")
if !jumping && !is_on_floor():
$AnimatedSprite.play("jump")
play_animation("jump")
func _physics_process(delta):
get_input()
velocity.y += gravity * delta
if jumping and is_on_floor():
jumping = false
velocity = move_and_slide(velocity, Vector2(0, -1))
func _on_enemyHit(health):
hurt = true
play_animation("hit")
func _ready() -> void:
SignalBus.connect("on_hit", self, "_on_enemyHit")
func play_animation(animation_name):
if $AnimatedSprite.get_animation()!=animation_name :
#$AnimatedSprite.play(animation_name)
#$AnimatedSprite/AnimationPlayer.stop()
$AnimatedSprite/AnimationPlayer.play(animation_name)

248
entities/player/Player.tscn Normal file
View File

@@ -0,0 +1,248 @@
[gd_scene load_steps=52 format=2]
[ext_resource path="res://pinkman/run/run7.png" type="Texture" id=1]
[ext_resource path="res://pinkman/double-jump/double_jump6.png" type="Texture" id=2]
[ext_resource path="res://pinkman/hit/hit6.png" type="Texture" id=3]
[ext_resource path="res://pinkman/idle/idle4.png" type="Texture" id=4]
[ext_resource path="res://pinkman/wall-jump/wall-jump2.png" type="Texture" id=5]
[ext_resource path="res://pinkman/fall/fall.png" type="Texture" id=6]
[ext_resource path="res://pinkman/hit/hit1.png" type="Texture" id=7]
[ext_resource path="res://pinkman/double-jump/double_jump1.png" type="Texture" id=8]
[ext_resource path="res://pinkman/idle/idle11.png" type="Texture" id=9]
[ext_resource path="res://pinkman/double-jump/double_jump3.png" type="Texture" id=10]
[ext_resource path="res://pinkman/run/run6.png" type="Texture" id=11]
[ext_resource path="res://pinkman/idle/idle1.png" type="Texture" id=12]
[ext_resource path="res://pinkman/idle/idle7.png" type="Texture" id=13]
[ext_resource path="res://pinkman/wall-jump/wall-jump5.png" type="Texture" id=14]
[ext_resource path="res://pinkman/wall-jump/wall-jump4.png" type="Texture" id=15]
[ext_resource path="res://pinkman/run/run11.png" type="Texture" id=16]
[ext_resource path="res://pinkman/wall-jump/wall-jump1.png" type="Texture" id=17]
[ext_resource path="res://pinkman/jump/jump.png" type="Texture" id=18]
[ext_resource path="res://pinkman/double-jump/double_jump2.png" type="Texture" id=19]
[ext_resource path="res://pinkman/idle/idle3.png" type="Texture" id=20]
[ext_resource path="res://pinkman/idle/idle9.png" type="Texture" id=21]
[ext_resource path="res://pinkman/idle/idle5.png" type="Texture" id=22]
[ext_resource path="res://pinkman/idle/idle6.png" type="Texture" id=23]
[ext_resource path="res://pinkman/double-jump/double_jump5.png" type="Texture" id=24]
[ext_resource path="res://pinkman/double-jump/double_jump4.png" type="Texture" id=25]
[ext_resource path="res://pinkman/run/run9.png" type="Texture" id=26]
[ext_resource path="res://pinkman/idle/idle8.png" type="Texture" id=27]
[ext_resource path="res://pinkman/idle/idle10.png" type="Texture" id=28]
[ext_resource path="res://pinkman/idle/idle2.png" type="Texture" id=29]
[ext_resource path="res://pinkman/wall-jump/wall-jump3.png" type="Texture" id=30]
[ext_resource path="res://pinkman/hit/hit2.png" type="Texture" id=31]
[ext_resource path="res://pinkman/run/run5.png" type="Texture" id=32]
[ext_resource path="res://pinkman/hit/hit3.png" type="Texture" id=33]
[ext_resource path="res://pinkman/run/run1.png" type="Texture" id=34]
[ext_resource path="res://pinkman/run/run8.png" type="Texture" id=35]
[ext_resource path="res://pinkman/hit/hit5.png" type="Texture" id=36]
[ext_resource path="res://pinkman/run/run10.png" type="Texture" id=37]
[ext_resource path="res://pinkman/hit/hit4.png" type="Texture" id=38]
[ext_resource path="res://pinkman/run/run2.png" type="Texture" id=39]
[ext_resource path="res://pinkman/run/run12.png" type="Texture" id=40]
[ext_resource path="res://pinkman/run/run3.png" type="Texture" id=41]
[ext_resource path="res://pinkman/hit/hit7.png" type="Texture" id=42]
[ext_resource path="res://pinkman/run/run4.png" type="Texture" id=43]
[ext_resource path="res://entities/player/Player.gd" type="Script" id=44]
[sub_resource type="CapsuleShape2D" id=2]
height = 8.0
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 12 ), ExtResource( 29 ), ExtResource( 20 ), ExtResource( 4 ), ExtResource( 22 ), ExtResource( 23 ), ExtResource( 13 ), ExtResource( 27 ), ExtResource( 21 ), ExtResource( 28 ), ExtResource( 9 ) ],
"loop": true,
"name": "idle",
"speed": 25.0
}, {
"frames": [ ExtResource( 17 ), ExtResource( 5 ), ExtResource( 30 ), ExtResource( 15 ), ExtResource( 14 ) ],
"loop": true,
"name": "wall_jump",
"speed": 25.0
}, {
"frames": [ ExtResource( 6 ) ],
"loop": true,
"name": "fall",
"speed": 5.0
}, {
"frames": [ ExtResource( 8 ), ExtResource( 19 ), ExtResource( 10 ), ExtResource( 25 ), ExtResource( 24 ), ExtResource( 2 ) ],
"loop": true,
"name": "double_jump",
"speed": 25.0
}, {
"frames": [ ExtResource( 7 ), ExtResource( 31 ), ExtResource( 33 ), ExtResource( 38 ), ExtResource( 36 ), ExtResource( 3 ), ExtResource( 42 ) ],
"loop": true,
"name": "hit",
"speed": 30.0
}, {
"frames": [ ExtResource( 18 ) ],
"loop": true,
"name": "jump",
"speed": 5.0
}, {
"frames": [ ExtResource( 34 ), ExtResource( 39 ), ExtResource( 41 ), ExtResource( 43 ), ExtResource( 32 ), ExtResource( 11 ), ExtResource( 1 ), ExtResource( 35 ), ExtResource( 26 ), ExtResource( 37 ), ExtResource( 16 ), ExtResource( 40 ) ],
"loop": true,
"name": "run",
"speed": 25.0
} ]
[sub_resource type="Animation" id=3]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath(".:animation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ "idle" ]
}
tracks/1/type = "value"
tracks/1/path = NodePath(".:frame")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 0 ]
}
[sub_resource type="Animation" id=7]
resource_name = "hit"
tracks/0/type = "value"
tracks/0/path = NodePath(".:animation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ "hit" ]
}
tracks/1/type = "value"
tracks/1/path = NodePath(".:frame")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 1, 2, 3, 4, 5, 6 ]
}
[sub_resource type="Animation" id=4]
resource_name = "idle"
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:animation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ "idle" ]
}
tracks/1/type = "value"
tracks/1/path = NodePath(".:frame")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
}
[sub_resource type="Animation" id=5]
resource_name = "jump"
tracks/0/type = "value"
tracks/0/path = NodePath(".:animation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ "jump" ]
}
tracks/1/type = "value"
tracks/1/path = NodePath(".:frame")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 0 ]
}
[sub_resource type="Animation" id=6]
resource_name = "run"
tracks/0/type = "value"
tracks/0/path = NodePath(".:animation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ "run" ]
}
tracks/1/type = "value"
tracks/1/path = NodePath(".:frame")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
}
[node name="Player" type="KinematicBody2D" groups=["player"]]
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"
[node name="AnimationPlayer" type="AnimationPlayer" parent="AnimatedSprite"]
anims/RESET = SubResource( 3 )
anims/hit = SubResource( 7 )
anims/idle = SubResource( 4 )
anims/jump = SubResource( 5 )
anims/run = SubResource( 6 )