by Matteo.m » Mar 7, 2006 @ 8:40am
Hi kornalius, I'm using an ipaq 2750 with window mob 2003 sec edition, the code i'm running is the starfield into the demo folder. As i told you something wrong with the key to exit and also with the border values and this make the screen to not have stars on it. i Show the code where i putted to display the values.
#include "GameAPI.ppl"
// Initialize the stars array structure.
proc InitStars
ShowMessage(border.left$);
ShowMessage(border.right$);
ShowMessage(border.top$);
ShowMessage(border.bottom$);
i$ = 0;
while (i$ < 256)
Stars.x$[i$] = border.left$ + random(border.right$ - border.left$ - 1);
Stars.y$[i$] = border.top$ + random(border.bottom$ - border.top$ - 1);
Stars.Speed$[i$] = random(4) + 1;
i$++;
end;
end;