//============================================================================================
// Jimmy's Lost His Marbles start-up file
//--------------------------------------------------------------------------------------------
// 
//
// Created xx.xx.xxxx by Pete
//
// 
// Window( width, height, bpp, fullscreen, resizable, name, icon_path, frames )
//
//    width:		Screen width in pixels
//    height:	Screen height in pixels
//    bpp:		Screen bits per pixel ( 8, 16, 32 )
//    fullscreen:	Is fullscreen in use or not ( 0 = not, 1 = yes )
//    resizable:	Is the window resizable or not ( not in fullscreen ) ( 0 = not, 1 = yes )
//    name:	The name of the window
//    icon_path:	Path of the icon
//    frames:	Does the window have frames or not ( 0 = not, 1 = yes ) default = yes
//


TaskLoad( "sdl" );
TaskLoad( "sdl_mixer" );

// StartTask( "unittest", Unittest );
StartTask( "window", Window, 10, 640, 640, 32, 0, 1, "Jimmy's Lost His Marbles - r01", "data/gfx/ikoni.bmp", 1 );
StartTask( "event", Event );
StartTask( "mouse", Mouse );

Mouse::CursorChangeTo( "cursor_busy" );

StartTask( "audio", Audio );
StartTask( "gfx", Gfx, 1000 );
StartTask( "ui", Ui, 100 );

gfx_flip_rects_size = 75;

//............................................................................................

StartTask( "game", Game, "data/game.xml" );

//............................................................................................

StartTask( "keyboard", Keyboard );

Keyboard::Bind( escape, "Quit()" );
// Keyboard::Bind( return, "Game::LogTheRemaining()" );
Keyboard::Bind( r, "Game::Reset" );

//............................................................................................

Mouse::CursorChangeTo( "cursor_arrow" );
Mouse::CursorHide();
Mouse::CursorShow();

// Audio::PlayMusicFadeIn( "data/music.wav", 3000 );

//............................................................................................
// StartTask( "debug", Debug, 100 );

// Keyboard::Bind( "backquote", "Debug::ToggleConsole()" )

// Keyboard::Bind( "1", "Game::0" )
// Keyboard::Bind( "2", "Game::0.5" )
// Keyboard::Bind( "3", "Game::1" )
// Keyboard::Bind( "4", "Game::1.5" )
// Keyboard::Bind( "5", "Game::2" )

// Keyboard::Bind( return, "Game::example.xml" );

// Loading the default keys
// load( "bind.txt" );

// Setting the default resolution
// SetResolution( 640, 480, 32, 0 );