Bee movement, infinite tiles, flowers with random position
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#include "raylib.h"
|
||||
#include "Game.h"
|
||||
|
||||
#ifdef PLATFORM_WEB
|
||||
#include <emscripten/emscripten.h>
|
||||
#endif
|
||||
|
||||
Game game;
|
||||
|
||||
void UpdateDrawFrame() {
|
||||
game.update();
|
||||
game.render();
|
||||
}
|
||||
|
||||
int main() {
|
||||
InitWindow(1280, 720, "Lazy Bee");
|
||||
SetTargetFPS(60);
|
||||
game.init();
|
||||
#ifdef PLATFORM_WEB
|
||||
emscripten_set_main_loop(UpdateDrawFrame, 0, 1);
|
||||
#else
|
||||
while (!WindowShouldClose()) { game.update(); game.render(); }
|
||||
#endif
|
||||
game.close();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user