Computer Science Canada

how to make a scroller game in turing...[FP] scroller demo

Author:  DanShadow [ Mon Dec 08, 2003 4:59 pm ]
Post subject:  how to make a scroller game in turing...[FP] scroller demo

I asked this qu estion in help, but right after I posted it, I figured out how. It's all in the array, the almighty array! Make the x, and y for each object, and...well, here, take alook how:
code:

var object_x,object_y:array 1..10 of int
%....blah blah....
if unit_moves="right" then
    for i:1..10
        object_x(i):=object_x(i)-1
    end for
elsif unit_moves="down" then
    for i:1..10
        object_y(i):=object_y(i)+1
    end for
%And for up and left movement too
%.....
end if

Author:  DanShadow [ Sat Dec 13, 2003 6:36 pm ]
Post subject: 

Or you could go to the
[Tutorial] Graphical RPG
http://www.compsci.ca/v2/viewtopic.php?t=2524
That I just wrote Very Happy Very Happy Very Happy


: