map
This commit is contained in:
23
src/rpg/world/map.c
Normal file
23
src/rpg/world/map.c
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* Copyright (c) 2025 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#include "map.h"
|
||||
#include "util/memory.h"
|
||||
|
||||
map_t MAP;
|
||||
|
||||
void mapInit() {
|
||||
memoryZero(&MAP, sizeof(map_t));
|
||||
|
||||
for(uint32_t i = 0; i < MAP_CHUNK_COUNT; i++) {
|
||||
MAP.chunkOrder[i] = &MAP.chunks[i];
|
||||
}
|
||||
}
|
||||
|
||||
void mapUpdate() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user