Merge remote-tracking branch 'origin'

This commit is contained in:
matt committed 2025-10-05 15:22:09 +01:00
commit 8f148b6894
8 files changed
+68 -14

No files matched your search

+1 -1
View File
@@ -290,7 +290,7 @@ void G_PipelinesLoad(G_State *game) {
Vk_PipelineCreate(basic);
}
void G_CalulateCamera(G_Camera *camera, F32 aspect) {
void G_CalculateCamera(G_Camera *camera, F32 aspect) {
Mat4x4FInv proj = M4x4F_Perspective(camera->fov, aspect, camera->nearp, camera->farp);
Mat4x4FInv view = M4x4F_CameraView(camera->x, camera->y, camera->z, camera->p);
+1 -1
View File
@@ -26,7 +26,7 @@ struct G_State {
function void G_ImagesLoad(G_State *game);
function void G_PipelinesLoad(G_State *game);
function void G_CalulateCamera(G_Camera *camera, F32 aspect);
function void G_CalculateCamera(G_Camera *camera, F32 aspect);
#include "aabb.h"
#include "player.h"
+2 -2
View File
@@ -8,10 +8,10 @@ void UpdateWorld(F32 delta, World *world) {
}
void UpdateNPCs(F32 delta, World *world) {
for(int i = 0; i < world->npcCount; i++) {
for(U32 i = 0; i < world->npcCount; i++) {
updateNPC(delta, &world->npcs[i], world);
}
}
}
void ProcessEvents(SDL_Event *event, World *world) {
PlayerUpdate(event, &world->player);
+1 -1
View File
@@ -25,7 +25,7 @@ struct World {
NPC npcs[128];
////Bandit
// The bandit the player is after.
// The bandit the player is after.
Bandit bandit;
// NPC points of interest, places to walk to.