Example usage for com.badlogic.gdx.math Intersector Intersector

List of usage examples for com.badlogic.gdx.math Intersector Intersector

Introduction

In this page you can find the example usage for com.badlogic.gdx.math Intersector Intersector.

Prototype

Intersector

Source Link

Usage

From source file:com.bss.game.World.java

License:Apache License

public World(WorldListener listener) {
    this.slappy = new SlappySeal(-10f, 95f);
    ////  ww  w. jav  a  2s  .co m
    this.hook = new Hook(80f, 250f, this);
    //this.boot = new Boot(480f, 400f, this, 0);
    //this.trout = new Trout(200f, 800f, this, 0);
    pointPosition = new Vector2();
    //this.hook.velocity.setAngle(90f);
    //
    /*this.platforms = new ArrayList<Platform>();
    this.springs = new ArrayList<Spring>();
    this.squirrels = new ArrayList<Squirrel>();
    this.coins = new ArrayList<Coin>();*/
    this.listener = listener;
    rand = new Random();
    //generateLevel();

    //this.heightSoFar = 0;
    //this.score = 0;

    time = 10;
    timeText = "" + time;
    layout = new GlyphLayout(Assets.font, timeText, Color.YELLOW, 0f, 0, false);
    //layout.setText(font, timeText, Color.BLACK, 0f, 0, false);

    this.state = WORLD_STATE_RUNNING;
    i = new Intersector();
    eh = new EllipseHit(10);

    enemies = new ArrayList<EnemyGameObject>();
    hookedEnemies = new ArrayList<EnemyGameObject>();
    setEnemiesFirst();
    hookedFish = 0;
}