Jump to content



Photo

Sprite Bug?


  • Please log in to reply
2 replies to this topic

#1 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 10 June 2012 - 01:12 AM

It seems that luaFX has a hard time handling large sprites. Like this one:

wait = misc.wait
setColor = graydraw.setcolor

logo = "\000\000@\000\000\000\000\000\000\000\000\000\000\000\000\000\000ÿÿ\000\000\000@\000@\000\000\000@\000@\000\000\000@\000@\000\0001_1_\000\0001D1D\000\000IDID\000\000IDID\000\000yDyD\000\000…D…D\000\000…D…D\000\000\000@\000@\000\000ÿÿ\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000ÿÿÿÿ\000\000\000\000\000\000\000\000<\000<\000\000\000$\000$\000\000\0004/4/\000\000&H&H\000\000\000ˆ\000ˆ\000\000\000Ž\000Ž\000\000\000H\000H\000\000\000H\000H\000\000\000/\000/\000\000\000\000\000\000\000\000ÿÿÿÿ\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000€Ã¿€Ã¿\000\000À\000À\000\000\000 ¾ ¾\000\000‘¤‘¤\000\000‰Â´‰Â´\000\000…´…´\000\000ƒ\000ƒ\000\000\000„\000„\000\000\000ˆ\000ˆ\000\000\000\000\000\000\000 \000 \000\000\000À\000À\000\000\000€Ã¿€Ã¿\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000€\000€\000€Ã GàG\000ÀB\"B\"\000\000úÿúÿ\0000þÏþÏð\
0\
0\000\000òò\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"

setColor(1)

spritexy 1, 1, logo
refresh

wait(200)

Here is a screenshot of it:

Posted Image

It should look like a plane with a flag behind it that says takeflight.

The code from orwell's spritemaker (gxlib)

logo = {
0,0,16,64,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,255,127,255,127,0,0,0,64,0,64,0,0,0,64,
0,64,0,0,0,64,0,64,0,0,49,95,49,95,0,0,
49,68,49,68,0,0,73,68,73,68,0,0,73,68,73,68,
0,0,121,68,121,68,0,0,133,68,133,68,0,0,133,68,
133,68,0,0,0,64,0,64,0,0,255,127,255,127,0,0,
0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,255,255,255,255,0,0,0,0,0,0,0,0,60,
0,60,0,0,0,36,0,36,0,0,0,52,47,52,47,0,
0,38,72,38,72,0,0,0,136,0,136,0,0,0,142,0,
142,0,0,0,72,0,72,0,0,0,72,0,72,0,0,0,
47,0,47,0,0,0,0,0,0,0,0,255,255,255,255,0,
0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,128,255,128,255,0,0,192,0,192,0,0,0,
160,190,160,190,0,0,145,164,145,164,0,0,137,180,137,180,
0,0,133,180,133,180,0,0,131,0,131,0,0,0,132,0,
132,0,0,0,136,0,136,0,0,0,144,0,144,0,0,0,
160,0,160,0,0,0,192,0,192,0,0,0,128,255,128,255,
0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,128,0,128,0,128,224,71,224,71,0,192,66,34,66,
34,0,0,250,255,250,255,0,48,254,207,254,207,240,15,10,
48,10,48,0,0,242,15,242,15,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0
}


#2 veb

veb

    Casio Fan

  • Members
  • PipPip
  • 43 posts

Posted 10 June 2012 - 12:17 PM

When I take your second code and I convert it in lua string, it works perfectly
When I test your first code, it works too


Maybe you use an editor that changes the characters of your string... try to use eclipse for lua like me.

Edited by veb, 10 June 2012 - 12:19 PM.


#3 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 10 June 2012 - 07:57 PM

I don't think my editor's the problem... when I use your example code's sprites, I don't have any problems.

Maybe its the emulator? (I am using fx9860G Plus)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users