diff --git a/assets.h b/assets.h index de56335..15e5132 100644 --- a/assets.h +++ b/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') diff --git a/assets/enemy_1_attack.png b/assets/enemy_1_attack.png new file mode 100644 index 0000000..3890cb7 Binary files /dev/null and b/assets/enemy_1_attack.png differ diff --git a/assets/enemy_1_idle.png b/assets/enemy_1_idle.png new file mode 100644 index 0000000..878cbfc Binary files /dev/null and b/assets/enemy_1_idle.png differ diff --git a/assets/enemy_1_walk.png b/assets/enemy_1_walk.png new file mode 100644 index 0000000..19dbfe6 Binary files /dev/null and b/assets/enemy_1_walk.png differ diff --git a/assets/enemy_dead.png b/assets/enemy_dead.png new file mode 100644 index 0000000..ea5d0df Binary files /dev/null and b/assets/enemy_dead.png differ