Added temporary icon and new font. Added minimum time when loading.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:icon="@drawable/roselia_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/GdxTheme" >
|
||||
<activity
|
||||
|
BIN
android/assets/data/fonts/Big_Bottom_Cartoon.ttf
Normal file
BIN
android/assets/data/fonts/Big_Bottom_Cartoon.ttf
Normal file
Binary file not shown.
BIN
android/res/drawable-hdpi/roselia_launcher.png
Normal file
BIN
android/res/drawable-hdpi/roselia_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
BIN
android/res/drawable-mdpi/roselia_launcher.png
Normal file
BIN
android/res/drawable-mdpi/roselia_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
android/res/drawable-xhdpi/roselia_launcher.png
Normal file
BIN
android/res/drawable-xhdpi/roselia_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
BIN
android/res/drawable-xxhdpi/roselia_launcher.png
Normal file
BIN
android/res/drawable-xxhdpi/roselia_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
android/roselia_launcher-web.png
Normal file
BIN
android/roselia_launcher-web.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 143 KiB |
@@ -32,6 +32,8 @@ public class LoadingState extends BaseState{
|
||||
// Helper fields.
|
||||
private AsyncAssetLoader loader;
|
||||
private CachedFontManager fontManager;
|
||||
private float timeSinceShown;
|
||||
private boolean loadingDone;
|
||||
|
||||
// Graphic data.
|
||||
private BitmapFont font;
|
||||
@@ -49,12 +51,18 @@ public class LoadingState extends BaseState{
|
||||
this.core = core;
|
||||
|
||||
// Create the start button font.
|
||||
font = fontManager.loadFont("data/fonts/d-puntillas-B-to-tiptoe.ttf", CachedFontManager.BASE_FONT_SIZE * 3);
|
||||
font = fontManager.loadFont("data/fonts/Big_Bottom_Cartoon.ttf", CachedFontManager.BASE_FONT_SIZE * 3);
|
||||
|
||||
// Set up the background.
|
||||
scrollingBckg = new ScrollingBackground("data/gfx/textures/floortiles.png", false);
|
||||
|
||||
stateEnabled = false;
|
||||
loadingDone = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void show(){
|
||||
timeSinceShown = 0.0f;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -74,13 +82,16 @@ public class LoadingState extends BaseState{
|
||||
|
||||
}core.batch.end();
|
||||
|
||||
if(loader != null){
|
||||
if(!loadingDone && loader != null){
|
||||
if(loader.loadAssets()){
|
||||
loader.notifyListeners();
|
||||
|
||||
core.nextState = game_states_t.MAIN_MENU;
|
||||
loadingDone = true;
|
||||
}
|
||||
}
|
||||
|
||||
timeSinceShown += delta;
|
||||
if(loadingDone && timeSinceShown >= 3.0f)
|
||||
core.nextState = game_states_t.MAIN_MENU;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user