Android Open Source - hiddenmarble Hidden Marble






From Project

Back to project page hiddenmarble.

License

The source code is released under:

Apache License

If you think the Android project hiddenmarble 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 com.mygdx.hiddenmarble.ui;
/*  www.ja  v  a2 s  .  c  o  m*/
import com.badlogic.gdx.Game;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.mygdx.hiddenmarble.utils.Assets;

public class HiddenMarble extends Game {
    /** Horizontal resolution. */
    public static final int WIDTH = 416;
    /** Vertical resolution. */
    public static final int HEIGHT = 624;
    
    /** Box2D meter-to-pixel ratio. */
    public static final float BOX2D_SCALE = 1.0f / 32.0f;
    
    /** Multiply accelerometer reading by this for gravity. */
    public static final float ACCEL_MULTIPLIER = -8.0f;

    /** The location of the save file. */
    public static final String SAVE = ".hidden_marble_save";
    
    Batch batch;
    
    @Override
    public void create() {
        batch = new SpriteBatch();
        Assets.init();
        setScreen(new GameScreen(this));
    }
    
    @Override
    public void dispose() {
        super.dispose();
        getScreen().dispose();
        Assets.dispose();
        batch.dispose();
    }
}




Java Source Code List

com.mygdx.hiddenmarble.android.AndroidLauncher.java
com.mygdx.hiddenmarble.desktop.DesktopLauncher.java
com.mygdx.hiddenmarble.entities.AbstractDynamicEntity.java
com.mygdx.hiddenmarble.entities.AbstractEntity.java
com.mygdx.hiddenmarble.entities.Borders.java
com.mygdx.hiddenmarble.entities.DefaultBorders.java
com.mygdx.hiddenmarble.entities.DefaultMarble.java
com.mygdx.hiddenmarble.entities.DefaultMazeBox.java
com.mygdx.hiddenmarble.entities.DynamicEntity.java
com.mygdx.hiddenmarble.entities.Entity.java
com.mygdx.hiddenmarble.entities.Marble.java
com.mygdx.hiddenmarble.entities.Material.java
com.mygdx.hiddenmarble.entities.MazeBox.java
com.mygdx.hiddenmarble.entities.MazeFixtureDef.java
com.mygdx.hiddenmarble.ui.GameScreen.java
com.mygdx.hiddenmarble.ui.HiddenMarble.java
com.mygdx.hiddenmarble.ui.WorldRenderer.java
com.mygdx.hiddenmarble.utils.Assets.java
com.mygdx.hiddenmarble.utils.BodyHelper.java
com.mygdx.hiddenmarble.utils.MazeHelper.java
com.mygdx.hiddenmarble.utils.SaveState.java
com.mygdx.hiddenmarble.utils.Serialization.java
com.mygdx.hiddenmarble.utils.SpriteHelper.java
com.mygdx.hiddenmarble.world.GameWorldAdapter.java
com.mygdx.hiddenmarble.world.GameWorldListener.java
com.mygdx.hiddenmarble.world.GameWorld.java