Skip to content

Commit

Permalink
Update enemy spritesheets
Browse files Browse the repository at this point in the history
  • Loading branch information
outfrost committed Apr 26, 2021
1 parent ab6d4d0 commit 96ecc89
Show file tree
Hide file tree
Showing 14 changed files with 158 additions and 13 deletions.
5 changes: 5 additions & 0 deletions character/Enemy.gd
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ var run_speed: float = 50.0
var nearest_player = null
onready var home = self.position

onready var sprite = $AnimatedSprite

var walk_sound_timer: float = 0.0

func _ready() -> void:
sprite.playing = true

func take_damage(dmg: float, fire_dmg: float, ice_dmg: float, wind_dmg: float):

health -= (1.0 - resist_base) * dmg
Expand Down
4 changes: 2 additions & 2 deletions character/Enemy.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene load_steps=19 format=2]

[ext_resource path="res://character/Enemy_SpriteFrames.tres" type="SpriteFrames" id=1]
[ext_resource path="res://character/EnemyRed_SpriteFrames.tres" type="SpriteFrames" id=1]
[ext_resource path="res://character/Enemy.gd" type="Script" id=2]
[ext_resource path="res://sound/positional/SFX_EnemyWalk_4.wav" type="AudioStream" id=3]
[ext_resource path="res://sound/positional/SFX_EnemyWalk_1.wav" type="AudioStream" id=4]
Expand Down Expand Up @@ -33,7 +33,7 @@ shape = SubResource( 1 )

[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = ExtResource( 1 )
playing = true
animation = "idle_down"
offset = Vector2( 0, -16 )

[node name="AudioStreamPlayer2DWalk1" type="AudioStreamPlayer2D" parent="."]
Expand Down
15 changes: 15 additions & 0 deletions character/EnemyRed_SpriteFrames.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[gd_resource type="SpriteFrames" load_steps=3 format=2]

[ext_resource path="res://character/enemy.png" type="Texture" id=1]

[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 32, 48 )

[resource]
animations = [ {
"frames": [ SubResource( 1 ) ],
"loop": true,
"name": "idle_down",
"speed": 12.5
} ]
11 changes: 0 additions & 11 deletions character/Enemy_SpriteFrames.tres

This file was deleted.

Binary file modified character/enemyattackanimation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added character/enemyblueorb-export.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions character/enemyblueorb-export.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/enemyblueorb-export.png-9008bfb8c82d8b1df22c768cb8ac3866.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://character/enemyblueorb-export.png"
dest_files=[ "res://.import/enemyblueorb-export.png-9008bfb8c82d8b1df22c768cb8ac3866.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=true
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
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file added character/enemyblueorbwalking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions character/enemyblueorbwalking.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/enemyblueorbwalking.png-c6f527569ba1aeccae8d9107c4112dea.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://character/enemyblueorbwalking.png"
dest_files=[ "res://.import/enemyblueorbwalking.png-c6f527569ba1aeccae8d9107c4112dea.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=true
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
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file modified character/enemywalkinandblinkingandidle-sheet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added character/enemyyelloworb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions character/enemyyelloworb.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/enemyyelloworb.png-c39ae2419418f823e6791bce181285e8.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://character/enemyyelloworb.png"
dest_files=[ "res://.import/enemyyelloworb.png-c39ae2419418f823e6791bce181285e8.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=true
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
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file added character/enemyyelloworbwalking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions character/enemyyelloworbwalking.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/enemyyelloworbwalking.png-71c1f19e822e9c751b0a3ce5d7021226.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://character/enemyyelloworbwalking.png"
dest_files=[ "res://.import/enemyyelloworbwalking.png-71c1f19e822e9c751b0a3ce5d7021226.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=true
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
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

0 comments on commit 96ecc89

Please sign in to comment.