public static Image image( int index ) { Image image = new Image( Assets.BADGES ); if (atlas == null) { atlas = new TextureFilm( image.texture, 16, 16 ); } image.frame( atlas.get( index ) ); return image; } }
protected void switchScene() { Camera.reset(); if (scene != null) { scene.destroy(); } scene = requestedScene; if (onChange != null) onChange.beforeCreate(); scene.create(); if (onChange != null) onChange.afterCreate(); onChange = null; Game.elapsed = 0f; Game.timeScale = 1f; }
public boolean overlapsScreenPoint( int x, int y ) { Camera c = camera(); if (c == null) return false; PointF p = c.screenToCamera( x, y ); return overlapsPoint( p.x, p.y ); }
@Override public void update() { super.update(); if (!paused) { updateAnimation(); } }
public static Image image( int index ) { Image image = new Image( Assets.BADGES ); if (atlas == null) { atlas = new TextureFilm( image.texture, 16, 16 ); } image.frame( atlas.get( index ) ); return image; } }
protected void switchScene() { Camera.reset(); if (scene != null) { scene.destroy(); } scene = requestedScene; if (onChange != null) onChange.beforeCreate(); scene.create(); if (onChange != null) onChange.afterCreate(); onChange = null; Game.elapsed = 0f; Game.timeScale = 1f; Game.timeTotal = 0f; }
public boolean overlapsScreenPoint( int x, int y ) { Camera c = camera(); if (c != null) { PointF p = c.screenToCamera( x, y ); return overlapsPoint( p.x, p.y ); } else { return false; } }
@Override public void update() { super.update(); if (!paused) { updateAnimation(); } }
public static Image image( int index ) { Image image = new Image( Assets.BADGES ); if (atlas == null) { atlas = new TextureFilm( image.texture, 16, 16 ); } image.frame( atlas.get( index ) ); return image; } }
public boolean overlapsScreenPoint( int x, int y ) { Camera c = camera(); if (c == null) return false; PointF p = c.screenToCamera( x, y ); return overlapsPoint( p.x, p.y ); }
@Override public void update() { super.update(); if (!paused) { updateAnimation(); } }