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

