blob: c4ef8175d80f171d0ba7e608fa21e5b9686d6ffd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <iostream>
#include <SDL2/SDL.h>
#include "graphics.hpp"
#define WINDOW_TITLE "2048"
#define WINDOW_WIDTH 640
#define WINDOW_HEIGHT 480
int main()
{
Graphics g = Graphics(WINDOW_TITLE, WINDOW_WIDTH, WINDOW_HEIGHT);
while (g.isRunning())
g.update();
return 0;
}
|