Advertisement
souldown

Untitled

Jan 15th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1.     public static float getBackgroundXposStarting(){
  2.        
  3.        
  4.         switch (StageHandler.getCurrentLevelSelected()) {
  5.         case StageHandler.LEVEL_TRAIN:
  6.             return GFX.getDeviceViewport().getX()+GFX.getDeviceViewport().getWidth(); //places off screen right to move into shot
  7.         //more statements  
  8.         default:
  9.             //shits fucked yo!
  10.             break;
  11.         }
  12.        
  13.        
  14.         if(StageHandler.getCurrentLevelSelected() == StageHandler.LEVEL_TRAIN){
  15.             return GFX.getDeviceViewport().getX()+GFX.getDeviceViewport().getWidth(); //places off screen right to move into shot
  16.         //some if else
  17.         }else{
  18.             //shits fucked yo!
  19.             return 1;
  20.         }
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement