Enable Tracks 7-9 across menus, loaders, modes, tests, and update README
This commit is contained in:
1 parent
5a42ca9968
commit
fc76e447fe
15 files changed
+256
-103
No files matched your search
@@ -12,10 +12,15 @@ namespace top_octane::assets {
|
||||
|
||||
constexpr int kMapWidth = 256;
|
||||
constexpr int kMapHeight = 160;
|
||||
constexpr int kMaxTracks = 9;
|
||||
constexpr int kMaxEntities = 4000;
|
||||
constexpr int kMaxColumns = 1024;
|
||||
constexpr int kMaxBlocks = 1024;
|
||||
|
||||
const char* track_name(int track_num);
|
||||
const char* track_short_name(int track_num);
|
||||
int count_available_tracks(const Vfs& vfs);
|
||||
|
||||
struct LevelEntity {
|
||||
uint16_t id = 0;
|
||||
uint8_t type = 0;
|
||||
@@ -111,8 +116,8 @@ struct ChargerPad {
|
||||
};
|
||||
|
||||
struct LevelData {
|
||||
int level_number = 1; // 1..6
|
||||
int world_index = 0; // 0..5 (corresponding to TEXTU0-x / SKY0-x / TABLE0-x)
|
||||
int level_number = 1; // 1..9
|
||||
int world_index = 0; // 0..8 (corresponding to TEXTU0-x / SKY0-x / TABLE0-x)
|
||||
std::string name;
|
||||
|
||||
std::vector<LevelEntity> entities; // active non-empty entities
|
||||
@@ -134,7 +139,7 @@ struct LevelData {
|
||||
int min_x = 0, max_x = kMapWidth - 1;
|
||||
int min_z = 0, max_z = kMapHeight - 1;
|
||||
|
||||
bool load(const Vfs& vfs, int level_num); // level_num in [1..6]
|
||||
bool load(const Vfs& vfs, int level_num); // level_num in [1..9]
|
||||
|
||||
const MapEntry& cell(int x, int z) const;
|
||||
MapEntry& cell_mut(int x, int z);
|
||||
|
||||
Reference in new issue
Block a user