SHARE
TWEET

Untitled

a guest Sep 3rd, 2014 223 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class SimpleModel {
  2.         float positionx;
  3.         float positionY;
  4.        
  5.         SimpleModel(float x, float y) {
  6.                 this.positionX = x;
  7.                 this.positionY = y;
  8.         }
  9. }
  10.  
  11. ...
  12.  
  13. Array<SimpleModel> models = new Array<SimpleModel>();
  14.  
  15. models.add(new SimpleModel(10, 0));
  16. models.add(new SimpleModel(20, 15));
  17. models.add(new SimpLEModel(0, 10));
  18.  
  19. ...
  20.  
  21.  
  22.  
  23.  
  24. //render
  25. ...
  26.  
  27. for (SimpleModel model : models) {
  28.         batch.draw(modelImage, model.positionX, model.positionY);
  29. }
  30.  
  31. ...
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top