Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package data;
- import static helpers.Artist.*;
- import helpers.Clock;
- import data.TileGrid;
- import data.TileType;
- import org.lwjgl.opengl.Display;
- public class Boot {
- public Boot() {
- BeginSession();
- TileGrid grid = new TileGrid();
- grid.setTile(0,0, TileType.Dirt);
- grid.setTile(0, 1, TileType.Dirt);
- grid.setTile(0, 2, TileType.Dirt);
- grid.setTile(0, 3, TileType.Dirt);
- grid.setTile(1, 3, TileType.Dirt);
- grid.setTile(2, 3, TileType.Dirt);
- //Sets Tile coordinate to adjacent tile
- grid.setTile(2, 4, grid.getTile(2, 3).getType());
- grid.setTile(4, 8, TileType.TopR);
- grid.setTile(3, 8, TileType.TopL);
- grid.setTile(3, 9, TileType.BottomL);
- grid.setTile(4, 9, TileType.BottomR);
- Enemy e = new Enemy(QuickLoad("Enemy"), grid.getTile(10, 10), 64, 64, 6);
- Wave wave = new Wave(10, e);
- while(!Display.isCloseRequested()) {
- Clock.update();
- grid.Draw();
- wave.Update();
- Display.update();
- Display.sync(60);
- }
- Display.destroy();
- }
- public static void main(String[] args) {
- new Boot();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement