Android Open Source - square-libgdx Assets






From Project

Back to project page square-libgdx.

License

The source code is released under:

GNU General Public License

If you think the Android project square-libgdx 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.denzyldick.square;
/*from   w w  w  . j a v a  2s. com*/
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;

public class Assets {

  private static AssetManager manager;
  
  private Assets()
  {
    
  }
  
  public static void loadAssets()
  {
    /*
     * loading stuff
     */
    manager = new AssetManager();
    manager.load("data/splashscreenbackground.png",Texture.class);
    manager.load("data/ball.png",Texture.class);
    manager.load("ui/pauzebutton.png",Texture.class);
    //manager.load("font/font.ttf", FreeTypeFontGenerator.class);
    manager.load("sounds/failure.ogg",Sound.class);
    manager.load("sounds/menuclick.ogg",Sound.class);
    manager.load("sounds/musicloop1.ogg",Music.class);
    manager.load("sounds/musicloop2.ogg",Music.class);
    manager.load("sounds/object.ogg",Sound.class);
    manager.load("sounds/succes.ogg",Sound.class);
    manager.load("ui/button.pack",TextureAtlas.class);
  }
  public static FileHandle getAsset(String filename, Class type)
  {
    
    return manager.get(filename);
  }
  public static void disposeAssets()
  {
    manager.dispose();
  }
  
  public static float assetsLoadProgress()
  {
    return manager.getProgress();
  }

  public boolean isUpdating() {
    // TODO Auto-generated method stub
    return manager.update();
  }
}




Java Source Code List

actors.Square.java
com.denzyldick.square.Assets.java
com.denzyldick.square.BackgroundAnimation.java
com.denzyldick.square.File.java
com.denzyldick.square.Font.java
com.denzyldick.square.Main.java
com.denzyldick.square.SoundManager.java
com.denzyldick.square.SquareMain.java
com.denzyldick.square.StarManagement.java
com.denzyldick.square.client.GwtLauncher.java
com.denzyldick.square.json.JsonArray.java
com.denzyldick.square.json.JsonLiteral.java
com.denzyldick.square.json.JsonNumber.java
com.denzyldick.square.json.JsonObject.java
com.denzyldick.square.json.JsonParser.java
com.denzyldick.square.json.JsonString.java
com.denzyldick.square.json.JsonValue.java
com.denzyldick.square.json.JsonWriter.java
com.denzyldick.square.json.ParseException.java
com.realcode.square.MainActivity.java
screens.GameMenu.java
screens.GameScreen.java
screens.LostScreen.java
screens.MenuScreen.java
screens.OptionsScreen.java
screens.SplashScreen.java
screens.TutorialScreen.java
screens.WonScreen.java