32 lines
727 B
Java
32 lines
727 B
Java
package shootergame.tiles;
|
|
|
|
import shootergame.Main;
|
|
import shootergame.display.Camera;
|
|
import shootergame.entity.player.Player;
|
|
import shootergame.util.gl.GlHelpers;
|
|
import shootergame.util.gl.VerticalRender;
|
|
import shootergame.util.gl.texture.TextureReference;
|
|
import shootergame.util.math.vec.Vec2d;
|
|
import shootergame.util.math.vec.Vec2i;
|
|
|
|
public class TileVertical extends Tile
|
|
{
|
|
private TextureReference tex;
|
|
private int h;
|
|
|
|
public TileVertical(String id, TextureReference tex, int height) {
|
|
super(id);
|
|
|
|
// Store some variables
|
|
this.tex = tex;
|
|
this.h = height;
|
|
}
|
|
|
|
@Override
|
|
public void render(Vec2d pos, Camera camera) {
|
|
super.render(pos, camera);
|
|
VerticalRender.render(pos, camera, tex, h);
|
|
}
|
|
|
|
}
|