Android Open Source - Hungry-Mouse Assets






From Project

Back to project page Hungry-Mouse.

License

The source code is released under:

MIT License

If you think the Android project Hungry-Mouse 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

//Name:   Assets.java
//Purpose:  assign reference variables for all the assets,images sound and music
//      loadingscreen.java will load all the assets for the game during the splash screen
/*from  w w w.j  a  v  a  2s.c om*/
package com.hungry.mouse.main;

import com.hungry.mouse.framework.Image;
import com.hungry.mouse.framework.Music;
import com.hungry.mouse.framework.Sound;

public class Assets {
  
  //use static so there is no need to create object to access them
  //also static is 15%-20% faster since there is no need of an object
  
  //rectangle buttons
  public static Image menu_buttons;
  
  //small buttons
  public static Image pause_button;
    
  public static Image sound_on_buttons,music_on_buttons,info_buttons,help,logo,play_buttons;
  public static Image about,help1,help2,help3,help4,arrow_buttons,control_buttons,gyroscope_buttons,level_buttons,level1_button,level2_button,level3_button;
  public static Image cheese_reward,bomb,bomb2,sign;
  public static Image menu, splash, background, character, character2, character3, Kamikazi, Kamikazi2, Kamikazi3, Kamikazi4, Kamikazi5;
  public static Image tiledirt, tilegrassTop, tilegrassBot, tilegrassLeft, tilegrassRight, characterJump, characterDown;
  public static Sound click,fire,jump,collision,gameover,passed,collect;
  public static Music theme;
  
  public static void load(SampleGame sampleGame) {
    // TODO Auto-generated method stub
    theme = sampleGame.getAudio().createMusic("menutheme.mp3");//get the asset
    theme.setLooping(true);//repeat background music
    theme.setVolume(0.80f);//volume set to 80%
    theme.play();//play
  }
  
}




Java Source Code List

com.hungry.mouse.framework.Audio.java
com.hungry.mouse.framework.FileIO.java
com.hungry.mouse.framework.Game.java
com.hungry.mouse.framework.Graphics.java
com.hungry.mouse.framework.Image.java
com.hungry.mouse.framework.Input.java
com.hungry.mouse.framework.Music.java
com.hungry.mouse.framework.Pool.java
com.hungry.mouse.framework.Screen.java
com.hungry.mouse.framework.Sound.java
com.hungry.mouse.framework.implementation.AccelerometerHandler.java
com.hungry.mouse.framework.implementation.AndroidAudio.java
com.hungry.mouse.framework.implementation.AndroidFastRenderView.java
com.hungry.mouse.framework.implementation.AndroidFileIO.java
com.hungry.mouse.framework.implementation.AndroidGame.java
com.hungry.mouse.framework.implementation.AndroidGraphics.java
com.hungry.mouse.framework.implementation.AndroidImage.java
com.hungry.mouse.framework.implementation.AndroidInput.java
com.hungry.mouse.framework.implementation.AndroidMusic.java
com.hungry.mouse.framework.implementation.AndroidSound.java
com.hungry.mouse.framework.implementation.MultiTouchHandler.java
com.hungry.mouse.framework.implementation.SingleTouchHandler.java
com.hungry.mouse.framework.implementation.TouchHandler.java
com.hungry.mouse.main.AboutScreen.java
com.hungry.mouse.main.Animation.java
com.hungry.mouse.main.Assets.java
com.hungry.mouse.main.Background.java
com.hungry.mouse.main.Bomb.java
com.hungry.mouse.main.Cheese.java
com.hungry.mouse.main.Enemy.java
com.hungry.mouse.main.GameScreen.java
com.hungry.mouse.main.HelpScreen1.java
com.hungry.mouse.main.HelpScreen2.java
com.hungry.mouse.main.HelpScreen3.java
com.hungry.mouse.main.HelpScreen4.java
com.hungry.mouse.main.Kamikazi.java
com.hungry.mouse.main.LevelSelectorScreen.java
com.hungry.mouse.main.LoadingScreen.java
com.hungry.mouse.main.MainMenuScreen.java
com.hungry.mouse.main.Mouse.java
com.hungry.mouse.main.Projectile.java
com.hungry.mouse.main.Rewards.java
com.hungry.mouse.main.SampleGame.java
com.hungry.mouse.main.Settings.java
com.hungry.mouse.main.Sign.java
com.hungry.mouse.main.SplashLoadingScreen.java
com.hungry.mouse.main.Tile.java