Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Starting Developing 2D game

Author
Message
rey kenneth
15
Years of Service
User Offline
Joined: 23rd Apr 2009
Location: Philippines
Posted: 24th Apr 2009 05:30


i have question to ask how this is may codes:: can anyone edit the codes for me to maximize the windows and to position the backgroud image to the center.... sorry for my grammar...

#include "DarkGDK.h"

void DarkGDK(void)
{
dbSetWindowTitle ( "My First Program" );

dbSyncOn();
dbSyncRate(60);

dbLoadImage("GD.png",1);
dbSprite ( 1, 0, 0, 1 );

while(LoopGDK ())
{
dbSync();
}
return;


}

bossing
nadir
16
Years of Service
User Offline
Joined: 18th May 2008
Location:
Posted: 24th Apr 2009 21:55
hey
try this
dbMaximizieWindow() ;
dbSetWindowLayout ( 0, 0 ,0 ) ;
dbSetDisplayMode ( 1280 , 1024 , 32 ) ## if supported

and the dbSprite ( 1 , 0 , 0 , 1 ) ; must be in the LoopGDK loop
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 29th Apr 2009 00:24
@nadir
The dbSprite doesn't have to be in the main loop unless you want to move the sprite

Login to post a reply

Server time is: 2024-11-25 13:38:22
Your offset time is: 2024-11-25 13:38:22