summaryrefslogtreecommitdiffhomepage
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index e60c9f2..ce5130c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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();