This site is no longer active and is available for archival purposes only. Registration and login is disabled.

skip intro for quicker dev + fast background refresh


skip intro for quicker dev + fast background refresh

Postby Lewil » May 22, 2002 @ 2:17pm

User avatar
Lewil
pm Member
 
Posts: 108
Joined: Apr 25, 2002 @ 1:39pm


Postby s9801758 » May 26, 2002 @ 12:33pm

Heja Lewil,

I'm not sure I understand what you mean, but I'll try to help.

For the fast starts, go to FrameGame.cpp and edit the FrameGame::Initialize method. There is a line there, that says:

ChangeState( GAME_STATE_SPLASH );

Just change that to whatever gamestate you want to go immediately. For example, during game development I set it to

ChangeState( GAME_STATE_GAME );

That way I always jump straight into the game. You might also want to set it to

ChangeState( GAME_STATE_MENU );

to jump straight into the menu everytime.

As for your second question.

Just do

g_Api->GetSecondary()->CopyFrom( m_mybackground.Get() );

And that should work. You have to do the explicit get because m_mybackground is a scopedptr, and you need to pas a raw pointer to the CopyFrom() method. Sorry 'bout that, but the safety that scopedptr's provide makes more than up for it.

Cheers,

Jape
User avatar
s9801758
pm Member
 
Posts: 48
Joined: May 10, 2002 @ 10:20am
Location: Vancouver BC, Canada


Postby Lewil » May 27, 2002 @ 11:53am

User avatar
Lewil
pm Member
 
Posts: 108
Joined: Apr 25, 2002 @ 1:39pm


Return to Phantom's Forum


Sort


Forum Description

Discuss any of Phantom's projects here (Operation Nutcracker, etc.)

Moderators:

sponge, RICoder, Phantom

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum