mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-23 01:12:16 -05:00
Add enemy sprites
This commit is contained in:
parent
e0bcec79ca
commit
ed42104621
44
assets.h
44
assets.h
@ -734,6 +734,50 @@ frame for idle and walking, some enemies can share the same dead sprite etc.).
|
||||
Also: add flip option to sprite drawing function so that some frames can be
|
||||
reused flipped (good for walk anims). */
|
||||
|
||||
SFG_PROGRAM_MEMORY uint8_t
|
||||
SFG_enemySprites[][SFG_TEXTURE_SIZE * SFG_TEXTURE_SIZE] =
|
||||
{
|
||||
{ // 0, idle
|
||||
175,175,175,0,0,0,0,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,
|
||||
175,175,175,0,0,0,0,175,175,175,175,175,0,5,4,95,5,0,175,175,175,175,175,175,
|
||||
175,175,175,175,175,175,175,175,175,175,0,6,3,5,4,0,175,175,175,0,5,0,2,2,0,5,0,
|
||||
175,175,175,175,175,175,175,175,175,175,175,175,175,0,0,7,6,3,4,3,3,0,175,175,0,
|
||||
95,2,93,3,2,4,0,175,175,175,175,175,175,175,175,175,175,175,0,0,7,6,6,5,0,0,0,0,
|
||||
0,0,175,0,4,2,3,93,2,95,0,175,175,0,175,175,175,175,175,175,175,0,7,6,6,5,4,0,
|
||||
175,175,175,175,175,175,175,0,5,0,2,2,0,5,0,0,175,0,0,175,175,175,175,0,0,7,6,6,
|
||||
5,10,0,175,175,175,175,175,175,175,175,175,0,5,95,4,5,1,1,1,0,3,6,0,175,175,175,
|
||||
175,175,0,0,3,10,4,0,175,175,175,175,175,175,175,175,0,1,3,0,0,1,3,1,3,5,5,5,0,
|
||||
175,175,175,175,175,175,175,0,5,4,3,0,175,175,175,175,175,175,0,5,4,5,1,1,4,10,
|
||||
4,6,5,6,6,6,0,175,175,175,175,175,175,0,5,4,3,0,0,0,0,0,175,175,0,4,3,4,1,3,0,6,
|
||||
6,6,5,5,5,5,4,0,175,175,175,0,0,0,3,3,7,6,3,5,5,4,0,175,0,5,4,95,1,0,0,62,62,6,
|
||||
5,4,5,4,5,0,175,0,0,7,7,7,6,6,6,6,3,4,4,3,3,0,175,0,0,0,4,6,6,223,63,223,62,5,4,
|
||||
4,4,0,175,175,175,0,6,6,6,6,5,5,10,10,10,10,10,0,175,175,0,6,6,6,5,223,7,63,223,
|
||||
223,4,4,4,4,0,175,175,175,10,3,3,10,10,3,3,3,4,3,0,175,175,175,0,0,65,65,3,62,
|
||||
223,7,223,223,223,4,4,4,4,120,120,120,20,18,5,4,18,3,0,0,0,0,0,0,175,0,75,74,65,
|
||||
68,145,3,4,223,223,63,62,223,4,4,120,1,18,3,20,20,1,5,4,0,175,175,175,175,175,
|
||||
175,0,69,68,0,74,74,82,145,4,4,223,7,63,223,3,120,18,18,3,20,20,21,3,3,1,175,
|
||||
175,175,175,175,175,175,0,76,75,0,67,67,67,145,4,4,223,7,63,223,3,120,18,18,3,
|
||||
20,20,21,3,3,1,175,175,175,175,175,175,175,175,0,75,74,65,74,145,3,4,223,223,63,
|
||||
62,223,4,4,120,1,18,3,20,20,1,5,4,0,175,175,175,175,175,175,175,175,0,0,65,65,3,
|
||||
62,223,7,223,223,223,4,4,4,4,120,120,120,20,18,5,4,10,3,0,0,0,0,0,0,175,175,0,6,
|
||||
6,6,5,223,7,63,223,223,4,4,4,4,0,175,175,175,10,5,4,10,10,3,3,3,4,3,0,175,175,0,
|
||||
0,0,4,6,6,223,63,223,62,5,4,4,4,0,175,175,175,0,7,7,7,7,7,6,10,10,10,10,10,0,0,
|
||||
5,4,95,1,0,0,62,62,6,5,4,5,4,5,0,175,0,0,6,6,6,6,6,6,6,3,5,5,4,3,0,0,4,3,4,1,3,
|
||||
0,6,6,6,6,5,5,5,4,0,175,175,175,0,0,0,3,3,7,6,3,4,4,3,0,175,0,5,4,5,1,1,4,10,4,
|
||||
6,6,6,6,6,0,175,175,175,175,175,175,0,5,4,3,1,0,0,0,0,175,175,175,0,1,3,0,0,1,3,
|
||||
1,3,5,5,5,0,175,175,175,175,175,175,175,0,5,4,3,0,175,175,175,175,175,175,175,
|
||||
175,0,5,4,95,5,1,1,1,0,3,6,0,175,175,175,175,175,0,0,3,3,4,0,175,175,175,175,
|
||||
175,175,175,175,0,5,0,2,2,0,5,0,0,175,0,0,175,175,175,175,0,0,7,7,7,7,10,0,175,
|
||||
175,175,175,175,175,175,175,0,95,2,3,93,2,4,0,175,175,0,175,175,175,175,175,175,
|
||||
175,0,7,6,6,6,7,0,175,175,175,175,175,175,175,0,4,2,93,3,2,95,0,175,175,175,175,
|
||||
175,175,175,175,175,175,175,0,0,5,6,6,6,0,0,0,0,0,0,175,0,5,0,2,2,0,5,0,175,175,
|
||||
175,175,175,175,175,175,175,175,175,175,175,0,0,5,6,3,4,4,3,0,175,175,175,0,5,
|
||||
95,4,5,0,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,175,0,5,3,
|
||||
4,3,0,175,175,175,175,175,0,0,0,0,175,175,175,175,175,175,175,175,175,175,175,
|
||||
175,175,175,175,175,175,175,0,0,0,0,175,175,175
|
||||
}
|
||||
};
|
||||
|
||||
uint8_t SFG_charToFontIndex(char c)
|
||||
{
|
||||
if (c >= 'a' && c <= 'z')
|
||||
|
BIN
assets/enemy_1_attack.png
Normal file
BIN
assets/enemy_1_attack.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
assets/enemy_1_idle.png
Normal file
BIN
assets/enemy_1_idle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
assets/enemy_1_walk.png
Normal file
BIN
assets/enemy_1_walk.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
assets/enemy_dead.png
Normal file
BIN
assets/enemy_dead.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 449 B |
Loading…
Reference in New Issue
Block a user