47 lines
821 B
C
47 lines
821 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "logHelper.h"
|
|
#include <SDL2/SDL.h>
|
|
#include <SDL2/SDL_thread.h>
|
|
#include <SDL2/SDL_mutex.h>
|
|
#include "arenaEngine.h"
|
|
|
|
#define A_HEIGHT 100
|
|
#define A_WIDTH 100
|
|
|
|
void initDisplayLib() {
|
|
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
|
|
addLogCritical("Init SDL libs failed !");
|
|
|
|
exit(EXIT_FAILURE);
|
|
}
|
|
}
|
|
|
|
void initResources() {
|
|
//resOpen();
|
|
}
|
|
|
|
int main(int argc, char *argv[]) {
|
|
ARENA_H_TILE* arena = NULL;
|
|
|
|
|
|
addLogInfo("Starting game...");
|
|
initDisplayLib();
|
|
initResources();
|
|
|
|
addLogInfo("Creating new arena...");
|
|
arena = genNewArena(A_HEIGHT, A_WIDTH);
|
|
if (arena == NULL) {
|
|
addLogCritical("Error with arena generator !");
|
|
exit(EXIT_FAILURE);
|
|
}
|
|
addLogInfo("Successfully created arena.");
|
|
|
|
deleteArena(arena);
|
|
addLogInfo("Cleared arena.");
|
|
|
|
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|