SHARE
TWEET

Untitled

a guest Nov 20th, 2016 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.     private Ghost makeSpookyGhost(float x, float y) {
  3.         Pixmap spookyPixmap = new Pixmap(48, 88, Format.RGBA8888);
  4.         spookyPixmap.setColor(Color.WHITE);
  5.         spookyPixmap.fillCircle(24, 25, 24);
  6.         spookyPixmap.fillRectangle(0, 24, 48, 50);
  7.         for (int i = 0; i < 5; i++) {
  8.             spookyPixmap.fillTriangle(i * 10 - 3, 70, i * 10 + 7, 70, i * 10 + 5, 88);
  9.         }
  10.         spookyPixmap.setColor(Color.BLACK);
  11.         spookyPixmap.fillCircle(24, 32, 8);
  12.         Ghost g = new Ghost(GhostType.Spooky, new Texture(spookyPixmap), x, y);
  13.         spookyPixmap.dispose();
  14.         return g;
  15.     }
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