2019-05-28 01:52:00 +00:00
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
2019-05-29 01:05:19 +00:00
|
|
|
//#resource "astrocade.inc"
|
2019-05-28 01:52:00 +00:00
|
|
|
#include "aclib.h"
|
2019-06-06 19:40:31 +00:00
|
|
|
//#link "aclib.s"
|
2019-05-28 01:52:00 +00:00
|
|
|
#include "acbios.h"
|
|
|
|
//#link "acbios.s"
|
2019-05-31 22:15:30 +00:00
|
|
|
//#link "hdr_autostart.s"
|
2019-05-28 01:52:00 +00:00
|
|
|
|
|
|
|
const byte player_bitmap[] =
|
2019-05-29 00:50:06 +00:00
|
|
|
{0,0, // X, Y offset
|
|
|
|
3,14, // width (bytes) and height (lines)
|
|
|
|
/*{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};
|
2019-05-28 01:52:00 +00:00
|
|
|
|
|
|
|
/*{pal:"astrocade",layout:"astrocade"}*/
|
|
|
|
const byte palette[8] = {
|
2019-05-29 00:50:06 +00:00
|
|
|
0x07, 0xD4, 0x33, 0x01,
|
|
|
|
0x07, 0xD4, 0x33, 0x01,
|
2019-05-28 01:52:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
byte x,y;
|
2019-05-29 00:50:06 +00:00
|
|
|
x=20;
|
|
|
|
y=20;
|
2019-06-02 02:09:45 +00:00
|
|
|
memset((void*)0x4FCE, 0, 0x5000-0x4FCE);
|
2019-05-31 22:15:30 +00:00
|
|
|
set_palette(palette);
|
|
|
|
SYS_SETOUT(98*2, 0, 0x0);
|
|
|
|
SYS_FILL(0x4000, 98*40, 0); // clear screen
|
2019-05-28 01:52:00 +00:00
|
|
|
activate_interrupts();
|
|
|
|
while (1) {
|
2019-05-29 00:50:06 +00:00
|
|
|
write_relative(x, y, M_MOVE, player_bitmap);
|
2019-06-02 02:09:45 +00:00
|
|
|
write_relative(x, y+20, M_MOVE, player_bitmap);
|
2019-06-08 16:01:22 +00:00
|
|
|
write_relative(x, y+40, M_MOVE|M_FLOP, player_bitmap);
|
2019-06-02 02:09:45 +00:00
|
|
|
// write_relative(x, y+60, M_MOVE, player_bitmap);
|
|
|
|
fast_vsync();
|
2019-05-28 01:52:00 +00:00
|
|
|
x++;
|
|
|
|
}
|
|
|
|
}
|