Computer Science Canada Help With This Game Please !!! |
Author: | Sam [ Wed Dec 12, 2007 4:13 pm ] | ||
Post subject: | Help With This Game Please !!! | ||
so i am creating a game for my school . so this is my game basically whats point of the game is the pacman eating the red circles and everytime he eats one he get 1 point but now i need to figure out a way to put a Black Circle which if the pacman eats the game will be over .. pleaseee help me guyss Here is my Code
|
Author: | StealthArcher [ Wed Dec 12, 2007 4:22 pm ] | ||
Post subject: | Re: Help With This Game Please !!! | ||
Doing that makes it much nicer to look at, and would've kept your indentation, press more tags when posting, select syntax, then type turing in the quotes in the tag. |
Author: | Sam [ Wed Dec 12, 2007 4:35 pm ] |
Post subject: | RE:Help With This Game Please !!! |
ok thanks for the advice but can u please help me with the game .. |
Author: | HeavenAgain [ Wed Dec 12, 2007 8:14 pm ] |
Post subject: | RE:Help With This Game Please !!! |
just like how you did with red, nice game btw ![]() but instead of score add 1, you exit the loop and say game over? so bascailly just add another drawoval method and draw it blue, and check collsion for that blue one btw adding View.Set("offscreen") at the top of your code and View.Update after whenever you have cls, will make the game look nicer ![]() good luck |
Author: | Sam [ Wed Dec 12, 2007 8:54 pm ] |
Post subject: | RE:Help With This Game Please !!! |
Thank you this is my first time doing something like this btw i dont get it where do i put the code little help please i would apriciate it if you tell me where to put that in the code or do it for me thank you ![]() |
Author: | Nick [ Thu Dec 13, 2007 6:18 am ] | ||
Post subject: | RE:Help With This Game Please !!! | ||
heres an example of exiting the program
also the View.Update should be at the bottom of drawing everything where the cls (preffabarly to me at the top ![]() as for the View.Set("offscreenonly") it is in the program once and can be written anywhere before the program has outputted anything to the run window (so before a circle is drawn or text has been written for example) however most people (including me) place it at the very top |