Deleted old files and fix call function
This commit is contained in:
parent
0539ec2bb3
commit
6b713cd64b
@ -39,7 +39,7 @@ void AttackPlayer( PLAYER *player1, PLAYER *player2);
|
||||
|
||||
|
||||
|
||||
int main(void)
|
||||
int init(void)
|
||||
{
|
||||
PLAYER* List=NULL;
|
||||
PLAYER* Element=NULL;
|
||||
|
@ -2,8 +2,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "fileHandler.h"
|
||||
#include <SDL2/SDL_thread.h>
|
||||
#include <SDL2/SDL_mutex.h>
|
||||
|
||||
int initResources() {
|
||||
//resOpen();
|
||||
@ -89,3 +87,7 @@ ARENA_H_TILE* genNewArena(int w, int h) {
|
||||
|
||||
return arenaOrigin;
|
||||
}
|
||||
|
||||
int deleteArena(ARENA_H_TILE* genNewArena) {
|
||||
|
||||
}
|
||||
|
23
gameMenu.c
23
gameMenu.c
@ -1,23 +0,0 @@
|
||||
#include "SDL2/SDL.h"
|
||||
|
||||
void initDisplayLib() {
|
||||
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
|
||||
printf("Erreur chargement librairie SDL ! %s\n",SDL_GetError());
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
int createMainWindows() {
|
||||
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
|
||||
printf("Erreur chargement librairie SDL ! %s\n",SDL_GetError());
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
SDL_Window *main_test;
|
||||
main_test = SDL_CreateWindow("My test windows", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 320, 140, SDL_WINDOW_OPENGL | SDL_WINDOW_BORDERLESS);
|
||||
SDL_Delay(5000);
|
||||
SDL_DestroyWindow(main_test);
|
||||
|
||||
SDL_Quit();
|
||||
return EXIT_SUCCESS;
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
#ifndef GAMEMENU_H_
|
||||
#define GAMEMENU_H_
|
||||
|
||||
|
||||
|
||||
#endif
|
2
main.c
2
main.c
@ -2,6 +2,8 @@
|
||||
#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_WIDTH 100 //Real value is A_X + 1
|
||||
|
@ -9,7 +9,12 @@ void initDisplayLib() {
|
||||
}
|
||||
}
|
||||
|
||||
int createMainWindows() {
|
||||
int createGameMenuWindows() {
|
||||
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
|
||||
printf("Erreur chargement librairie SDL ! %s\n",SDL_GetError());
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
SDL_Window *main_test;
|
||||
main_test = SDL_CreateWindow("My test windows", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 320, 140, SDL_WINDOW_OPENGL | SDL_WINDOW_BORDERLESS);
|
||||
SDL_Delay(5000);
|
||||
@ -18,3 +23,4 @@ int createMainWindows() {
|
||||
SDL_Quit();
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -4,13 +4,6 @@
|
||||
#include "logHelper.h"
|
||||
#include "SDL2/SDL.h"
|
||||
|
||||
void initDisplayLib() {
|
||||
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
|
||||
printf("Erreur chargement librairie SDL ! %s\n",SDL_GetError());
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
void displayScreen(int scr_id) {
|
||||
SDL_Window *main_test;
|
||||
main_test = SDL_CreateWindow("My test windows", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 320, 140, SDL_WINDOW_OPENGL | SDL_WINDOW_BORDERLESS);
|
||||
|
Loading…
x
Reference in New Issue
Block a user