diff options
author | nathansmithsmith <nathansmith7@mailfence.com> | 2023-09-14 21:18:54 -0600 |
---|---|---|
committer | nathansmithsmith <nathansmith7@mailfence.com> | 2023-09-14 21:18:54 -0600 |
commit | 0612480baf3d173b2d210693d6a234d76bb902cf (patch) | |
tree | 1b746dc002b749e6cb7d135751eda88df2cb1ff4 /src/entities/mussolini.c | |
parent | c160543a7982a62062aae978da08e4f18ae1e712 (diff) |
More configurable missile
Diffstat (limited to 'src/entities/mussolini.c')
-rw-r--r-- | src/entities/mussolini.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/entities/mussolini.c b/src/entities/mussolini.c index 151e050..ed137b1 100644 --- a/src/entities/mussolini.c +++ b/src/entities/mussolini.c @@ -44,7 +44,8 @@ void updateMussoliniGuns(Game * game, Entity * entity) { // Shoot missile. Entity missile = createEntity(ENTITY_MISSILE, game); missile.position = entity->position; - aimMissileAtTarget(&missile, player->position); + launchMissileAtTarget(&missile, player->position, 200.0); + startMissileCountDown(&missile, 4.0); scheduleEntityToAdd(&game->world, missile); puts("shoot shoot"); |