38 lines
729 B
C
38 lines
729 B
C
#include "core.h"
|
|
#include "game.h"
|
|
#include "engine.h"
|
|
#include "menu.h"
|
|
|
|
int main (void) {
|
|
game_configure ();
|
|
|
|
engine_configure ();
|
|
|
|
menu_configure ();
|
|
|
|
while (! WindowShouldClose ()) {
|
|
BeginDrawing ();
|
|
|
|
ClearBackground (BLACK);
|
|
|
|
render_map ();
|
|
|
|
render_menu ();
|
|
|
|
//~Rectangle source = { 0, 0, BASE_SIZE * 15, BASE_SIZE * 10 };
|
|
//~Rectangle destination = { 128, 128, BASE_SIZE * 15 * zoom, BASE_SIZE * 10 * zoom };
|
|
|
|
//~DrawTexturePro (vvv, source, destination, (Vector2) { 0, 0 }, 0.0F, WHITE);
|
|
|
|
for (int i = 0; i < 18; ++i) {
|
|
render_unit (orc, i, 900 + 32 * i, 32);
|
|
render_unit (human, i, 900 + 32 * i, 64);
|
|
render_unit (elf, i, 900 + 32 * i, 96);
|
|
}
|
|
|
|
EndDrawing ();
|
|
}
|
|
|
|
return (0);
|
|
}
|