Author |
Message |
monkeynamedsteve
![](http://i2.tinypic.com/xprplw.jpg)
|
Posted: Thu May 11, 2006 2:56 pm Post subject: Pacman |
|
|
I made up this pacman program the other day, its not any fun without ghosts or dots but its good enough to start with. Have Fun.
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
Pacman.t |
Filesize: |
4.46 KB |
Downloaded: |
558 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
ohgeez_
![](http://www.geocities.com/ohgeez590/miniturtle.JPG)
|
Posted: Thu May 11, 2006 4:52 pm Post subject: (No subject) |
|
|
ok. nice game. but a few things
- pacman seems to be moving a little to slow , or actually, i missed ur del const. so nvm tat
- ur collision detector on the walls is nice, but sometimes its a little hard to turn.
- i like the way u used ur drawarc to cover pacman instead of cls
a very good game. and not a whole lot of lines
add ghosts if ur gona build on it =D
|
|
|
|
|
![](images/spacer.gif) |
monkeynamedsteve
![](http://i2.tinypic.com/xprplw.jpg)
|
Posted: Thu May 11, 2006 4:56 pm Post subject: (No subject) |
|
|
I posted in the help forum about the ghosts.
I'll put the final copy up here.
Thanks for the feedback.
|
|
|
|
|
![](images/spacer.gif) |
Carey
![](http://mirkon.sneezepower.com/images/multilockon.gif)
|
Posted: Fri May 12, 2006 10:00 am Post subject: (No subject) |
|
|
better collision detection:
if your pacman coords are x,y and your pacman is 5 pixels tall and 5 wide then create invisble points around pacman to check for the wall colour
code: |
if whatdotcolour (x + 6,y) = grey then %check right side of pacman
%don't let pacman move right
if whatdotcolour (x - 6,y) = grey then %check left side of pacman
%don't let pacman move left
|
etc.
see the below picture for the locations you should check with whatdotcolour
i hope this helps
|
|
|
|
|
![](images/spacer.gif) |
upthescale
|
Posted: Fri May 12, 2006 1:55 pm Post subject: (No subject) |
|
|
in ur whatdot color if statment wuts the ~ meen b4 the = sign?
|
|
|
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
Posted: Fri May 12, 2006 4:07 pm Post subject: (No subject) |
|
|
upthescale wrote: in ur whatdot color if statment wuts the ~ meen b4 the = sign?
"~" is short for "not", as in
code: |
if foo not = 2 then
|
Many languages use "!=" for "not equals"
|
|
|
|
|
![](images/spacer.gif) |
monkeynamedsteve
![](http://i2.tinypic.com/xprplw.jpg)
|
Posted: Fri May 12, 2006 5:40 pm Post subject: (No subject) |
|
|
Yes yes, there is finally a use for the "~" symbol.
Fact: "~" is called a tild.
Tehe, I feel smart.
I prefer to use ~= over not=, I'm not sure why, it looks cooler?
It has the same function..blah blah blah.
Already explained
|
|
|
|
|
![](images/spacer.gif) |
monkeynamedsteve
![](http://i2.tinypic.com/xprplw.jpg)
|
Posted: Fri May 12, 2006 5:46 pm Post subject: (No subject) |
|
|
Oh and Carey, thanks for the comment, I actually used the whatdotcolour command near the end of my program, but seeing your drawing makes me think I should make the corner points closer to the Pacman to allow easier movement.
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
|