Back to project page Hungry-Mouse.
The source code is released under:
MIT License
If you think the Android project Hungry-Mouse listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
//Name: SplashScreen.java //Purpose: show this screen when loading assets, before the main menu screen //from w w w . j av a 2 s . co m package com.hungry.mouse.main; import com.hungry.mouse.framework.Game; import com.hungry.mouse.framework.Graphics; import com.hungry.mouse.framework.Screen; import com.hungry.mouse.framework.Graphics.ImageFormat; public class SplashLoadingScreen extends Screen { //constructor public SplashLoadingScreen(Game game) { super(game); } //draw splash image @Override public void update(float deltaTime) { Graphics g = game.getGraphics(); Assets.splash= g.newImage("splash.png", ImageFormat.RGB565); game.setScreen(new LoadingScreen(game)); } @Override public void paint(float deltaTime) { } @Override public void pause() { } @Override public void resume() { } @Override public void dispose() { } @Override public void backButton() { } }