@@ -0,0 +1,2442 @@
+/*The MIT License (MIT)%0A%0ACopyright (c) 2015 Willians Magalh%C3%A3es Primo%0A%0APermission is hereby granted, free of charge, to any person obtaining a copy%0Aof this software and associated documentation files (the %22Software%22), to deal%0Ain the Software without restriction, including without limitation the rights%0Ato use, copy, modify, merge, publish, distribute, sublicense, and/or sell%0Acopies of the Software, and to permit persons to whom the Software is%0Afurnished to do so, subject to the following conditions:%0A%0AThe above copyright notice and this permission notice shall be included in all%0Acopies or substantial portions of the Software.%0A%0ATHE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0AAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0ALIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0AOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE%0ASOFTWARE. */%0A%0Apackage easygame;%0A%0Aimport android.app.Activity;%0Aimport android.os.Bundle;%0A%0A/**%0A * Essa classe deve ser usada como base para a cria%C3%A7%C3%A3o da Activity Principal do Jogo a MainActivity.%0A * @author Wiliams Magalh%C3%A3es Primo%0A */%0A%0Apublic abstract class GameActivity extends Activity%7B%0A%09private GameView gameView = null;%0A%09private Scene mainScene = null;%0A%09%0A%09/**%0A%09 * M%C3%A9todo chamado na cria%C3%A7%C3%A3o da Activity.%0A%09 */%0A%09@Override%0A%09protected  void onCreate(Bundle savedInstanceState) %7B%0A%09%09setTheme(android.R.style.Theme_Light_NoTitleBar);%0A%09%09super.onCreate(savedInstanceState);%0A%09%09onInitialize();%0A%09%09gameView = new GameView(this, new SplashScreemScene(mainScene));%0A%09%09setContentView(gameView);%0A%09%7D%0A%09%0A%09/**%0A%09 * Essa fun%C3%A7%C3%A3o deve ser implementada para iniciar o Jogo, assim como especificar a cena inicial.%0A%09 */%0A%09protected abstract void onInitialize();%0A%0A%09/**%0A%09 * Retorna o atual GameView.%0A%09 */%0A%09public  GameView getGameView() %7B%0A%09%09return gameView;%0A%09%7D%0A%0A%09/**%0A%09 * Seta o atual GameView.%0A%09 */%0A%09public  void setGameView(GameView gameView) %7B%0A%09%09this.gameView = gameView;%0A%09%7D%0A%0A%09/**%0A%09 * Seta a cena principal, ou seja, a primeira cena que deve ser carregada.%0A%09 */%0A%09public  Scene getMainScene() %7B%0A%09%09return mainScene;%0A%09%7D%0A%0A%09/**%0A%09 * Retorna a cena principal, ou seja, a primeira cena que deve ser carregada.%0A%09 */%0A%09public  void setMainScene(Scene mainScene) %7B%0A%09%09this.mainScene = mainScene;%0A%09%7D%0A%7D%0A

Create GameActivity.java