mirror of
https://github.com/stevenhowes/CTheEscape.git
synced 2026-05-27 00:03:27 +01:00
Tidy-up and memory savings
This commit is contained in:
Binary file not shown.
+10
-15
@@ -24,16 +24,6 @@ Linkflags = -aif -o $@
|
|||||||
|
|
||||||
|
|
||||||
# Dynamic dependencies:
|
# Dynamic dependencies:
|
||||||
o.CTheEscape: c.CTheEscape
|
|
||||||
o.CTheEscape: C:h.swis
|
|
||||||
o.CTheEscape: C:h.kernel
|
|
||||||
o.CTheEscape: C:h.kernel
|
|
||||||
o.CTheEscape: h.Sound
|
|
||||||
o.CTheEscape: c.CTheEscape
|
|
||||||
o.CTheEscape: C:h.swis
|
|
||||||
o.CTheEscape: C:h.kernel
|
|
||||||
o.CTheEscape: C:h.kernel
|
|
||||||
o.CTheEscape: h.Sound
|
|
||||||
o.Graphics: c.Graphics
|
o.Graphics: c.Graphics
|
||||||
o.Graphics: C:h.swis
|
o.Graphics: C:h.swis
|
||||||
o.Graphics: C:h.kernel
|
o.Graphics: C:h.kernel
|
||||||
@@ -43,8 +33,13 @@ o.Sound: C:h.swis
|
|||||||
o.Sound: C:h.kernel
|
o.Sound: C:h.kernel
|
||||||
o.Sound: C:h.kernel
|
o.Sound: C:h.kernel
|
||||||
o.Sound: h.Sound
|
o.Sound: h.Sound
|
||||||
o.Sound: c.Sound
|
o.CTheEscape: c.CTheEscape
|
||||||
o.Sound: C:h.swis
|
o.CTheEscape: C:h.swis
|
||||||
o.Sound: C:h.kernel
|
o.CTheEscape: C:h.kernel
|
||||||
o.Sound: C:h.kernel
|
o.CTheEscape: C:h.kernel
|
||||||
o.Sound: h.Sound
|
o.CTheEscape: h.Sound
|
||||||
|
o.CTheEscape: c.CTheEscape
|
||||||
|
o.CTheEscape: C:h.swis
|
||||||
|
o.CTheEscape: C:h.kernel
|
||||||
|
o.CTheEscape: C:h.kernel
|
||||||
|
o.CTheEscape: h.Sound
|
||||||
|
|||||||
+3
-1
@@ -12,6 +12,7 @@ _kernel_swi_regs outreg;
|
|||||||
unsigned char *buffer;
|
unsigned char *buffer;
|
||||||
|
|
||||||
extern struct CompositionElement composition[128];
|
extern struct CompositionElement composition[128];
|
||||||
|
extern int current_element;
|
||||||
|
|
||||||
void intro()
|
void intro()
|
||||||
{
|
{
|
||||||
@@ -77,7 +78,7 @@ void intro()
|
|||||||
currentstart += 100;
|
currentstart += 100;
|
||||||
|
|
||||||
draw_sprite("tng",320,400);
|
draw_sprite("tng",320,400);
|
||||||
|
printf("%i elements at %i bytes\n",current_element,sizeof(composition[0]));
|
||||||
sound_composition_start(clock());
|
sound_composition_start(clock());
|
||||||
|
|
||||||
while(sound_composition_incomplete())
|
while(sound_composition_incomplete())
|
||||||
@@ -88,6 +89,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
sound_on();
|
sound_on();
|
||||||
|
|
||||||
|
// mode 28 80x60 640x480 16 colours
|
||||||
display_mode(28);
|
display_mode(28);
|
||||||
load_sprites("Spr");
|
load_sprites("Spr");
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ void load_sprites(char* filename)
|
|||||||
|
|
||||||
void display_mode(int mode)
|
void display_mode(int mode)
|
||||||
{
|
{
|
||||||
// mode 28 80x60 640x480 16 colours
|
|
||||||
inreg.r[0] = 0;
|
inreg.r[0] = 0;
|
||||||
inreg.r[1] = mode;
|
inreg.r[1] = mode;
|
||||||
_kernel_swi(OS_ScreenMode,&inreg,&outreg);
|
_kernel_swi(OS_ScreenMode,&inreg,&outreg);
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
#define COMPOSITION_MAX 128
|
#define COMPOSITION_MAX 128
|
||||||
|
|
||||||
struct CompositionElement {
|
struct CompositionElement {
|
||||||
int Start;
|
signed short int Start;
|
||||||
int Note;
|
unsigned char Note;
|
||||||
int Volume;
|
signed char Volume;
|
||||||
int Channel;
|
unsigned char Channel;
|
||||||
int Length;
|
unsigned short int Length;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user