Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 how to make a scroller game in turing...[FP] scroller demo
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
DanShadow




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
DanShadow




PostPosted: Sat Dec 13, 2003 6:36 pm   Post subject: (No 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: