Example usage for com.google.gwt.maeglin89273.game.mengine.component Physical draw

List of usage examples for com.google.gwt.maeglin89273.game.mengine.component Physical draw

Introduction

In this page you can find the example usage for com.google.gwt.maeglin89273.game.mengine.component Physical draw.

Prototype

public abstract void draw(Context2d context);

Source Link

Usage

From source file:com.google.gwt.maeglin89273.shared.test.volcanogame.component.VolcanoWorld.java

@Override
public void draw(Context2d context) {
    context.drawImage(background.getImage(), 0, 0);
    volcano.draw(context);/*w  w w  .j a  v  a 2  s  . c  o  m*/
    context.save();
    //context.setShadowBlur(12);
    for (Physical fireball : fireballs) {
        fireball.draw(context);
    }

    /*context.setShadowBlur(3);
    context.setShadowOffsetX(4);
    context.setShadowOffsetY(4);
    context.setShadowColor("rgba(65,65,65,0.3)");*/
    context.drawImage(clouds.getImage(), 20, 30);
    context.restore();
}