/*
 * Block
 *
 * Block on the map
 */


export default class Block extends Phaser.Sprite {

    constructor(level, x, y, index) {

        var tx = level.x + level.tileWidth * x;
        var ty = level.y + level.tileHeight * y;

        var tx = level.tileWidth * x;
        var ty = level.tileHeight * y;

        super(level.game, tx, ty, 'blockssheet', index);

        this.level = level; 
        this.game = this.level.game;

        this.grid_x = x;
        this.grid_y = y;

        this.x = tx;
        this.y = ty;

        this.blockindex = index;

    }
    
    
}
