A 3D game engine from scratch.
1// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
2
3#include <time.h>
4#include <stdio.h>
5#include "types.hpp"
6#include "constants.hpp"
7#include "core.hpp"
8#include "logs.hpp"
9
10
11int
12main()
13{
14 // Seed RNG
15 srand((u32)time(NULL));
16 init_constants();
17
18 //
19 // ___
20 // ,-"" `.
21 // ,' _ e )`-._
22 // / ,' `-._<.===-'
23 // / /
24 // / ;
25 // _.--.__ / ;
26 // (`._ _.-"" "--' |
27 // <_ `-"" \
28 // <`- :
29 // (__ <__. ;
30 // `-. '-.__. _.' /
31 // \ `-.__,-' _,'
32 // `._ , /__,-'
33 // ""._\__,'< <____
34 // | | `----.`.
35 // | | \ `.
36 // ; |___ \-``
37 // \ --<
38 // `.`.<
39 // `-'
40 int status = core::run();
41 if (status != 0) {
42 char discarded_input[256];
43 logs::info("Exited with status %d", status);
44 logs::info("Please read log and press enter to exit");
45 scanf("%s", discarded_input);
46 }
47}