
CMP20GAM.BAS - GW-BASIC, maze game
This was my basic one-path maze generator made into a game. It includes saving the high score (as well as randomization seed, to ensure a different game each time) to disk. It invokes the joystick to move. I changed the code a bit for a few reasons: PC-BASIC emulation gives 0..255 for the STICK() functions, whereas GW-BASIC gave 0..110. The speed is 3 or 4x greater in PC-BASIC, so the player dot movement was much too fast. Because of the speed, it was impossible to find your way into an intersection, so I had to add diagonal movement that took precedence. I thought to add a different color for paths already taken, and with the extra PC-BASIC speed, I made the player 3x3 instead of 1x1 which helped highlight travelled diagonal paths nicer. Further, PC-BASIC has a bug with CLEAR or CLS that cleans out variables, so I had to change when the high score was loaded.
The solutions to these mazes really shows the limitation of the single-path generator. It essentially snakes its way around the center, and the forks only happen when it gets stuck. This is something I learned almost right away, and thus devised the multi-path generation which I showcase in my other GW-BASIC videos in this playlist.
My playlists:
--------------------
- Voxel: https://youtu.be/watch?v=XCVWEuhCCDM&list=PLjnbT4UISq0bQF1g85tE9jTrKfEtdRYlY
- Road: https://youtu.be/watch?v=ck5ALX11YU4&list=PLjnbT4UISq0bnfd1RC3M4PgTgkmhlkikV
- Ray Casting 3D: https://youtu.be/watch?v=zjswXUTMP2o&list=PLjnbT4UISq0YcFtRFjFQqK0g6ONNCtrvY
- Side-Scroll Shmup: https://youtu.be/watch?v=fF4X8zN-Raw&list=PLjnbT4UISq0Y_7IAN_zUzxgZnfhXxo_0Q
- MonoGame Tutorial: https://youtube.com/watch?v=WW1dJnfXWb0&list=PLjnbT4UISq0adw__Y9B2eXA0LL35TyORU
My websites:
---------------------
- my GitHub: https://github.com/JDoucette
- my company: http://xona.com
- my Blog: http://thefirstpixel.com
Other Videos By Jason Doucette
Other Statistics
Pac-Man Statistics For Jason Doucette
At this time, Jason Doucette has 508 views for Pac-Man spread across 2 videos. Less than an hour worth of Pac-Man videos were uploaded to his channel, making up less than 0.68% of the total overall content on Jason Doucette's YouTube channel.