feat: different rooms added

feat: shooting bandit added
This commit is contained in:
2025-10-05 23:36:50 +01:00
parent 319bb441ed
commit 64a84e3a8d
7 changed files with 37 additions and 16 deletions

View File

@@ -14,7 +14,6 @@
#include "core/core.h"
#include "core/types.h"
#include "game/npc.h"
#include "os/core.h"
#include "vulkan/core.h"
@@ -77,7 +76,7 @@ int main(int argc, char **argv)
World *world = M_ArenaPush(arena, World);
game->world = world;
world->random = Random_Seed(29237489723847);
world->npcCount = 1;
world->npcCount = 2;
for(U32 i = 0; i < world->npcCount; i++) {
NPC *npc1 = &world->npcs[i];
npc1->collision.pos.x = 15;
@@ -86,16 +85,17 @@ int main(int argc, char **argv)
npc1->collision.size.y = 2;
npc1->name = S("Matt");
npc1->mode = NPC_ACTION_WAITING;
npc1->currentArea = i;
npc1->waitTime = 0;
npc1->maxWaitTime = 5000;
npc1->maxWaitTime = 5;
npc1->currentNavNode = 0;
}
Bandit *badman = &world->bandit;
badman->collision.pos.x = 15;
badman->collision.pos.y = 15;
badman->collision.size.x = 10;
badman->collision.size.y = 10;
badman->collision.size.x = 1;
badman->collision.size.y = 2;
badman->name = S("Leroy Brown");
badman->mode = BANDIT_WAITING;
badman->waitTime = 0;
@@ -111,6 +111,7 @@ int main(int argc, char **argv)
world->player.pos.y = 0;
world->player.bulletsLoaded = PLAYER_BULLET_COUNT;
world->player.reloadTimer = 0;
world->player.currentArea = 0;
}
bool running = true;