Computer Science Canada Randomly generated platform program |
Author: | IshiggyDiggy [ Mon Dec 17, 2012 9:53 am ] | ||
Post subject: | Randomly generated platform program | ||
What is it you are trying to achieve? A randomly generated platform for our pacman program. I'm trying to make it so pacman can jump on platforms/lines that are randomly generated. What is the problem you are having? I don't know how to code the program to make it. Describe what you have tried to solve this problem I tried to make an elsif statement.
Please specify what version of Turing you are using 4.1 |
Author: | Panphobia [ Mon Dec 17, 2012 10:43 am ] |
Post subject: | RE:Randomly generated platform program |
in essence you are asking us to do the program for you? |
Author: | Insectoid [ Mon Dec 17, 2012 11:38 am ] |
Post subject: | RE:Randomly generated platform program |
You need to store your platforms in an array, and then loop over them to check for collisions. If you don't know how to check for collisions, check the Turing Walkthrough. |