blob: b0c98a0793d03d89267587f00e381bea1c9ac7e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <iostream>
#include <cstdlib>
#include "graphics.hpp"
#include "game.hpp"
#define WINDOW_TITLE "2048"
#define WINDOW_WIDTH 480
#define WINDOW_HEIGHT 480
#define GAME_GRID_SIZE 4
int main()
{
srand(time(NULL));
Game game = Game(GAME_GRID_SIZE);
Graphics *graphics = new Graphics(&game, WINDOW_TITLE, WINDOW_WIDTH, WINDOW_HEIGHT);
while (graphics->isRunning())
graphics->update();
delete graphics;
return 0;
}
|