(20111213)
This commit is contained in:
26
GameLib.c
Normal file
26
GameLib.c
Normal file
@@ -0,0 +1,26 @@
|
||||
#include <SDL/SDL.h>
|
||||
|
||||
#include "Draw.h"
|
||||
#include "Input.h"
|
||||
#include "Audio.h"
|
||||
#include "Entity.h"
|
||||
#include "GameLib.h"
|
||||
|
||||
|
||||
/////////////////////////////
|
||||
// GameLib_Init
|
||||
//
|
||||
// Initializes the game.
|
||||
int GameLib_Init(int w,int h,char *title,int fps){
|
||||
if(!Draw_Init(w,h,title,fps)){
|
||||
return(0);
|
||||
}
|
||||
if(!Input_Init()){
|
||||
return(0);
|
||||
}
|
||||
Audio_Init();
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user