Back to project page toyapp.
The source code is released under:
Copyright (c) 2013, Chris Dawes All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * ...
If you think the Android project toyapp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.advancedtelematic.toyapp; /*from w ww . j a va2s. c om*/ import com.badlogic.gdx.ApplicationListener; import com.badlogic.gdx.Game; public class MyToyApp extends Game { private MainScreen mainScreen; private AboutScreen aboutScreen; private GameScreen gameScreen; @Override public void create() { setScreen(getMainScreen()); } public MainScreen getMainScreen() { if(mainScreen == null) { this.mainScreen = new MainScreen(this); } return mainScreen; } public AboutScreen getAboutScreen() { if(aboutScreen == null) { this.aboutScreen = new AboutScreen(this); } return aboutScreen; } public GameScreen getGameScreen() { if(gameScreen == null) { this.gameScreen = new GameScreen(this); } return gameScreen; } }