Fixed some memory things on PSP
This commit is contained in:
@@ -31,11 +31,11 @@ errorret_t rpgInit(void) {
|
||||
entityInit(ent, ENTITY_TYPE_PLAYER);
|
||||
RPG_CAMERA.mode = RPG_CAMERA_MODE_FOLLOW_ENTITY;
|
||||
RPG_CAMERA.followEntity.followEntityId = ent->id;
|
||||
ent->position.x = 0, ent->position.y = 0;
|
||||
ent->position.x = 2, ent->position.y = 2;
|
||||
|
||||
ent = &ENTITIES[1];
|
||||
entityInit(ent, ENTITY_TYPE_NPC);
|
||||
ent->position.x = 6, ent->position.y = 4;
|
||||
ent->position.x = 4, ent->position.y = 0, ent->position.z = 1;
|
||||
|
||||
// All Good!
|
||||
errorOk();
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
#include "worldpos.h"
|
||||
#include "display/mesh/mesh.h"
|
||||
|
||||
#define CHUNK_VERTEX_COUNT_MAX (6 * CHUNK_TILE_COUNT * 3)
|
||||
#define CHUNK_MESH_COUNT_MAX 16
|
||||
#define CHUNK_VERTEX_COUNT_MAX (6 * CHUNK_TILE_COUNT * 2)
|
||||
#define CHUNK_MESH_COUNT_MAX 12
|
||||
|
||||
typedef struct chunk_s {
|
||||
chunkpos_t position;
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
|
||||
#define CHUNK_WIDTH 16
|
||||
#define CHUNK_HEIGHT 16
|
||||
#define CHUNK_DEPTH 32
|
||||
#define CHUNK_DEPTH 8
|
||||
#define CHUNK_TILE_COUNT (CHUNK_WIDTH * CHUNK_HEIGHT * CHUNK_DEPTH)
|
||||
|
||||
#define MAP_CHUNK_WIDTH 3
|
||||
#define MAP_CHUNK_HEIGHT 3
|
||||
#define MAP_CHUNK_DEPTH 1
|
||||
#define MAP_CHUNK_DEPTH 3
|
||||
#define MAP_CHUNK_COUNT (MAP_CHUNK_WIDTH * MAP_CHUNK_HEIGHT * MAP_CHUNK_DEPTH)
|
||||
|
||||
typedef int16_t worldunit_t;
|
||||
|
||||
@@ -36,6 +36,7 @@ errorret_t sceneMapInit(scenedata_t *data) {
|
||||
data->sceneMap.camera.lookatPixelPerfect.up
|
||||
);
|
||||
data->sceneMap.camera.lookatPixelPerfect.pixelsPerUnit = 1.0f;
|
||||
data->sceneMap.camera.perspective.fov = glm_rad(90.0f);
|
||||
|
||||
errorOk();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user