diff options
| author | realtradam <[email protected]> | 2024-05-12 17:39:18 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-05-12 17:39:18 -0400 |
| commit | 6042fa9181ebde0fb90a6f4ba2b4221699e6661f (patch) | |
| tree | e82fc969fa9897f34e4f01dfbf53881e74e9562f /src/main.c | |
| parent | 8475767975a0f07507908ba53dba894b97b48795 (diff) | |
| download | tojam2024-6042fa9181ebde0fb90a6f4ba2b4221699e6661f.tar.gz tojam2024-6042fa9181ebde0fb90a6f4ba2b4221699e6661f.zip | |
second player can shoot and better colours
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -66,7 +66,7 @@ World world = { .position = { 2, 0, 0 }, .direction = { -1, 0, 0 }, .speed = 1.0f/60.0f, - .color = MAGENTA, + .color = VIOLET, .camera_mode = 1, } } @@ -148,6 +148,10 @@ int main(void) { spawn_bullet(1, world.players[0].position, world.players[0].direction); } + if(pressed_p2.z) + { + spawn_bullet(2, world.players[1].position, world.players[1].direction); + } bullet_collision_check(); movePlayers(); |
