Advertisement
wreed12345

Untitled

Jun 3rd, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. package com.reed.birdseye;
  2.  
  3. import com.badlogic.gdx.Game;
  4. import com.badlogic.gdx.Gdx;
  5. import com.badlogic.gdx.Preferences;
  6. import com.badlogic.gdx.files.FileHandle;
  7. import com.reed.birdseye.GameScreen;
  8.  
  9. public class BirdsEye extends Game {
  10.     Preferences prefs;
  11.    
  12.     @Override
  13.     public void create () {
  14.         prefs = Gdx.app.getPreferences("LodeScapePrefs");
  15.         Time.setTimeOfDay(prefs.getFloat("Time.getTimeOfDay()"));
  16.        
  17.         Assets.load();
  18.         setScreen(new GameScreen(this));
  19.     }
  20.    
  21.  
  22.     public void render() {
  23.         super.render();
  24.     }
  25.  
  26.     public void dispose () {
  27.         prefs.putFloat("Time", Time.getTimeOfDay());
  28.         super.dispose();
  29.     }
  30.  
  31.  
  32.     public void resize(int width, int height) {
  33.     }
  34.  
  35.     public void pause() {  
  36.     }
  37.  
  38.     public void resume() { 
  39.     }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement