mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-27 01:51:35 +00:00
36 lines
872 B
C
36 lines
872 B
C
|
|
#include <string.h>
|
|
|
|
//#resource "astrocade.inc"
|
|
#include "aclib.h"
|
|
//#link "aclib.s"
|
|
#include "acbios.h"
|
|
//#link "acbios.c"
|
|
#include "acextra.h"
|
|
//#link "acextra.c"
|
|
//#link "hdr_autostart.s"
|
|
|
|
const byte player_bitmap[] =
|
|
{3,14,/*{w:12,h:16,bpp:2,brev:1}*/0x00,0x3C,0x00,0x00,0x18,0x00,0x00,0x3C,0x00,0x00,0x18,0x00,0x04,0x18,0x20,0x0C,0x3C,0x30,0x3C,0x3C,0x3C,0x1F,0xE7,0xF4,0x1F,0x66,0xF4,0x17,0xE7,0xE4,0x17,0xE7,0xE4,0x1C,0x7E,0x34,0x1C,0xFF,0x34,0x3C,0x18,0x3C,0x0C,0x18,0x30,0x04,0x18,0x20};
|
|
|
|
/*{pal:"astrocade",layout:"astrocade"}*/
|
|
const byte palette[8] = {
|
|
0x06, 0x62, 0xF1, 0x04,
|
|
0x07, 0xD4, 0x35, 0x01,
|
|
};
|
|
|
|
void main() {
|
|
byte x,y;
|
|
x=10;
|
|
y=10;
|
|
set_palette(palette);
|
|
SYS_SETOUT(102*2, 0, 0);
|
|
SYS_FILL(0x4000, 89*40, 0);
|
|
while (1) {
|
|
render_sprite(player_bitmap, x, y, M_MOVE);
|
|
erase_sprite(player_bitmap, x, y);
|
|
x++;
|
|
y++;
|
|
}
|
|
}
|