/* * Alien Chase 2013 Chema Edition -- a remake of Alien Chase 2013 by danirod * Copyright (C) 2013 Dani Rodríguez <danirod@outlook.com> Twitter: @danirod93 * & José María Valera Reales <chemaclass@outlook.es> Twitter: @Chemaclass * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package tk.makigas.chase; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.audio.Sound; import com.badlogic.gdx.graphics.Texture; /** * @author danirod * */ public class LoadingScreen extends AbstractScreen { public LoadingScreen(AlienChase game) { super(game); } @Override public void render(float delta) { if (AlienChase.MANAGER.update()) { if (GameplayScreen.isSonidoFondo()) AlienChase.MANAGER.get("sound/loop-game.mp3", Sound.class) .loop(0.6f); game.setScreen(game.MAIN); } int width, height; width = Gdx.graphics.getWidth(); height = Gdx.graphics.getHeight(); if (AlienChase.MANAGER.isLoaded("images/cargando.png", Texture.class)) { game.SB.begin(); game.SB.draw(AlienChase.MANAGER.get("images/cargando.png", Texture.class), 0, 0, width, height); game.SB.end(); } } @Override public void show() { } @Override public void hide() { } @Override public void dispose() { } }