 # THIS SCRIPT INCLUDED WHEN game.html LOADS. 
 
+############################################################
 # "global" configuration constants
 
 FRAMERATE = 1 # frames per second 
 INTERVAL = 1000 / FRAMERATE
 
+############################################################
 # "global" game state
 
 canvasEdgeX = $(window).width();
 canvasEdgeY = $(window).height();
-
 gameLoopCounter = 0 
 currentLevel = 0
 levelOver = false 
 
+############################################################
 # UI elements 
+
 menuCode = 
 	"<div id='startMenu'>
 	<p>Hello game, this is game.</p>

		$('.menuLinkOne').on 'click' , -> 
			runLevel(100)

# resize #canvas to window
setSizes = () -> 
	console.log("setSizes runs")
	canvasEdgeX = $(window).width() 

		levelOver = true if gameLoopCounter >= 3
		endGame() if levelOver == true

############################################################
# drawing functions 

draw = () ->
	console.log("draw runs")

############################################################
# start game on jQuery document.ready 

jQuery -> 
	setSizes()
	addMenus()


