en proces de pasar a SDL3
This commit is contained in:
17
source/game.cpp
Normal file
17
source/game.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "jUnit.h"
|
||||
|
||||
void init()
|
||||
{
|
||||
jInit("demo6_palette", 320, 240, 2);
|
||||
jSetPal(0, 0x00000000);
|
||||
jCls(0);
|
||||
jSurface peiv = jLoadSurface("resources/williams.gif");
|
||||
jLoadPal("resources/pal01.gif");
|
||||
jSetSource(peiv);
|
||||
}
|
||||
|
||||
void update()
|
||||
{
|
||||
jCls(0);
|
||||
jBlit(100, 60, 0, 0, 29, 64);
|
||||
}
|
||||
Reference in New Issue
Block a user