import java.awt.Color;
import java.awt.Graphics;
import java.util.ArrayList;

import javax.swing.JFrame;

import entities.Entity;
import basic_types.Coords;

/* Brief: MainRuntime is the class which will initialize
 * 		a window and the game loop. Images will be drawn
 * 		inside the window and updated by the game loop.
 */
public class MainRuntime extends JFrame {

	// Currently this sets a point to 0.
	public static int x = 0;
	// This is a list of Entities which can be used to track all
	// entities in the game.
	private ArrayList<Entity> entityList = new ArrayList<Entity>();
	
	public static void main(String[] args) {
/*		// Opens a 1280x720 window to start the game
<<<<<<< HEAD
		MainRuntime gameWindow = new MainRuntime();
		gameWindow.runLoop();
		System.exit(0);
=======
		JFrame frame = new JFrame();
		frame.setSize(1280, 720);
		frame.setResizable(false);
		frame.setVisible(true);


		Graphics graphics = frame.getGraphics();
		frame.paint(graphics);
>>>>>>> parent of 19ae1f6... Now draws a blue rectangle
*/
	}
	
	// This initializes the game settings. We can later save
	// User settings in a file to read and set them here
	public void init(String title, int width, int height) {
		this.setTitle(title);
		this.setSize(width, height);
		this.setResizable(false);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setVisible(true);
	}
	
	// This is the game loop
	// TODO: FPS handling?
	public void runLoop() {
		init("Angry-Beaver", 1080, 720);
        while(true)
        {
                draw();
        }
	}
	
	// Draw a blank Graphics, then update and
	// draw the next movement.
	public void draw() {
		Graphics g = getGraphics();
		g.setColor(Color.WHITE);
		g.fillRect(0, 0, 1080, 720);
		
		// Increment x by 1
		if(x != 500){
			x++;
		}
		
		g.setColor(Color.BLUE);
		g.fillRect(x, x, 100, 100);
	}
}

@@ -623,18 +623,16 @@
 args) %7B%0A
-/*
 %09%09// Ope
@@ -674,21 +674,8 @@
 ame%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A
 %09%09Ma
@@ -740,16 +740,16 @@
 Loop();%0A
+
 %09%09System
@@ -762,259 +762,8 @@
 0);%0A
-=======%0A%09%09JFrame frame = new JFrame();%0A%09%09frame.setSize(1280, 720);%0A%09%09frame.setResizable(false);%0A%09%09frame.setVisible(true);%0A%0A%0A%09%09Graphics graphics = frame.getGraphics();%0A%09%09frame.paint(graphics);%0A%3E%3E%3E%3E%3E%3E%3E parent of 19ae1f6... Now draws a blue rectangle%0A*/%0A
 %09%7D%0A%09

Update MainRuntime.java