raycast fin

This commit is contained in:
2025-10-05 16:05:57 +01:00
parent fd7162259b
commit beccaf8465
4 changed files with 66 additions and 41 deletions

View File

@@ -3,16 +3,20 @@
#include "../player.h"
#include <SDL3/SDL_events.h>
void UpdateWorld(F32 delta, World *world) {
UpdateNPCs(delta, world);
void UpdateWorld(F32 delta, World *world)
{
// UpdateNPCs(delta, world);
}
void UpdateNPCs(F32 delta, World *world) {
for(int i = 0; i < world->npcCount; i++) {
void UpdateNPCs(F32 delta, World *world)
{
for (int i = 0; i < world->npcCount; i++)
{
updateNPC(delta, &world->npcs[i], world);
}
}
}
void ProcessEvents(SDL_Event *event, World *world) {
void ProcessEvents(SDL_Event *event, World *world)
{
PlayerUpdate(event, &world->player);
}