Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image rotation
#11
I you can't download, you won't be able to download your attachments from hotmail Sad
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#12
for x=1 to 5
for y=1 to 2
array1(x,y)=array2(x,3-y)
next
next

this should work, i think.
url=http://webberboy.no-ip.com]Fine Hand-Crafted Pens[/url]
Pneumonoultramicroscopicsilicovolcanoconiosis: Noun, A hypothetical, invented disease of the lungs, caused by inhaling mineral or metallic dust, such as silicon and quartzite, over a long period.]
Reply
#13
Simple man, instead of writing the image from ymin to ymax, write it from ymax to ymin. Since you only need 180 degree rotation. Hope you get the idea.


Code:
defint a-z
sub PutFlipV ( dstseg as integer, xd as integer,
               yd as integer, image() as integer )
    
    static dstofs as long
    static xmin as integer, ymin as integer
    static xmax as integer, ymax as integer
    
    
    def seg = dstseg

    ''
    '' Calculate offset
    ''
    dstofs = yd * 320& + xd    
    
    ''
    '' Calculate sprite dimensions ( or not :P )
    ''
    xmin = 0
    ymin = 0
    xmax = 64-1
    ymax = 64-1

    ''
    '' Blit sprite
    ''    
    for  y  = ymax to ymin step -1
        for  x = xmin to xmax
            poke dstofs+x, image( y, x )
        next x
        
        dstofs = dstofs + 320
    next y
    
    
    def seg
end sub
oship me and i will give you lots of guurrls and beeea
Reply
#14
Thanks, I will be able to download it, school have banned downloading off sites but not from e-mails yet???????

Anyhow someone is already sending me it "TOM"?
but thanks anyway

Code looks good
eminiscing about trapezoids in conjunction with stratospherical parabolas:

No questions asked.

www.stickskate.com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)