Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB64 Pac-Man Clone
#34
(01-09-2023, 10:12 AM)RokCoder Wrote:
(12-26-2022, 08:10 PM)TerryRitchie Wrote: Finally! A working version I can share. This version is as about as close as you can get to the original without using MAME and ROM images.

I've been writing (and rewriting) this for 2 months now. There is still one known bug I need to track down. Sometimes the ghosts trapped in the ghost house will stop bobbing up and down. It doesn't affect game play and very rarely happens (which is why I'm having trouble tracking it down). I'll eventually find the bug and post an update, but in the meantime I need to take a break from it.

The ZIP file contains all the files needed (23 of them). The game creates a file when first executed called "pm.sav" that is two lines long and contains the options settings and high score.

Have fun! Waaka Waaka Waaka ...

What a beautifully implemented version of Pacman in terms of the game itself and the actual underlying code. I wish I'd taken the time to look through something like this before making my first QB64pe project last week! Option _Explicit alone would have been a godsend! I've been declaring variables I needed on a non-local scope as shared at root level - I hadn't realised you only need to add shared locally in subs that required access. That's a much neater approach. I'll have a proper look through before embarking on my next project. Thanks for taking the time to make the code so well documented!

Yes, OPTION _EXPLICIT is something I never program without.

I learned that documentation was just as important as the code when I used to dabble in x86 Assembler. It's a habit that I've kept ever since. It not only helps others to understand the code I write but a nice reminder for myself. Sometimes I look at code I wrote years ago and wonder, "What was I thinking here?" LOL

Thank you for the kind words as well Smile

Terry
Reply


Messages In This Thread
QB64 Pac-Man Clone - by TerryRitchie - 12-26-2022, 08:10 PM
RE: QB64 Pac-Man Clone - by james2464 - 12-26-2022, 08:33 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 12-26-2022, 08:47 PM
RE: QB64 Pac-Man Clone - by Jack - 12-26-2022, 10:09 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 12-26-2022, 10:46 PM
RE: QB64 Pac-Man Clone - by PhilOfPerth - 12-27-2022, 06:42 AM
RE: QB64 Pac-Man Clone - by Dimster - 12-27-2022, 05:21 PM
RE: QB64 Pac-Man Clone - by Dimster - 12-27-2022, 05:37 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 12-27-2022, 08:31 PM
RE: QB64 Pac-Man Clone - by Dimster - 12-27-2022, 08:37 PM
RE: QB64 Pac-Man Clone - by Jack - 12-27-2022, 09:17 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 12-28-2022, 02:42 PM
RE: QB64 Pac-Man Clone - by mnrvovrfc - 12-30-2022, 07:21 AM
RE: QB64 Pac-Man Clone - by TerryRitchie - 12-30-2022, 05:10 PM
RE: QB64 Pac-Man Clone - by LEM - 12-30-2022, 07:02 AM
RE: QB64 Pac-Man Clone - by TerryRitchie - 12-30-2022, 05:13 PM
RE: QB64 Pac-Man Clone - by Pwillard - 01-05-2023, 03:43 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 01-05-2023, 04:16 PM
RE: QB64 Pac-Man Clone - by Dav - 01-05-2023, 11:31 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 01-06-2023, 12:25 AM
RE: QB64 Pac-Man Clone - by Dav - 01-06-2023, 01:52 AM
RE: QB64 Pac-Man Clone - by TerryRitchie - 01-06-2023, 03:02 AM
RE: QB64 Pac-Man Clone - by madscijr - 01-06-2023, 02:10 AM
RE: QB64 Pac-Man Clone - by mnrvovrfc - 01-06-2023, 02:38 AM
RE: QB64 Pac-Man Clone - by TerryRitchie - 01-06-2023, 02:58 AM
RE: QB64 Pac-Man Clone - by madscijr - 01-06-2023, 03:54 AM
RE: QB64 Pac-Man Clone - by madscijr - 01-06-2023, 03:28 AM
RE: QB64 Pac-Man Clone - by TerryRitchie - 01-06-2023, 02:46 AM
RE: QB64 Pac-Man Clone - by madscijr - 01-06-2023, 03:46 AM
RE: QB64 Pac-Man Clone - by TerryRitchie - 01-06-2023, 05:44 AM
RE: QB64 Pac-Man Clone - by madscijr - 01-06-2023, 03:03 PM
RE: QB64 Pac-Man Clone - by TempodiBasic - 01-08-2023, 07:01 PM
RE: QB64 Pac-Man Clone - by RokCoder - 01-09-2023, 10:12 AM
RE: QB64 Pac-Man Clone - by TerryRitchie - 01-09-2023, 06:55 PM
RE: QB64 Pac-Man Clone - by RedAfro-LIVE - 02-03-2023, 07:49 PM
RE: QB64 Pac-Man Clone - by mnrvovrfc - 02-03-2023, 10:08 PM
RE: QB64 Pac-Man Clone - by RedAfro-LIVE - 02-06-2023, 01:47 PM
RE: QB64 Pac-Man Clone - by SMcNeill - 02-06-2023, 03:19 PM
RE: QB64 Pac-Man Clone - by mnrvovrfc - 02-06-2023, 07:57 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 02-06-2023, 05:41 PM
RE: QB64 Pac-Man Clone - by RedAfro-LIVE - 02-06-2023, 06:20 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 02-06-2023, 07:55 PM
RE: QB64 Pac-Man Clone - by madscijr - 02-07-2023, 09:52 PM
RE: QB64 Pac-Man Clone - by TerryRitchie - 02-08-2023, 01:43 AM
RE: QB64 Pac-Man Clone - by madscijr - 02-08-2023, 12:54 PM
RE: QB64 Pac-Man Clone - by bplus - 02-03-2023, 08:17 PM
RE: QB64 Pac-Man Clone - by RedAfro-LIVE - 02-06-2023, 02:41 PM
RE: QB64 Pac-Man Clone - by bplus - 02-06-2023, 05:00 PM
RE: QB64 Pac-Man Clone - by bplus - 02-06-2023, 07:50 PM
RE: QB64 Pac-Man Clone - by bplus - 02-06-2023, 08:22 PM



Users browsing this thread: 39 Guest(s)