- testing jgame
This commit is contained in:
@@ -1,7 +1,27 @@
|
||||
#include "jfile.h"
|
||||
#include "jgame.h"
|
||||
#include "jdraw.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
draw::surface *surf;
|
||||
|
||||
void game::init()
|
||||
{
|
||||
|
||||
draw::init("The Pool", 320, 240, 3);
|
||||
surf = draw::loadSurface("test.gif");
|
||||
draw::setSource(surf);
|
||||
draw::loadPalette("test.gif");
|
||||
}
|
||||
|
||||
bool game::loop()
|
||||
{
|
||||
draw::cls(0);
|
||||
for (int y=0;y<8;++y)
|
||||
{
|
||||
for (int x=0;x<8;++x)
|
||||
{
|
||||
draw::draw(148+x*12-y*12,80+x*6+y*6,24,11,0,13);
|
||||
}
|
||||
}
|
||||
draw::render();
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user