Example #1
0
 /** Draws a red outline of the personal shape */
 public void drawPersonal(Graphics g) {
   // Create a red color
   org.newdawn.slick.Color r = new org.newdawn.slick.Color(255, 0, 0);
   // Set the graphics to the red color
   g.setColor(r);
   updatePersonal();
   // draw the shape
   g.draw(personal);
 }
Example #2
0
  @Override
  public void render(Camera camera, GameContainer gameContainer) {
    Graphics graphics = gameContainer.getGraphics();
    graphics.pushTransform();
    graphics.translate(0, 40f);
    super.render(camera, gameContainer);
    graphics.popTransform();

    if (BattleToads.ALLOW_DEBUGGING) graphics.setColor(Color.magenta);
    if (BattleToads.ALLOW_DEBUGGING) graphics.draw(getCollisionHitbox(position));
  }
Example #3
0
 public void draw(Path path) {
   surface.draw(path);
 }
 @Override
 public void draw(Graphics g) {
   g.draw(this);
 }