BREAKING CHANGE: Renamed SpriteFont type to Font
- Preparing MP3 files support - Jumped version to raylib 2.0-dev (too many breaking changes...)
This commit is contained in:
parent
6045062a05
commit
ec33e7d705
2 changed files with 3027 additions and 179 deletions
|
|
@ -35,7 +35,7 @@ typedef enum GameScreen { LOGO = 0, TITLE, GAMEPLAY, ENDING } GameScreen;
|
|||
// Global Variables Definition
|
||||
//----------------------------------------------------------------------------------
|
||||
GameScreen currentScreen;
|
||||
SpriteFont font;
|
||||
Font font;
|
||||
Music music;
|
||||
int endingStatus; // 1 - Win, 2 - Lose
|
||||
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ int main(int argc, char *argv[])
|
|||
// Global data loading (assets that must be available in all screens, i.e. fonts)
|
||||
InitAudioDevice();
|
||||
|
||||
font = LoadSpriteFont("resources/font.fnt");
|
||||
font = LoadFont("resources/font.fnt");
|
||||
music = LoadMusicStream("resources/audio/wave.ogg");
|
||||
|
||||
SetMusicVolume(music, 1.0f);
|
||||
|
|
@ -127,7 +127,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
// Unload all global loaded data (i.e. fonts) here!
|
||||
UnloadSpriteFont(font);
|
||||
UnloadFont(font);
|
||||
UnloadMusicStream(music);
|
||||
|
||||
CloseAudioDevice(); // Close audio context
|
||||
|
|
|
|||
Loading…
Reference in a new issue