Added temporary icon and new font. Added minimum time when loading.
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:icon="@drawable/ic_launcher"
|
android:icon="@drawable/roselia_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:theme="@style/GdxTheme" >
|
android:theme="@style/GdxTheme" >
|
||||||
<activity
|
<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.
|
// Helper fields.
|
||||||
private AsyncAssetLoader loader;
|
private AsyncAssetLoader loader;
|
||||||
private CachedFontManager fontManager;
|
private CachedFontManager fontManager;
|
||||||
|
private float timeSinceShown;
|
||||||
|
private boolean loadingDone;
|
||||||
|
|
||||||
// Graphic data.
|
// Graphic data.
|
||||||
private BitmapFont font;
|
private BitmapFont font;
|
||||||
@@ -49,12 +51,18 @@ public class LoadingState extends BaseState{
|
|||||||
this.core = core;
|
this.core = core;
|
||||||
|
|
||||||
// Create the start button font.
|
// 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.
|
// Set up the background.
|
||||||
scrollingBckg = new ScrollingBackground("data/gfx/textures/floortiles.png", false);
|
scrollingBckg = new ScrollingBackground("data/gfx/textures/floortiles.png", false);
|
||||||
|
|
||||||
stateEnabled = false;
|
stateEnabled = false;
|
||||||
|
loadingDone = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void show(){
|
||||||
|
timeSinceShown = 0.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -74,13 +82,16 @@ public class LoadingState extends BaseState{
|
|||||||
|
|
||||||
}core.batch.end();
|
}core.batch.end();
|
||||||
|
|
||||||
if(loader != null){
|
if(!loadingDone && loader != null){
|
||||||
if(loader.loadAssets()){
|
if(loader.loadAssets()){
|
||||||
loader.notifyListeners();
|
loader.notifyListeners();
|
||||||
|
loadingDone = true;
|
||||||
core.nextState = game_states_t.MAIN_MENU;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
timeSinceShown += delta;
|
||||||
|
if(loadingDone && timeSinceShown >= 3.0f)
|
||||||
|
core.nextState = game_states_t.MAIN_MENU;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user