Advertisement
Guest User

Untitled

a guest
Apr 24th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. g.setDrawMode(Graphics.MODE_ALPHA_MAP);
  2. sprite.draw(position.x - view.x-5, position.y - view.y-5,1.1f);
  3. g.setDrawMode(Graphics.MODE_ALPHA_BLEND);
  4. g.setColor(outlineColor);
  5. g.fillRect(position.x - view.x-5, position.y - view.y-5, sprite.getWidth(), sprite.getHeight());
  6. g.setDrawMode(Graphics.MODE_NORMAL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement