Collision map support.
More...
#include <nds.h>
|
#define | NF_SLOTS_CMAP 32 |
| Maximum number of available collision maps.
|
|
|
void | NF_InitCmapBuffers (void) |
| Initialize buffers to store collision map data. More...
|
|
void | NF_ResetCmapBuffers (void) |
| Reset collision map buffers, clearing all data in RAM. More...
|
|
void | NF_LoadCollisionMap (const char *file, u32 id, u32 width, u32 height) |
| Load a collision map into RAM in the specified slot. More...
|
|
void | NF_UnloadCollisionMap (u32 id) |
| Unload from RAM the collision map at the specified slot. More...
|
|
u32 | NF_GetTile (u32 slot, s32 x, s32 y) |
| Return the tile number at the specified position. More...
|
|
void | NF_SetTile (u32 slot, s32 x, s32 y, u32 value) |
| Set the value of the tile of a collision map at the specified position. More...
|
|
void | NF_LoadCollisionBg (const char *file, u32 id, u32 width, u32 height) |
| Load a collision background to RAM at the specified slot. More...
|
|
void | NF_UnloadCollisionBg (u32 id) |
| Unload from RAM the collision background at the specified slot. More...
|
|
u8 | NF_GetPoint (u32 slot, s32 x, s32 y) |
| Returns the color number at the specified coordinates. More...
|
|