Example usage for com.google.gwt.maeglin89273.game.mengine.asset.sprite SpriteBlock SpriteBlock

List of usage examples for com.google.gwt.maeglin89273.game.mengine.asset.sprite SpriteBlock SpriteBlock

Introduction

In this page you can find the example usage for com.google.gwt.maeglin89273.game.mengine.asset.sprite SpriteBlock SpriteBlock.

Prototype

public SpriteBlock(int x, int y, int width, int height, SpriteSheet sheet) 

Source Link

Usage

From source file:com.google.gwt.maeglin89273.game.ashinyballonthecross.client.tutorial.component.BlueMark.java

public BlueMark() {
    super(new Point(0, 0), 0, 100, 100);
    int offset = 3 * (200 + SpriteBlock.SPACING);
    this.spriteBlock = new SpriteBlock(offset, offset, 200, 200, ASBOTXConfigs.Utility.getButtonsSpriteSheet());
}

From source file:com.google.gwt.maeglin89273.game.ashinyballonthecross.client.tutorial.component.NextStepButton.java

public NextStepButton(Point p, TutorialManager manager) {
    super(p, 50, new SpriteBlock(4 * (200 + SpriteBlock.SPACING), 2 * (200 + SpriteBlock.SPACING), 200, 200,
            ASBOTXConfigs.Utility.getButtonsSpriteSheet()));
    this.manager = manager;
}

From source file:com.google.gwt.maeglin89273.game.ashinyballonthecross.client.tutorial.component.StepBoard.java

public StepBoard(Point leftTopCorner, double centerX) {
    super(leftTopCorner, 200, 420);
    this.titleLabel = new GameLabel(new Point(centerX, 30), TextAlign.CENTER, TextBaseline.MIDDLE, null,
            ASBOTXConfigs.Color.GRAY, ASBOTXConfigs.getCGFont(32));
    this.block = new SpriteBlock(0, 0, 200, 420,
            MEngine.getAssetManager().getSpriteSheet("images/tutorial_steps.png"));
}

From source file:com.google.gwt.maeglin89273.game.ashinyballonthecross.client.tutorial.component.TasksList.java

public TasksList(double centerX, double screenHeight) {
    super(new Point(centerX, 0), WIDTH, 0);
    this.screenHeight = screenHeight;
    block = new SpriteBlock(0, 0, 255, 0,
            MEngine.getAssetManager().getSpriteSheet("images/tutorial_tasks.png"));
}