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
34 changed files with 3027 additions and 179 deletions
|
@ -58,7 +58,7 @@ int main(void)
|
|||
// Global data loading (assets that must be available in all screens, i.e. fonts)
|
||||
InitAudioDevice();
|
||||
|
||||
font = LoadSpriteFont("resources/mecha.png");
|
||||
font = LoadFont("resources/mecha.png");
|
||||
music = LoadMusicStream("resources/ambient.ogg");
|
||||
fxCoin = LoadSound("resources/coin.wav");
|
||||
|
||||
|
@ -96,7 +96,7 @@ int main(void)
|
|||
}
|
||||
|
||||
// Unload all global loaded data (i.e. fonts) here!
|
||||
UnloadSpriteFont(font);
|
||||
UnloadFont(font);
|
||||
UnloadMusicStream(music);
|
||||
UnloadSound(fxCoin);
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ typedef enum GameScreen { LOGO = 0, TITLE, OPTIONS, GAMEPLAY, ENDING } GameScree
|
|||
// Global Variables Definition
|
||||
//----------------------------------------------------------------------------------
|
||||
GameScreen currentScreen;
|
||||
SpriteFont font;
|
||||
Font font;
|
||||
Music music;
|
||||
Sound fxCoin;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue