Bee movement, infinite tiles, flowers with random position

This commit is contained in:
huaqo-games
2025-02-01 23:41:10 +01:00
parent 1c25a89c94
commit 6f0e344492
12 changed files with 415 additions and 139 deletions
+26
View File
@@ -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;
}