Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   collision help please (http://www.alice.org/community/showthread.php?t=4321)

dylmyster22 04-29-2010 03:00 PM

collision help please
 
Ok so I'm working on a small project, just a small pacman game. Like in normal pacman, you cant pass through the walls. In my world, I put boxes down to make the field for him to run around and i was wondering, what would be the simplest way to put in a collision detection without making the code really long? When done with the project, i will have up to, if not more than 150 boxes. That would be alot of if/else statements =P.

x2495iiii 04-29-2010 03:04 PM

Check this thread out for some helpful examples on how to do simple collision detection:

[url]http://www.alice.org/community/showthread.php?t=4280[/url]


All times are GMT -5. The time now is 05:14 AM.

Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.