crawl was redesigned to crwal1 and crawl2

This commit is contained in:
Filipriec
2025-11-16 22:40:09 +01:00
parent cf07c9c47a
commit 42ad5ee7a2
7 changed files with 75 additions and 36 deletions

View File

@@ -1,8 +1,8 @@
// src/assets/character_crawl_frames.h
#pragma once
// Crawl frame 1
static const char *CRAWL_FRAME_1[] = {
// Crawl1 frame 1
static const char *CRAWL1_FRAME_1[] = {
"........",
"........",
"...y4@W.",
@@ -11,8 +11,8 @@ static const char *CRAWL_FRAME_1[] = {
".aa@s@.."
};
// Crawl frame 2
static const char *CRAWL_FRAME_2[] = {
// Crawl2 frame 1
static const char *CRAWL2_FRAME_1[] = {
"........",
"........",
"........",
@@ -21,18 +21,22 @@ static const char *CRAWL_FRAME_2[] = {
".a@@PR@L"
};
enum class CrawlFrame {
enum class CrawlType {
Crawl1 = 0,
Crawl2,
COUNT
};
static const char **CHARACTER_CRAWL_FRAMES[] = {
CRAWL_FRAME_1,
CRAWL_FRAME_2
static const char **CHARACTER_CRAWL1_FRAMES[] = {
CRAWL1_FRAME_1,
};
static const char **CHARACTER_CRAWL2_FRAMES[] = {
CRAWL2_FRAME_1,
};
static const int CHARACTER_CRAWL_FRAME_COUNT = sizeof(CHARACTER_CRAWL_FRAMES) / sizeof(CHARACTER_CRAWL_FRAMES[0]);
static const int CHARACTER_CRAWL1_FRAME_COUNT = sizeof(CHARACTER_CRAWL1_FRAMES) / sizeof(CHARACTER_CRAWL1_FRAMES[0]);
static const int CHARACTER_CRAWL2_FRAME_COUNT = sizeof(CHARACTER_CRAWL2_FRAMES) / sizeof(CHARACTER_CRAWL2_FRAMES[0]);
// Height (rows per crawl frame)
static const int CHARACTER_CRAWL_FRAME_HEIGHT = sizeof(CRAWL_FRAME_1) / sizeof(CRAWL_FRAME_1[0]);
static const int CHARACTER_CRAWL1_FRAME_HEIGHT = sizeof(CRAWL1_FRAME_1) / sizeof(CRAWL1_FRAME_1[0]);
static const int CHARACTER_CRAWL2_FRAME_HEIGHT = sizeof(CRAWL2_FRAME_1) / sizeof(CRAWL2_FRAME_1[0]);