Strict

Import scene
Import mojo
Import scenemanager
Import constants
Import fontmanager
Import gamedata
Import soundmanager
Import imagemanager

Class VictoryScene Extends Scene
	Field victoryImg: Image

	Method New()
		victoryImg = ImageManager.LoadImg("victory", 1, Image.MidHandle)
	End

	Method Render:Void()
		DrawImage(victoryImg, DeviceWidth()/2, DeviceHeight()/2)
		FontManager.GetBigFont().RenderTimeString(GameData.thisTime, 225, 145)
		FontManager.GetBigFont().RenderTimeString(GameData.bestTime, 225, 200)
	End
	
	Method Update: Void()
		If MouseHit() Or KeyHit(KEY_ENTER) Then
			SoundManager.PlayFX(SOUND_SELECTION)
			SceneManager.GetCurrent().SwitchToScene(SCENE_INTRO)
		Endif
	End
End

