Android Open Source - BlastWords Blast Words






From Project

Back to project page BlastWords.

License

The source code is released under:

Apache License

If you think the Android project BlastWords listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
 * BlastWords// ww  w .  jav a  2s . c  o m
 * BlastWords.java
 * 
 * Created by Lou Foster
 * Copyright Studio332 2013. All rights reserved.
 */
package com.studio332.blastwords;

import com.badlogic.gdx.Game;
import com.badlogic.gdx.graphics.Texture;
import com.studio332.blastwords.model.BlastWordsGame.Mode;
import com.studio332.blastwords.screens.GameScreen;
import com.studio332.blastwords.screens.MainMenuScreen;
import com.studio332.blastwords.screens.SplashScreen;
import com.studio332.blastwords.util.Assets;
import com.studio332.blastwords.util.SoundManager;

public class BlastWords extends Game {
   
   // commmon gameplay constants
   public static final int LOCK_THRESHOLD = 17;
   public static final float TGT_WIDTH = 800;
   public static final float TGT_HEIGHT = 1205;

   
   //public static final String LOG_NAME = BlastWords.class.getSimpleName();
   
   @Override
   public void create() {
      //Gdx.app.log(LOG_NAME, "Creating game");

      Texture.setEnforcePotImages(false);
      Assets.instance().load();
      SoundManager.instance().init();
      setScreen( new SplashScreen(this) );
   }
   
   public void showMainMenu() {
      setScreen( new MainMenuScreen(this) );
   }
   
   public void showGameScreen( Mode mode) {
      setScreen( new GameScreen(this, mode) );
   }

   @Override
   public void resize(int width, int height) {
   }

   @Override
   public void render() {
      super.render();   // passes the render along to the current screen
      // output the current FPS
      //fpsLogger.log();
   }

   @Override
   public void pause() {
      //Gdx.app.log( LOG_NAME, "Pause Game" );
   }

   @Override
   public void resume() {
      //Gdx.app.log( LOG_NAME, "Resume Game" );
   }

   @Override
   public void dispose() {
      //Gdx.app.log( LOG_NAME, "Dispose Game" );
      getScreen().dispose();
   }

}




Java Source Code List

com.studio332.blastwords.BlastWords.java
com.studio332.blastwords.MainActivity.java
com.studio332.blastwords.Main.java
com.studio332.blastwords.model.BlastWordsGame.java
com.studio332.blastwords.model.LetterInfo.java
com.studio332.blastwords.model.Settings.java
com.studio332.blastwords.objects.Blaster.java
com.studio332.blastwords.objects.Bomb.java
com.studio332.blastwords.objects.Digit.java
com.studio332.blastwords.objects.GameTimer.java
com.studio332.blastwords.objects.ScoreBoard.java
com.studio332.blastwords.objects.Tile.java
com.studio332.blastwords.screens.AbstractScreen.java
com.studio332.blastwords.screens.GameOver.java
com.studio332.blastwords.screens.GameScreen.java
com.studio332.blastwords.screens.GameStateListener.java
com.studio332.blastwords.screens.MainMenuScreen.java
com.studio332.blastwords.screens.Popup.java
com.studio332.blastwords.screens.SplashScreen.java
com.studio332.blastwords.util.Assets.java
com.studio332.blastwords.util.BlastWordsActions.java
com.studio332.blastwords.util.Overlay.java
com.studio332.blastwords.util.ParticleEffectActor.java
com.studio332.blastwords.util.SoundManager.java