Android Open Source - Fruity-Bang Game Constant






From Project

Back to project page Fruity-Bang.

License

The source code is released under:

MIT License

If you think the Android project Fruity-Bang 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

package Game;
/* w  ww  .  jav a 2 s .  co m*/
/**
 *
 * @author Thong
 */
public interface GameConstant {

    //the place holder of map
    static final float PLACE_HOLDER = 5;
    /**
     * include boundery
     */
    static final int MAP_HEIGHT = 17;
    /**
     * include boundery
     */
    static final int MAP_WIDTH = 21;
    
    static final byte[][][] POSITIONS = new byte[MAP_WIDTH][MAP_HEIGHT][1];
    
    static final Object[][][] BUSH_POS = new Object[MAP_WIDTH][MAP_HEIGHT][1];
    
    static final Object[][] SA_POS = new Object[1][2];
    
    static final Object[][] WORM_POS = new Object[10][2];
    
    static final Object[][][] RUBY_POS = new Object[MAP_WIDTH][MAP_HEIGHT][1];
    
    static final Object[][][] BOMB_POS = new Object[MAP_WIDTH][MAP_HEIGHT][1];
    
    //constant value of physic thing on map
    static final byte EMPTY = 0;
    static final byte BUSH = 1;
    static final byte ROCK = 2;
    static final byte WORM = 3;
    static final byte FRUIT = 4;
    static final byte RUBY = 5;
    static final byte GATE = 6;
    
    //mute
    final static boolean[] isMute = new boolean[1];
//    static boolean isMute = false;
    
    //OBject
    final static String STRAWBERRY_OBJECT ="Models/strawberry/strawberry.j3o";
    final static String APPLE_OBJECT = "Models/apple/Apple.j3o";
    
    final static String SRTAWBERRY_MAT = "Materials/strawberry.j3m";
    final static String APPLE_MAT = "Materials/apple.j3m";
            
}




Java Source Code List

GameController.BushGhost.java
GameController.CharGhost.java
GameController.SaGhost.java
GameController.WormGhost.java
Game.GameConstant.java
Game.Game.java
Game.Home.java
Game.MapGenerator.java
GameModel.Bush.java
GameModel.Coin.java
GameModel.CuteModel.java
GameModel.Explosion.java
GameModel.Fruit.java
GameModel.Rock.java
GameModel.Ruby.java
GameModel.Sa.java
GameModel.Win.java
GameModel.Worm.java
Game.Scene.java
Game.Store.java
Model.Account.java
vn.edu.rmit.fruitybang.GameActivity.java
vn.edu.rmit.fruitybang.LoadingAsyncTask.java
vn.edu.rmit.fruitybang.MainActivity.java
vn.edu.rmit.fruitybang.SelectionFragment.java
vn.edu.rmit.fruitybang.SplashFragment.java