This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<uses-sdk | |
android:minSdkVersion="8" | |
android:targetSdkVersion="21" /> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | |
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
import org.lwjgl.LWJGLException; | |
import org.lwjgl.opengl.Display; | |
import org.lwjgl.opengl.DisplayMode; | |
import org.lwjgl.opengl.GL11; | |
import org.lwjgl.input.Keyboard; | |
public class QuadExample { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Tile | |
{ | |
/// <summary> | |
/// The id of the player who owns this tile, if it is owned. -1 means no one 'owns' it | |
/// </summary> | |
public int ownedPlayerId = -1; | |
/// <summary> | |
/// The id of the player whose path contains this node. -1 means not in a path | |
/// </summary> | |
public int pathPlayerId = -1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WorldMap | |
{ | |
public Tile[,] worldTiles = new Tile[150, 150]; | |
/// <summary> | |
/// Check if the given tile is owned by the given player | |
/// </summary> | |
/// <param name="x">The x co-ordinate of the tile</param> | |
/// <param name="y">The y co-ordinate of the tile</param> | |
/// <param name="playerId">The id of the player</param> |