diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-11-09 14:48:33 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-11-09 14:48:33 +0100 |
| commit | bd6b5006f814daca16afd3a15eebd02ef696624b (patch) | |
| tree | 867cf7232ac221d48f3b007e856f150a3089424a /main.cpp | |
| parent | cfebccb7a5a4e19090f2259efd18a8e97b318c96 (diff) | |
| download | flappybird-bd6b5006f814daca16afd3a15eebd02ef696624b.tar.gz flappybird-bd6b5006f814daca16afd3a15eebd02ef696624b.tar.bz2 flappybird-bd6b5006f814daca16afd3a15eebd02ef696624b.zip | |
Bird falls, game over if he touches the floor or a pipe.
Pipes are randomly generated.
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,8 +1,11 @@ #include <iostream> +#include <ctime> +#include <cstdlib> #include "graphics.hpp" int main() { + srand(time(NULL)); Graphics g; g.run(); } |
