tangstad/helds
tangstad
/
helds
Archived
1
0
Fork 0

Background is now included as binary instead of being decoded from pcx.

The same is true for the shared palette.
This commit is contained in:
Truls Alexander Tangstad 2005-11-09 20:22:35 +00:00
parent a618d6d9f1
commit 58e4b04b80
3 changed files with 13 additions and 3 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -18,6 +18,8 @@
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
#include "helds_logo_pcx.h" #include "helds_logo_pcx.h"
#include "s_piece_bin.h" #include "s_piece_bin.h"
#include "helds_logo_new_bin.h"
#include "helds_pal_bin.h"
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
// storage space for palette data // storage space for palette data
@ -55,7 +57,8 @@ int main(void)
// screen mode, background and objects to display // screen mode, background and objects to display
SetMode( MODE_4 | BG2_ON | OBJ_ON ); SetMode( MODE_4 | BG2_ON | OBJ_ON );
DecodePCX(helds_logo_pcx, (u16*)VRAM , PaletteBuffer); CpuFastSet(helds_logo_new_bin, (u16*)VRAM, COPY32 | helds_logo_new_bin_size/4);
CpuFastSet(helds_pal_bin, PaletteBuffer, COPY32 | helds_pal_bin_size / 4);
FadeToPalette( PaletteBuffer, 60); FadeToPalette( PaletteBuffer, 60);
CpuFastSet(s_piece_bin, BITMAP_OBJ_BASE_ADR, COPY32 | s_piece_bin_size/4); CpuFastSet(s_piece_bin, BITMAP_OBJ_BASE_ADR, COPY32 | s_piece_bin_size/4);
@ -66,7 +69,6 @@ int main(void)
sprite.attr1 = OBJ_X(120); sprite.attr1 = OBJ_X(120);
sprite.attr2 = OBJ_CHAR(512); sprite.attr2 = OBJ_CHAR(512);
u16 i;
u16* dst, *src; u16* dst, *src;
while (1) while (1)