Advertisement
Guest User

source.cpp

a guest
Jan 27th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include "SDL.h"
  2. #include "SDL_ttf.h"
  3. #include "SDL_image.h"
  4. #include "Game.h"
  5. #include <iostream>
  6. #include <stdio.h>
  7. #include <cstdio>
  8.  
  9. using namespace std;
  10.  
  11. int main(int argc, char* args[]) {
  12.    
  13.     Game* g = new Game();
  14.     g->render();
  15.     while (g->isRunning() == true) {
  16.         g->handleEvents();
  17.         g->update();
  18.     }
  19.     g->clean();
  20.  
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement