


Me too.eta150 wrote:I hate the Yankees so much...![]()
![]()
YAH I KNOW WHAT WAS WRONG!!!robodude wrote:Here's a sample program I used for proof-of-consept. Pretty much I want to color every pixel on the screen a specific color, but for this exemple its the same color. Each sprite is 1x1 pixel. Does anyone see anything missing? It was written in C++ with the Dark GDK, if anyone knows it.When I play it, the screen is completely black, but the color I chose is green.I wrote:// Dark GDK - The Game Creators - http://www.thegamecreators.com
// the wizard has created a very simple 2D project that uses Dark GDK
// it can be used as a starting point in making your own 2D games
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"
// the main entry point for the application is this function
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbDisableEscapeKey ( );
dbSetImageColorKey(255, 255, 255);
dbLoadImage("pixels\100.bmp",1 );
dbLoadImage("pixels\200.bmp",2 );
dbLoadImage("pixels\010.bmp",3 );
dbLoadImage("pixels\110.bmp",4 );
dbLoadImage("pixels\210.bmp",5 );
dbLoadImage("pixels\020.bmp",6 );
dbLoadImage("pixels\120.bmp",7 );
dbLoadImage("pixels\220.bmp",8 );
dbLoadImage("pixels\001.bmp",9 );
dbLoadImage("pixels\101.bmp",10 );
dbLoadImage("pixels\201.bmp",11 );
dbLoadImage("pixels\011.bmp",12 );
dbLoadImage("pixels\211.bmp",13 );
dbLoadImage("pixels\021.bmp",14 );
dbLoadImage("pixels\121.bmp",15 );
dbLoadImage("pixels\221.bmp",16 );
dbLoadImage("pixels\002.bmp",17 );
dbLoadImage("pixels\102.bmp",18 );
dbLoadImage("pixels\202.bmp",19 );
dbLoadImage("pixels\012.bmp",20 );
dbLoadImage("pixels\112.bmp",21 );
dbLoadImage("pixels\212.bmp",22 );
dbLoadImage("pixels\022.bmp",23 );
dbLoadImage("pixels\122.bmp",24 );
while ( LoopGDK ( ) )
{
for(int y=0; y<500; y++)
{
for(int x=0; x<784; x++)
dbSprite(784*y+x, x, y, 5);
}
if ( dbEscapeKey ( ) )
break;
// here we make a call to update the contents of the screen
dbSync ( );
}
return;
}
Anyone know why?
How did you expect to get 800+ posts?croman74 wrote:I was reading some of my earlier posts today, and I just realized how much of an incredible spammer I used to be.
hahahahaha. nice.amerikestrel wrote:Oh. That's good to know.
Users browsing this forum: No registered users and 0 guests