Important alert: (current site time 7/16/2013 3:07:45 AM EDT)
 

winzip icon

Enhanced Pacman

Email
Submitted on: 3/19/2002 5:33:25 AM
By: Pookie 
Level: Advanced
User Rating: By 62 Users
Compatibility: VB 6.0
Views: 39531
author picture
(About the author)
 
     This is a pacman game I wrote which took 3 days to write, about 15 hours all up. It follows the original pacman game as close as I could and has two modes, original and enhanced, enhanced being just more prettier graphics. As I didn't use any directX, people with slower computers might find the game runs a little slow, though I'm not sure about this. :) If your computer is fairly slow and it misses frames then you could change the tmrkeyboard to 20 milliseconds and play it on turbo speed (x2 normal speed). :)

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

3/19/2002 7:55:14 AMJonathan Rossing

wow...
Excellent
(If this comment was disrespectful, please report it.)

 
3/19/2002 8:31:18 AMEdward Catchpole

looks good but haven't tried it... yet
(If this comment was disrespectful, please report it.)

 
3/19/2002 8:37:21 AMCodeJack

Excellent work! I think the ghosts are supposed to go through the tunnels slower though. 5 globes for sure!
(If this comment was disrespectful, please report it.)

 
3/19/2002 8:18:44 PMMr Pookie

It's been a very long time since I've played pacman on the arcades so there will be things which I have forgotten. I didn't know about the ghosts slow down in the tunnels, so thanks you for that. Is there anything else I've forgotten guys?
I know pacman is suppose to spin around and die, that was another thing I had overlooked until now. :)

(If this comment was disrespectful, please report it.)

 
3/20/2002 10:20:23 AMGeorge

Very Good. I like how clean the AI/movement code is. Well commented.
(If this comment was disrespectful, please report it.)

 
3/20/2002 11:10:14 AMjazz

Excellent
(If this comment was disrespectful, please report it.)

 
3/20/2002 11:24:59 AMMr Pookie

Thank you for your votes and comments.

Okay, I've fixed it so that the ghosts moves more slowly though the tunnel.

Insert the following code into the basGhostAI module.

' Slow down ghosts when travelling through the tunnel
If .Ypos = 232 And (.Xpos > 376 Or .Xpos < 60) And .DelayTime = 0 Then
HitWall = True
End If

This code should go right be this line:

' if ghost can move, move it
If HitWall = False.......

:)
Mr Pookie

(If this comment was disrespectful, please report it.)

 
3/20/2002 10:03:29 PMVolteFace

Excellent! Totally excellent! Five globes.
(If this comment was disrespectful, please report it.)

 
3/21/2002 7:56:52 AMNorm Cook

Some of the best coding I've seen on PSC, well commented, logically indented, easy to follow naming conventions. Just a couple of comments: 1) I changed all the Integer declares to Long where possible & got some speed improvement. For 32 bit machines, it's faster to move 32 bits from register to register than it is to move 16 or 8 bits, i. e. MOV EAX, EBX is faster than MOV AX, BX or MOV AL, BL.
2) I removed the END statements, all you need do is UnLoad & in the UnLoad event, Set frmPacMan = Nothing.

Five from me, keep up the good work.

(If this comment was disrespectful, please report it.)

 
3/21/2002 8:04:29 AMMr Pookie

Thanks for that tip. I always thought 16 and 32 bit ran the same so never bothered with longs unless I needed to, but if that's the case, I'll use longs more often in future. :)

With the End statement, I know it's not really needed there, I just like to put it there as a safety net. Sort of old habits die hard... :D


(If this comment was disrespectful, please report it.)

 
3/22/2002 11:01:54 PMMark Davidson

Wow! Excellent game. I thing though, you should put bonus points sprites in the game when you eat a ghost monster so people can see how much each one is worth, and also when you run over the fruit, otherwise good job and well done.
(If this comment was disrespectful, please report it.)

 
3/22/2002 11:06:19 PMMr Pookie

Sorry, forgot about putting the bonus points score in. :)
If anyone else finds any other things which needs to be added, please point them out to me. :)

(If this comment was disrespectful, please report it.)

 
3/26/2002 9:55:56 PMTurki A. Umairan

Wow!!! You reminded me of those "good old days" ;-)

5 globes
(If this comment was disrespectful, please report it.)

 
3/26/2002 10:30:27 PMMr Pookie

Yep. I tried to make it as close as the original as possible (UnEnhanced mode). It's amazing how many old memories come back when you play it. :)
I was around 8 years old when pacman was around and use to play it a lot in the shops, so playing this, I still sometimes get memories of playing it... :)

(If this comment was disrespectful, please report it.)

 
3/27/2002 8:39:42 AMDylan Morley

Quality!
(If this comment was disrespectful, please report it.)

 
3/27/2002 11:11:14 PMKevin m F

that background makes no sense.... maybe you should come up with a better background pic... but other than that its a great game
(If this comment was disrespectful, please report it.)

 
3/27/2002 11:56:27 PMMr Pookie

I had to choose a picture for the background which could be washed out so it didn't override the foreground graphics, so choosing something non-contrasting like a nature scene was fine. I know it's not pacman, but it's the only pic I could find on my harddrive which was suitable.
It's easy to change the pic to whatever you like, simply load the bitmap into a paint prog and change it to something you would prefer. :)

(If this comment was disrespectful, please report it.)

 
3/28/2002 5:07:06 AMeasf

the background makes PERFECT sense .. beauty
(If this comment was disrespectful, please report it.)

 
3/28/2002 6:58:58 AMMr Pookie

Hahaha, well there you go. :)
Anyone who knows a little bit about coding, can change the picture, as well as make a new picture appear with each new level... I just didn't do that as the zip file would have been several meg in size then...

(If this comment was disrespectful, please report it.)

 
4/17/2002 4:43:29 PMWacko

I tried to download this code 6 times and the PSC Server crashed on me 6 times, can anyone email the code to me?

Thanx PPL

P.S: Mr Pookie, The Game Looks Good, Go My Missus Interested, So You Must Of Done Sommat Write.

Respect,

Wacko
(If this comment was disrespectful, please report it.)

 
4/17/2002 4:48:18 PMWacko

Well 7th Time Lucky!
Got It At Last, And I Thought That BroadBand Internet Was Not As Good As I Had Anticipated, Anyway, I WILL Be Back Later After I Have Had A Little Ponder @ It.

Respect,

Wacko
(If this comment was disrespectful, please report it.)

 
4/17/2002 8:49:42 PMMr Pookie

It's amazing how many more people have checked it out since it was one of the winners of the code of the month (around 600 new hits in 1 day) the file is around 600k if my memory serves me correctly, and if it took you 7 times to DL it, lucky I didn't include the 10 different backdrops which would have made it around 2.5-3 meg in size then. :)

(If this comment was disrespectful, please report it.)

 
4/18/2002 4:43:47 AMjacques

hi a loved the game. many ppl at my work now play it. Just some notes.

1. When the ghosts go blue, their suppose to randomly move, not AI move, on your game they run away from pacman, in the origenal one they go haywire.

2. when pacman goes around a corner and the ghost just just just touches it pacman dies. At the origenal one the ghost must at least be halfway in him.

3. The ghost must just just be faster than pacman, not the same speed

4. In the origenal game not all ghosts were equaly smart. Red was smartest. Orange dumbest.

5. When pacman start with "Ready!" and I press left, pacman first goes right a bit then goes left

6. when the free man comes, the origenal game make the sound "DING DING DING DING DING"

7. try to download the origenal. But dude, your program rocks!! I'm playing it at lunch times
(If this comment was disrespectful, please report it.)

 
4/18/2002 5:02:17 AMMr Pookie

Okay, thanks for all that info, I'll rewrite the code a bit later on and add thoses things to it.

It's been a while since I've player the original (around 10-15 years!) so forgotten the finer points of it.
It actually does go ding ding ding when you get an extra man, just that as I didn't spend much time on the sounds, when pacman eats a dot straight after getting an extra man, the dot sound cancels the extra man sound... :(

I'll upload a new version within a few days from now, depending on how much spare time I have. :)

(If this comment was disrespectful, please report it.)

 
4/18/2002 11:29:40 PMWILLY

i think it's very good. though it runs very slow on my computer. i'm using pentium III 700mhz. i tried to make tmrkeyboard properties to 20 but it still runs slow. is there another way to make it faster. thanx.

(If this comment was disrespectful, please report it.)

 
4/18/2002 11:31:58 PMMr Pookie

Check your email willy. :)
(If this comment was disrespectful, please report it.)

 
4/20/2002 3:21:18 PMQuestion

I would like to know where got the level picture from. I dont mean the background but the pic that has the level lines and dots for pacman to eat. If you made it did you use something to make it??
(If this comment was disrespectful, please report it.)

 
4/20/2002 9:24:49 PMMr Pookie

Not too sure what you are asking as the question is a little vague, so will guess that you are talking about the data held in memory?

I wrote a little program which scanned the original pacman picture and it drew up the table straight into the immediate window, then I simply cut and paste the whole thing into the game (It had already had the strdata(0)="WWWWWWWWWWWWWWWWWWWWWW" in it for me to grab.

It was a simple test of colours, if the colour was blue then it was a wall, if it was whitish-pink, then it was a dot or powerpill...

If you are talking about the picture itself, I used Paint Shop Pro and made several selections and just loaded them in and altered the pic to the correct brightnesses. I've nearly finished the updated copy of pacman which has 8 pics now. :)
(If this comment was disrespectful, please report it.)

 
4/21/2002 7:08:11 AMbassman

This code simply kicks A__. 5 Golden Globes from me 'cause they don't have 6.
(If this comment was disrespectful, please report it.)

 
4/21/2002 5:32:53 PMIkillkenny

A very good game overall. It's harder than normal Pac Man because the ghosts are all very smart and move quickly around corners (in the originail Pac Man going around corners was an effective way to get ghosts off of you.) All in all a great game, 5 globes.
(If this comment was disrespectful, please report it.)

 
4/21/2002 9:36:36 PMMr Pookie

I think I better download a copy of the original and have a fiddle with it before uploading the new version of it, as it sounds there are a lot of things I may have missed about it... Thanks for all the info so far guys.

(If this comment was disrespectful, please report it.)

 
4/21/2002 10:22:27 PMDanny Weyand

Pacman was the greatest game ever and you did a great job of remaking it. I love it. Within a day I was addicted to it again. Anyways It's great. and 'Computer games don't affect kids. If pacman affected us as kids, we'd all be running around in the dark, munching on candy and listening to repetitive music.' Thank god I have Pacman again!
(If this comment was disrespectful, please report it.)

 
4/22/2002 12:20:55 AMMr Pookie

Funny you should say that, cause I now run around in the dark munching on candy while listening to repetitive music. :(
(If this comment was disrespectful, please report it.)

 
4/22/2002 7:32:29 PMWILLY

i change the code according to your suggestion, first at normal speed it was still slow but in insane speed it is quite okay. thanks i think i can enjoy playing your game now. i hope there are still many more games created in vb so i can learn from it. thank you very much again.
(If this comment was disrespectful, please report it.)

 
4/22/2002 8:18:59 PMMr Pookie

The timing loop in this version of Pacman is triggered every 10 milliseconds, so if the computer is slow, it will miss the timing so become 20, or 30, or 40 if the computer is like ancient!

I've heard the older computers also with the timers ain't very accurate with timings under 55 milliseconds, so this may be another problem to address...

(If this comment was disrespectful, please report it.)

 
4/23/2002 6:03:41 PMNiknak!!

'Computer games don't affect kids. If
pacman affected us as kids, we'd all be
running around in the dark, munching on
candy and listening to repetitive
music.' I think youll find its 'munching on pills' not candy ;)
(If this comment was disrespectful, please report it.)

 
4/23/2002 7:46:11 PMMr Pookie

True, but maybe some people viewed the pills as smarties or m&m's when they were kids!!!!! :)
(If this comment was disrespectful, please report it.)

 
4/25/2002 2:50:38 PMjFurner

I read about programming games all over the Internet a few years back and stumbled upon many interesting sites. One site said something that may help newbies (not you :), though I have since lost the link:

The author of the site recommended starting with Tetris, for simple input handling, drawing, sound, and basic interface coding. Next was Breakout for more advanced physics. Then Pacman (looks like you skipped ahead ;) because it's simple and includes AI.

He said something about the AI that may be of use. He said (just like Jacques did) that the ghosts had different levels of inteligence, that was really quite advanced for the time. One ghost always went right for Pacman. Two of the other ghosts tried to surround Pacman so the first could get him and he wouldn't have an escape route. The last one just went around at random.

In case you were wondering, the last game on his list was Mario, beause then you could include a world bigger than the screen.
(If this comment was disrespectful, please report it.)

 
4/25/2002 3:37:07 PMAnders

Excellent Code!
Still a fab game 20 years on

Keep it up

(If this comment was disrespectful, please report it.)

 
4/25/2002 8:43:27 PMMr Pookie

Re: jFurner.

Interesting stuff. Though I would have thought pong then breakout then tetris as tetris has those different shaped objects which you has to use maths to calc the shape fitting into the blocks....

My next and should be final version of this pacman game, which I'm nearly finished as I don't have too much time to do it, has the new AI system for some ghosts, plus lots of other little adjustments from all the info people have sent to me via emails. ;)

So when it is done, I'll upload it. The only thing I need to do now is change the 2nd and 3rd ghost so that they calc the escape route, which won't be hard to do, just time consuming. :)

Don't think I'll write a mario game as I never did get into that one much.

Still haven't decided the next little game project yet... :)

(If this comment was disrespectful, please report it.)

 
4/27/2002 4:10:29 PMSaurabh Gupta

Great work.. 5 from me!

jacques > FYI, Pac-Man goes slower than the ghosts when its eating the dots and faster when its not.
(If this comment was disrespectful, please report it.)

 
4/27/2002 5:56:20 PMFreddy

For your next game how about re-writing the old BASIC game Gorrila.bas it's a classic right?
(If this comment was disrespectful, please report it.)

 
4/27/2002 5:56:49 PMFreddy

P.S. Great work, 5 from me!
(If this comment was disrespectful, please report it.)

 
4/27/2002 9:24:05 PMMr Pookie

I don't know the game Gorrila.bas. If you can point me to a website which can tell me about it, maybe then I can consider writing it. :)

(If this comment was disrespectful, please report it.)

 
4/28/2002 10:56:57 AMPortJump Pete

Very well done. Note on pacman
s death... he's supposed to 'blip out'.. he basicly keeps opening his mouth untill he is completely extraverted, then goes 'pop' in a little burst of pixels. I actually have this from when I bought the MS Return of Arcade back in '95 as well a the original ROM that someone turned into a playable screensaver. In anycase, WTG! I am very impressed.
(If this comment was disrespectful, please report it.)

 
4/28/2002 12:13:42 PMMr Pookie

Nice.

I know about his dying sequence, just didn't get around to drawing the animation sequence for it. :)

(If this comment was disrespectful, please report it.)

 
4/28/2002 9:18:22 PMpeter cant

Great!

Really great!

I'd echo some of the other guys comments that the ghosts move minutely faster than pacman in normal mode, though they lose a little bit of ground everytime pacman and they turn a corner. This was vital to staying alive and general game play.

Also the way AI worked as I recall is that the ghosts followed a fixed pattern for the first fifteen-twenty seconds, before gowing into aggressively pursue pac-man mode, so you had a window of opportunity to chew up a whole lot of dots before you had to really run.

Oh and I don't think Pacman made the munchy sound when he wasn't munching dots.
(If this comment was disrespectful, please report it.)

 
4/28/2002 9:28:56 PMMr Pookie

That sound might be just the wav finishing off as it cuts out half way through the sound after each dot is eaten, so you will have the sound finish a little after he ate the last dot...

Thanks for all the info about pacman, as it's the little things that I have overlooked and will add to the next version of it.

(If this comment was disrespectful, please report it.)

 
4/28/2002 9:42:47 PMPeter Cant

Sorry, my comments re: the munching sound. On my computer there's some synch problem between the munch sound and eating of the dot. The computer appears to queue the sound so that if you've eaten lots of dots, the sound keeps coming for some time after you've stopped eating. The more dots you've just eaten, the longer the munching sound persists.
(If this comment was disrespectful, please report it.)

 
4/28/2002 9:46:17 PMMr Pookie

I see. might be the sound not getting the time to be read from the harddrive straight away. :)
I've fixed this in the update as all sounds are held in memory now.

(If this comment was disrespectful, please report it.)

 
4/28/2002 9:49:28 PMManny

Excellent! 5 globes 4 ü
(If this comment was disrespectful, please report it.)

 
5/9/2002 8:29:34 AMExea

As for the game itself, ran without a hitch on my computer, excellent stuff - 5 Globes from me.

Now JFurner, that site you're thinking of that was talking about starting with Tetris and moving onto Breakout would be GameDev, a very, very good site and as soon as I saw this I was instantly reminded of that exact same tutorial on GameDev that you were talking about. For those that don't know what GameDev is, or haven't heard of it:

http://www.GameDev.net

And the Tutorial he was refferring to is at:

http://www.gamedev.net/reference/design/features/makegames/
(If this comment was disrespectful, please report it.)

 
5/9/2002 8:30:32 AMExeat

(cont. because of 1000 char limit)

And the exact paragraph of AI that everyone's touched on:

"You may not have been aware of this, but in the original Pac-Man the four different ghosts had different goals to trying to defeat you as a team. The aggressor would try to follow the shortest path to you, making you directly avoid him. The interceptor would try to go to a junction that was closest to where you would have to move to avoid the aggressor. A second interceptor would try to stay more towards the middle and try to cut you off from using the tunnel through the sides. The last ghost would sort of wander aimlessly about which often kept him staying in a section you needed to finish the map."

Mr Pookie might want to try adding that into his game, it'd sure make it more like the original.
(If this comment was disrespectful, please report it.)

 
5/9/2002 9:10:32 AMMr Pookie

I think I know which web site you got that from too, as I have already read it word for word, but it's not in my bookmarks anymore so lost it again. It was one which explained lots of different games to write, and how to write them.... The updated version will have a more better AI like the original.

(If this comment was disrespectful, please report it.)

 
5/10/2002 3:08:31 AMExeat

Yeah, it's www.gamedev.net =/
(If this comment was disrespectful, please report it.)

 
7/16/2002 2:06:16 PMGameDev

Mr Pookie,
Tee game looks great. The improvement might be if you add say 7 more speed levels so the user can select an appropriate level for his/her computer. I know the game runs on base of 2s. How do you change it to add more speed levels?
Thanks! Keep up the good work.
(If this comment was disrespectful, please report it.)

 
7/16/2002 9:35:43 PMPookie

It's not that easy to make all those different types of speed levels as you said, it runs on a base of 2s. The game's engine would have to be rewritten to do this, which ain't hard, just a bit time consuming.
(If this comment was disrespectful, please report it.)

 
8/26/2002 4:31:39 PMMatt Vincent

Ya right 15 hours...

Tell the truth!
(If this comment was disrespectful, please report it.)

 
8/26/2002 10:03:16 PMPookie

Well if you don't believe what I wrote, then thre not much I can say...
(If this comment was disrespectful, please report it.)

 
12/13/2002 10:15:28 AMMaradeuM

Now, gorrila.bas is the first basic example in the world (qbasic), realy nice game.
(If this comment was disrespectful, please report it.)

 
4/30/2003 7:26:39 PMHH

Good Work :)
(If this comment was disrespectful, please report it.)

 
8/23/2003 2:36:16 AMCodeFester

Playing the game has taken a score off my life. Pretty cool. 5 hot ballz from Texas.

(If this comment was disrespectful, please report it.)

 
11/30/2003 1:48:52 PMOrlando Alvares Rios

Jogo FANTASTICO !!!!
Parabens
Good, good work

Sincerily,
Orlando
(If this comment was disrespectful, please report it.)

 
12/18/2003 12:01:12 PM

this is mint pookie. if you get this can you please email me at webmaster@eboooks.com!
(If this comment was disrespectful, please report it.)

 
1/3/2004 8:46:12 AM

pookie maybe u should use a loop instead of a timer.
(If this comment was disrespectful, please report it.)

 
7/2/2004 4:13:12 PMHallsoft

GREAT GAME!!
This must be one of the best VB games on the net!

(If this comment was disrespectful, please report it.)

 
10/9/2004 1:46:08 PMM@r

good job
(If this comment was disrespectful, please report it.)

 
2/17/2005 11:39:54 PM

hi i think your program skills look great man i been trying to make pacman, pong and space invaders. I tried to download the code to view how you did it but I cant get to it. I was hoping if you can send me a copy of the code for vb pacman. p.s. When im done with mine ill load it to the website as well.

(If this comment was disrespectful, please report it.)

 
2/27/2005 4:55:22 PM

The game is awesome but how (in your code)
make the ghosts go slower (but not twice as slow) if you could tell me this I would
be greatfull (I give the game five globes)
(If this comment was disrespectful, please report it.)

 
3/1/2005 7:26:25 AMPookie

To make the ghosts slower:

With Ghost(nLoop)
.DelayTime = 1 - .DelayTime
If .PPTimer > 0 And .DelayTime = 0 Then
HitWall = True ' turn off ghost move for this turn
End If

PPTimer is Powerpill timer, which counts down to zero. when non zero that ghost is in PP mode where they move twice as slow via the DelayTime variable, which each turn goes from 1 to 0 and back again.

Hitwall = true <-- this just tells the routine the ghost cannot move this go so don't move it.

(This code was written around 3 years ago, so took a bit of time for me to work out how I did it myself :P)

(If this comment was disrespectful, please report it.)

 
4/17/2005 3:34:22 AM

Dear “Pookie”,

This code dose not work for me
With
Ghost(nLoop)
.DelayTime = 1 - .DelayTime
If .PPTimer > 0 And .DelayTime = 0 Then
HitWall = True ' turn off ghost move for this turn
End If
It doesn’t make the ghosts go slower for me. I think it might be because I am not putting it in the right place in the basGhostAI module

Also I just learned how to use bitblt but for some reason the blt goes slower when my mouse is on the form.
If I use a do (doevents) loop it still does not work right because then the mouse goes all funky when it is not on the form plus I still have the same problem as before. I was hoping if you could help me out on this because you’re the best vbprogramer that I know:)

With Respect MadGame007

(If this comment was disrespectful, please report it.)

 
4/18/2005 4:52:49 AMPookie

If you are using a Do Loop, you need a doevents command in the loop somewhere so that all the other windows events can trigger, like moving the mouse etc...

I can't even remember why i chose to use vb timers instead of api calls for anymore. However, it's not hard to convert it over from one to the other...

As for why that code doesn't work, well if pptimer = 0 then the ghost is in normal mode, so it won't slow down, if you changed it to:

Ghost(nLoop)
.DelayTime = 1 - .DelayTime
if .DelayTime = 0 Then
HitWall = True
End If

...
(If this comment was disrespectful, please report it.)

 
4/18/2005 4:53:19 AMPookie

... part 2

that would make them permanently run at half speed, because HitWall = true means the ghost has hit a wall so cannot move that turn, the flipflop .DelayTime = 1 - .DelayTime means every 2nd loop, .delaytime will = 0, trigging the event.

You could change it to a loop of 10: EG
.DelayTime = (1+ .DelayTime) mod 10
and every 10th loop, the ghost would miss a turn, making it 9/10th the speed of pacman now....

Hope this helps. :)
(If this comment was disrespectful, please report it.)

 
4/18/2005 5:11:35 AMPookie

And on the subject of timers:
http://www.visualbasicforum.com/showthread.php?t=22026
You can download an example of how to use a very accurate timer, this timer goes down to like millionths of a second in accuracy.
This timer class is what i normally use in writing games, if i'm not using timers, that is.

(If this comment was disrespectful, please report it.)

 
11/6/2006 9:07:19 PMT Jackson

This is real good bud. The ghosts are a little bit harder than with the original but overall it's pretty close. You should consider doing away with the timers and relying on one main loop with a regulated base delay. Use the 'timegettime' API and Sleep to build the necessary speed throttle. You should have a go at cloning Lady Bug by Universal 1981. You'll breeze through it if you managed to do all this in just 10 days. Lady Bug is a cheap rip off from Pac Man but does have a few innovative & original concepts.

(If this comment was disrespectful, please report it.)

 
11/6/2006 9:43:39 PMT Jackson

Also, a worth while mention is that Pac Man is protected by IDSA. It is illegal to distribute Pac Man as either a ROM or other executable. Your versions pretty close to the original, you may want to consider including a disclaimer and warning people about distribution that goes out side the scope of the programming community. http://www.theesa.com/
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.