Ti64CLi++ wrote:PT_ wrote:Uncompressed about 120kB
With compression, around 42kB or so, perfectly for an appvar
120kB if uncompressed
How is it possible?
Ehm, I have a 255x100 sprite

Ti64CLi++ wrote:PT_ wrote:Uncompressed about 120kB
With compression, around 42kB or so, perfectly for an appvar
120kB if uncompressed
How is it possible?
Wistaro wrote:You should rename it to "Âge of Eripmec" to avoid copyright infringment
sautax wrote:Have you made it with the online project builder ?
{...}
boolean nBump = false, mBump = false;
int n = 1, nStart = 1, nBuffer = 1;
int m = 1, mStart = 1, mBuffer = 1;
for (int i = iStart; i < iMax; i++) {
// Testing Purposes
// Sleep 1 second each i iteration and paint the screen
// TODO
// .......
for (int j = jStart - n; j < jStart + m; j++) {
// paint the column
colArray[ hWrap(i)][ vWrap(j)].paintAll(g);
}
// adjust m and n to keep us within the screen
// adjust n
if (!nBump) {
//we have not yet reached the lowest j point
// increment n to go even lower next iteration
n++;
// Check if we have reached the lowest j point
if ((jStart - n) == jMin) {
nBump = true;
//System.out.println("Bump N");
}
} else {
// we have reached the deepest j and are now going back
// start decreasing after the buffer is gone
if (nBuffer > 0) {
nBuffer--;
} else {
// The buffer is gone, start decreasing n each iteration
n--;
// check that n never exceeds its starting point
if (n < nStart) {
n = nStart;
}
}
}
// adjust m
if (!mBump) {
// we have not yet reached the HIGHEST j point
// increasee m to go even higher next iteration
m++;
// Check if we have reached the highest j point
if ((jStart + m) == jMax) {
mBump = true;
//System.out.println("Bump M");
}
} else {
// we have reached the maximum j point
// and are now moving back.
// start decreasing m after the buffer is gone
if (mBuffer > 0) {
mBuffer--;
} else {
// The Buffer is gone
// decrease m each iteration
m--;
// check that m never exceeds its starting point
if (m < mStart) {
m = mStart;
}
}
}
}
}
}
Return to Langages alternatifs
Users browsing this forum: ClaudeBot [spider] and 10 guests