Here's the full source
#include "DarkGDK.h"
#include "vex_engine.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
eObject tileSystem[79];
int x;
int y;
int loader = 0;
while (loader < 79)
{
if(x>9)
{
x=0;
y++;
}
tileSystem[loader].load(loader,"grass.png",x*64-64,y*64-64);
loader++;
x++;
}
while ( LoopGDK ( ) )
{
dbSync ( );
}
return;
}
And the "Engine.h"
#include "DarkGDK.h"
//////////////////////////////////////////////////////////////
////////////////// ENGINE BY Cody Montana Kostyak!////////////
//////////////////////////////////////////////////////////////
// INTRO
// Basically you have 3 main classes. Object, Interaction, and Behavior.
// The Object class contains all the variables and rendering methods
// for the object, while Interaction is a link to control all of the
// behaviors and communicate behaviors between the objects. Behaviors
// control the objects brain. This is a basic rundown and examples and
// other descriptions will help you figure out how to use these in
// unison.
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//************************************************************
// OBJECT CLASS
//************************************************************
//////////////////////////////////////////////////////////////
class eObject
{
public:
void load(int id, char* cfile,int cx,int cy){ dbLoadImage(cfile, id); dbSprite(id,cx,cy,id); };
void render(int id, int x, int y){ dbSprite(id,x,y,id); };
};