Added Internal GameInformations
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
#include <SDL_image.h>
|
#include <SDL_image.h>
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
|
|
||||||
|
|
||||||
|
#include "Desktoplauncher.h"
|
||||||
#include "DarkRP2D.h"
|
#include "DarkRP2D.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|||||||
12
src/DesktopLauncher.h
Normal file
12
src/DesktopLauncher.h
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#ifndef DESKTOPLAUNCHER_H
|
||||||
|
#define DESKTOPLAUNCHER_H
|
||||||
|
|
||||||
|
namespace Game {
|
||||||
|
|
||||||
|
#define WINDOW_WIDTH = 800;
|
||||||
|
#define WINDOW_HEIGHT = 600;
|
||||||
|
|
||||||
|
void exit(int code);
|
||||||
|
|
||||||
|
}
|
||||||
|
#endif
|
||||||
@@ -15,6 +15,9 @@ Command* InputHandler::handleInput(SDL_Event *event) {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
switch (event->type) {
|
switch (event->type) {
|
||||||
|
case SDL_QUIT:
|
||||||
|
return NULL;
|
||||||
|
break;
|
||||||
case SDL_KEYDOWN:
|
case SDL_KEYDOWN:
|
||||||
std::cout << "The Key " << SDL_GetKeyName(event->key.keysym.sym) << " has been pressed!" << std::endl;
|
std::cout << "The Key " << SDL_GetKeyName(event->key.keysym.sym) << " has been pressed!" << std::endl;
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user