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

Username:   Password: 
 RegisterRegister   
 Maze Game
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
godofquestions




PostPosted: Wed May 30, 2007 6:47 pm   Post subject: Maze Game

Hi I'm making a maze game for my isu and there are a lot of lines

so far I have been using Math.DistancePointLine for the collision so that the player cannot go through the walls, but its not that great and it takes long.

Is there any better way for collision?

Oh and how can I put in the Time for the game, like when the game starts to when it finishes

Very Happy
Sponsor
Sponsor
Sponsor
sponsor
DIIST




PostPosted: Wed May 30, 2007 7:25 pm   Post subject: Re: Maze Game

Try creating a tilemap. From the tile map let the 1 represent the wall let the zero represent walkable space. When moving the game piece, see if the location is a one or a zero. If its a zero you can move in that space, if it is a one that you cant move into it.

As for the time look into Time.Elapsed.
ashiphire




PostPosted: Thu May 31, 2007 4:38 pm   Post subject: RE:Maze Game

well in my maze game i use whatdotcolor to check if the square in front is white or not and if it is white it can move there
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: