Game Development Community

mainMenu gui

by hamed · in Game Design and Creative Issues · 03/03/2012 (7:56 am) · 11 replies

hi
im studying phantasia source and ive found a problem in the begining
i wanna know how can i show a gui menu before starting the mainscreen gui
in the phantasia code its done with
function startGame()
{
   // Set The GUI.
   //Canvas.setContent(mainScreenGui);
   //Canvas.setCursor(DefaultCursor);
   Canvas.setCursor(GameCursor);
   
   init_sound();
   init_game();
   init_players();
   create_player();
  //x
  if($pref::game::loading_bitmap !$= "")
    T300ADGui.bitmap = $pref::game::loading_bitmap;
  
  if($pref::game::logo_bitmap !$= "")
    GarageGamesGui.bitmap = $pref::game::logo_bitmap;
  //y
  Canvas.setContent(loadGarageGamesGui());
  
}

function start_game()
{
	open_main_menu();
	play_level_music();
	moveMap.push();

}
but i diont know whats the code between x and y lines

About the author

the great costly games, but the only purpose is killing, and the only amuse but why we just should kill to be satisfied,why the games should not change ? great drama in the games ? maybe today , is the time to change from bullets to flowers


#1
03/04/2012 (8:31 am)
i downloaded the mite source files, it seems that its a simpler project and i found that in the start function must put
convas.pushdialoge method
but i still dont know the meaning of the lines x and y
#2
03/04/2012 (8:55 am)
wish sombody answer you when you need help ....
however i never forget the god whisper function
function::god::whisper(%soul)
{
if
 you have no light to guide you
and theres noone beside you
then
i will come to you
i will come to you
}

function initializeLife()
{
whisper();
}
#3
03/04/2012 (9:35 pm)
it seems that the mainmenuGui is called from the start_game function
but i dont know where we call this function , its not exists in the main.cs file
function start_game()
{
	open_main_menu();
	play_level_music();
	moveMap.push();

}
and this id the open_main_menu function
function open_main_menu()
{
	play_music( MUSIC_MENU );
	mainScreenMenu.setVisible( false );
	refresh_player_name();
	Canvas.setContent(mainScreenGui);
	effect_under_menu();
	//start_level( %level );
	Canvas.pushDialog(mainMenu);
}
would anybody tell me that where we call start_game function ?
and what does it mean
startGame("");
#4
03/04/2012 (9:38 pm)
hello?
anybody home ?
the gdc conf is near, is it the reason of the room silence?
but i need help right now,plz
#5
03/05/2012 (7:10 am)
Mite source? What is that and where did you find it?
#6
03/05/2012 (9:09 am)
I have no idea what phantasia or mite are. What are they? Where did you find the source? And for which Torque engine? 2d? 3d? That's needed information in order to help answer your question.
#7
03/05/2012 (10:24 am)
they are for tgb
i search them in the forum and downloaded the source
#8
03/05/2012 (10:27 am)
I am assuming its for TGB because phantasia is a game made fromn TGB from which the author released its source code to it and quite a few games that they had made.

blog.rakeingrass.com/?cat=3
#9
03/05/2012 (8:13 pm)
Michael ive read your profile it seems you are a skilled programmer and im in the begining of the road that you have finished it, so would you tell me plz how you have arrived there and what should i do to countinue my way, tutorials arent enough spicially gui parts, shouold i study a c++ book ? but which book is useful for me ? plz advice me ? where can i learn whole the tgb functions ?
im very very hungry for drinking tgb functions ?but whole the ways end to a mirage , please show me a river ,plz
#10
03/07/2012 (5:22 am)
Michael it seems you are too far to hear a beginner
#11
03/07/2012 (10:39 am)
This Michael doesn't use TGB.