import PodSix
PodSix.engine = "pygame"
from PodSix.Resource import *

from PodSix.Game import Game

class Core(Game, EventMonitor):
	def __init__(self):
		gfx.Caption('Test Gfx features')
		gfx.SetSize([320, 240])
		gfx.LoadFont("hemihead", 0.04, "default")
		Game.__init__(self)
		EventMonitor.__init__(self)
	
	def Run(self):
		gfx.SetBackgroundColor([255, 255, 255])
		gfx.DrawCircle((100, 100), 50, (0, 0, 0))
		gfx.DrawCircle((200, 120), 20, (0, 0, 0))
		gfx.DrawCircle((150, 200), 30, (255, 0, 0))
		gfx.DrawCircle((50, 200), 5, (0, 0, 255))
		Game.Run(self)
		gfx.Flip()
	
	def KeyDown_escape(self, e):
		self.Quit()
	
	def Pump(self):
		Game.Pump(self)
		EventMonitor.Pump(self)

c = Core()
c.Launch()


