added badman shooting and reloading
This commit is contained in:
19
code/first.c
19
code/first.c
@@ -125,13 +125,22 @@ int main(int argc, char **argv)
|
||||
badman->waitTime = 0;
|
||||
badman->maxWaitTime = 2;
|
||||
badman->poiCount = 2;
|
||||
badman->shootoutTimer = 1.5;
|
||||
badman->agroRadius = 600.0;
|
||||
badman->bullets = 6;
|
||||
badman->shootDelay = 1;
|
||||
badman->accuracyRange = 0.25;
|
||||
badman->reloadTime = 2.5;
|
||||
badman->reloadTimer = 0;
|
||||
badman->pointsOfInterest[0] = 937;
|
||||
badman->pointsOfInterest[1] = 12;
|
||||
|
||||
world->npcPOI[0] = 100;
|
||||
world->player.world = world;
|
||||
world->player.pos.x = 0;
|
||||
world->player.pos.y = 0;
|
||||
world->player.collision.pos.x = 0;
|
||||
world->player.collision.pos.y = 0;
|
||||
world->player.collision.size.x = 1;
|
||||
world->player.collision.size.y = 2;
|
||||
world->player.bulletsLoaded = PLAYER_BULLET_COUNT;
|
||||
world->player.reloadTimer = 0;
|
||||
world->player.currentArea = WORLD_AREA_OUTSIDE;
|
||||
@@ -216,7 +225,7 @@ int main(int argc, char **argv)
|
||||
world->propTypes[12].assetHandle=D_ImageHandle(&game->draw, S("house_int"));
|
||||
world->propTypes[12].scale=6.875f;
|
||||
}
|
||||
game->editor.enabled = true;
|
||||
game->editor.enabled = false;
|
||||
game->editor.mode = G_EDITOR_MODE_TILE;
|
||||
game->editor.currentLevel = WORLD_AREA_OUTSIDE;
|
||||
|
||||
@@ -343,8 +352,8 @@ int main(int argc, char **argv)
|
||||
|
||||
if(!game->editor.enabled) {
|
||||
UpdateWorld(1.0f / 60.0f, game->world);
|
||||
game->camera.p.x = game->world->player.pos.x;
|
||||
game->camera.p.y = game->world->player.pos.y;
|
||||
game->camera.p.x = game->world->player.collision.pos.x;
|
||||
game->camera.p.y = game->world->player.collision.pos.y;
|
||||
}
|
||||
D_AnimationUpdate(&animation, 1.0f / 250.0f);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user