Game Development Community

startGame( expandFilename($Project::Game::DefaultScene) );

by rennie moffat · in iTorque 2D · 06/19/2010 (9:36 am) · 2 replies

I apologize in advance if this is seen as a double post, but I thought someone who might be on the board might not see the other thread where this question is asked but way down in post # as it was not this original question. I posted this in hopes that it might provide a quicker answer.



but, in the main.cs is this line.
startGame( expandFilename($Project::Game::DefaultScene) );
when used, untouched, the main.cs loads emptyLevel.t2d. I am wondering how to convert the line to load a specific scene. Also a side note, I changed the name of my level1.t2d to emptyLevel.t2d thinking that I would "trick it" into loading level1.t2d, but it only loads a black screen.

Any help on this is appreciated.




Thanks
Ren

About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.


#1
06/19/2010 (11:36 am)
all you need to do is change this pref or replace the string thats offered there in general to lead to the level you want to load.

normally thats not required because the first scene is normally always the same: main menu (or splash and then main menu)
#2
06/19/2010 (11:44 am)
I have splash, loading screen (just for effect) then main menu. In essence I could change my name of "loadingScreen" to mainMenu but it is a level (loadingScreen and mainMenu) I have done nothing with the gui.


it was mentioned that
startGame( expandFilename("~/data/levels/loadingScreen.t2d") );

should work but does not.