right.....this is so confudisng me i think ill stick to horizontal for now
thought maybe ur doing the 2plyr heads-up space invaders thng.
found this dog-eared .html in my Recycle bin.
right.....this is so confudisng me i think ill stick to horizontal for now
Didnt intend to put u off using Gu, its a powerful
resource ,well worth any time taken to get it working.
Guess its 1 of them thngs thats easier to learn by
hacking about with working code snippets to see what
happens, rather than trying to decipher the manual. Not
yet much Lua Gu source about tho.
So sure I saw a Lua function somewhere (no Gum) that
rewrote the pixels of an image to turn it 90,180 or 270.
the pixel by pixel method is too slow.
i believe the fastest method would be a re-write of the method used in ttlde and others.
ttlde does not use print or fontprint.
it has the font laid out in an image file as below.
yours could be alot simpler if you don't need chinease.
you then have the text you wish to print, read it character by character and using its ascii code you look-up the character in your font image file.
then blit just the area of the font image file that has your char in....then the next but instead of bliting the next to the right of the previous one....blit it below/above it.
or if you want to try 3d gu...heres a link to an early app of mine that uses the 3d gu to show thousands of triangles.
http://www.dcemu.co.uk/vbulletin/showthread.php?t=21242
Dammit, got into this-didnt want to ,but enjoyed it anyway.
hope you can use this code AnonD, should help you avoid the
goo ...for the time being...,
(unless, of course,
drED's tasty sauce
changed ur mind at all)
wow...thats whats i was talking about....nice one dangee.
it may be even faster though if it created all the needed characters in one go before they were needed, to get all the print commands out of the way,
or have them in an image file as i said earlier.
but still, your solution is superb :thumbup: and probably far better than he deservesjk.
..& ur praise is probbly more than I deserve
but thx NEhow drED, its always easier to code a clearly described
solution. Actually,it was great to find some more GU stuff
to work with.
I dont think AnonD really expected what looked like a
straight-forward piece of coding to get so complex.
Itd be nice to see a Sticky Gum 'n' Goo tutorial...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks