content: function room_main(room)
  
  	room.onCreate = function(args)
  		m.depth = 100
  		for i = 1 to 5
  			m.game.createInstance("ball")
  		end for
  		m.game.setBackgroundColor(&h000000FF)
  	end function
  
  	room.onUpdate = function(dt)
  	end function
  
  	room.onDrawBegin = function(canvas)
  		canvas.DrawObject(0, 0, m.game.getBitmap("background"))
  		canvas.DrawRect(0, 0, canvas.GetWidth(), 10, &h676767FF)
  		canvas.DrawRect(0, canvas.GetHeight()-10, canvas.GetWidth(), 10, &h676767FF)
  		canvas.DrawRect(0, 0, 10, canvas.GetHeight(), &h676767FF)
  		canvas.DrawRect(canvas.GetWidth()-10, 0, 10, canvas.GetHeight(), &h676767FF)
  	end function
  
  	room.onDrawGui = function(screen)
  		if m.game.debug then : screen.DrawText("room: room_main", 10, 720-10-m.game.Fonts.default.GetOneLineHeight(), &hFFFFFFFF, m.game.Fonts.default) : end if
  	end function
  
  	room.onButton = function(button)
  		if button = 10
  			m.game.changeRoom("room_example")
  		end if
  
  		' if button = 5 or button = 1005 then
  		' 	m.game.canvasIncreaseOffset(5,0)
  		' end if
  		' if button = 4 or button = 1004 then
  		' 	m.game.canvasIncreaseOffset(-5,0)
  		' end if
  		' if button = 3 or button = 1003 then
  		' 	m.game.canvasIncreaseOffset(0,5)
  		' end if
  		' if button = 2 or button = 1002 then
  		' 	m.game.canvasIncreaseOffset(0,-5)
  		' end if
  		if button = 9 or button = 1009 then
  			m.game.canvasIncreaseScale(0.02)
  		end if
  		if button = 8 or button = 1008 then
  			m.game.canvasIncreaseScale(-0.02)
  		end if
  
  		if button = 7 then
  			m.game.canvasFitToScreen()
  		end if
  
  	end function
  
  end function
  