6 #include "engine/asset.h"
7 #include "engine/tga.h"
18 const Asset3D* asset3D;
27 #define BLOCKGRID_CELL_SIZE 2.5f
30 Vector3D playerSpawnPos;
33 void buildLevelFromImage(TgaImage* image);
35 static inline Block* getBlockFromGrid(BlockGrid grid, int x, int z) {
36 return grid.blocks[(z * grid.width) + x];
39 static inline void setBlockInGrid(BlockGrid grid, int x, int z, Block* block) {
40 grid.blocks[(z * grid.width) + x] = block;