Commits

Thomas Allen committed 204d4f3

Added a sprite to Main.java in terrain.gen

Comments (0)

Files changed (1)

src/com/xardov/terrain/gen/Main.java

 	
 	public Map map = new Map();
 	
+	Sprite sprite;
+	
 	public void init()
 	{
 		try 
 		
 		map.init();
 		
+		sprite = new Sprite(0, 20);
+		try {
+			sprite.loadImage("assets/graphics/alien.png", 43, 29);
+		} catch (Exception e) {
+			// TODO: handle exception
+		}
+		
 		while(!Display.isCloseRequested())
 		{
 			GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
 	public void render()
 	{
 		map.render();
+		sprite.render();
 	}
 	
 	public static void main(String[] args)