Merge branch 'main' of yibble.dev:bulmanator/ld58
This commit is contained in:
@@ -10,6 +10,11 @@ V2f shootTowards(Bandit *bandit, V2f target, Random* r)
|
||||
}
|
||||
|
||||
void UpdateBandit(F32 delta, Bandit *bandit, World *world) {
|
||||
for(U32 i = 0; i < world->portalCount; i++) {
|
||||
if(AABB_Collide(world->portals[0].box, bandit->collision)) {
|
||||
bandit->currentArea = world->portals[0].area;
|
||||
}
|
||||
}
|
||||
if (
|
||||
world->player.controls.shot && AABB_Slab(world->player.collision.pos, world->player.shotPos, bandit->collision) && bandit->currentArea == world->player.currentArea)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user