mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
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:
@ -49,7 +49,7 @@ int main()
|
||||
Texture2D gframe = LoadTexture("resources/gframe.png");
|
||||
|
||||
// Load game resources: fonts
|
||||
SpriteFont font = LoadSpriteFont("resources/komika.png");
|
||||
Font font = LoadFont("resources/komika.png");
|
||||
|
||||
// Define scrolling variables
|
||||
int backScrolling = 0;
|
||||
@ -438,7 +438,7 @@ int main()
|
||||
UnloadTexture(gamera);
|
||||
|
||||
// Unload font texture
|
||||
UnloadSpriteFont(font);
|
||||
UnloadFont(font);
|
||||
|
||||
CloseWindow(); // Close window and OpenGL context
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
@ -52,7 +52,7 @@ int main()
|
||||
Texture2D gframe = LoadTexture("resources/gframe.png");
|
||||
|
||||
// Load game resources: fonts
|
||||
SpriteFont font = LoadSpriteFont("resources/komika.png");
|
||||
Font font = LoadFont("resources/komika.png");
|
||||
|
||||
// Load game resources: sounds
|
||||
Sound eat = LoadSound("resources/eat.wav");
|
||||
@ -454,7 +454,7 @@ int main()
|
||||
UnloadTexture(gamera);
|
||||
|
||||
// Unload font texture
|
||||
UnloadSpriteFont(font);
|
||||
UnloadFont(font);
|
||||
|
||||
// Unload sounds
|
||||
UnloadSound(eat);
|
||||
|
||||
@ -55,7 +55,7 @@ int main()
|
||||
Texture2D gframe = LoadTexture("resources/gframe.png");
|
||||
|
||||
// Load game resources: fonts
|
||||
SpriteFont font = LoadSpriteFont("resources/komika.png");
|
||||
Font font = LoadFont("resources/komika.png");
|
||||
|
||||
// Load game resources: sounds
|
||||
Sound eat = LoadSound("resources/eat.wav");
|
||||
@ -479,7 +479,7 @@ int main()
|
||||
UnloadTexture(gamera);
|
||||
|
||||
// Unload font texture
|
||||
UnloadSpriteFont(font);
|
||||
UnloadFont(font);
|
||||
|
||||
// Unload sounds
|
||||
UnloadSound(eat);
|
||||
|
||||
@ -48,7 +48,7 @@ Texture2D swhale;
|
||||
Texture2D fish;
|
||||
Texture2D gframe;
|
||||
|
||||
SpriteFont font;
|
||||
Font font;
|
||||
|
||||
Sound eat;
|
||||
Sound die;
|
||||
@ -119,7 +119,7 @@ int main()
|
||||
gframe = LoadTexture("resources/gframe.png");
|
||||
|
||||
// Load game resources: fonts
|
||||
font = LoadSpriteFont("resources/komika.png");
|
||||
font = LoadFont("resources/komika.png");
|
||||
|
||||
// Load game resources: sounds
|
||||
eat = LoadSound("resources/eat.wav");
|
||||
@ -186,7 +186,7 @@ int main()
|
||||
UnloadTexture(gamera);
|
||||
|
||||
// Unload font texture
|
||||
UnloadSpriteFont(font);
|
||||
UnloadFont(font);
|
||||
|
||||
// Unload sounds
|
||||
UnloadSound(eat);
|
||||
|
||||
Reference in New Issue
Block a user