Mine Blast - Sept contest entry - Random Pac-Man like maze generator

Started by TomToad, September 18, 2018, 01:13:38

Previous topic - Next topic

TomToad

Working on my September contest entry.  Not completely sure where I am going with it, but I managed to make a nice maze generator that creates Pac-Man like mazes.  Here are a few examples.
------------------------------------------------
8 rabbits equals 1 rabbyte.

Qube

Oo er, that's working really well, nice one :) - auto maze generation is not as easy some may think.
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

Xerra

Pretty cool. I've tried and failed miserably to do something like this before. What language have you written it in and are you going to share it?
M2 Pro Mac mini - 16GB 512 SSD
ACER Nitro 5 15.6" Gaming Laptop - Intel® Core™ i7, RTX 3050, 1 TB SSD
Vic 20 - 3.5k 1mhz 6502

Latest game - https://xerra.itch.io/Gridrunner
Blog: http://xerra.co.uk
Itch.IO: https://xerra.itch.io/

TomToad

I think I know where I'm going with this now.  Creating a game where you must blast all the mines in the maze with your ship without colliding into any of them.  I have an early demo here to show off the maze creation abilities :)http://www.tomtoad.com/monkey2/mineblast/MineBlast.html, the mines move around randomly and the ship doesn't move at all.  The only control available is pressing space to create a new maze.

As for releasing the maze creation code, I will probably do that after the contest is over.
------------------------------------------------
8 rabbits equals 1 rabbyte.

Steve Elliott

Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

TomToad

Now you can steer the ship with WASD and fire with space.  Generate a new maze with N.  No collision detection nor AI yet.
http://www.tomtoad.com/monkey2/mineblast/MineBlast.html
------------------------------------------------
8 rabbits equals 1 rabbyte.


TomToad

After a few weeks away from this due to illness, I am now giving a big, last minute push to finish as much of it as I can.  I now have the basics done, movement, explosions, collisions, etc..  Just need to add sound, scoring, and some polish.  If I have time, I want to add bonuses and upgrades.

To play, there are 6 spawn points in each maze that spawn mines.  You need to destroy all 6 spawn poins and all mines to complete the level.  You get 3 lives to do so.

http://www.tomtoad.com/monkey2/mineblast/MineBlast.html
------------------------------------------------
8 rabbits equals 1 rabbyte.

Matty

It's quite nice...very nice....if it's too hard to have music it would be nice to have some explosion sounds and little laser pew pew sounds....

Steve Elliott

Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

TomToad

Grrr.  Added some audio and a background music track.  Works just fine when I run it from Ted2go, but seems to fail when uploaded to my site and ran from there.
------------------------------------------------
8 rabbits equals 1 rabbyte.

TomToad

Alright, got it to work.  Seems that Chrome wants to load some parts from cache even when I try reloading the page.  Solution was to open the developers panel and click on disable cache to force a reload. Just right-click the page, select "Inspect", check "Disable Cache", reload page, then everything should work after that.

Added sound and background music to the game.  Created a rather crude splash screen as I needed to properly attribute the creator of the background music to use it legally.  When I get a main menu together, that will be moved to a "Credits" section.

Now I need to add scoring, a main menu, and a bit of polishing. 2 days left, might be able to finish in time. :)

@Steve Elliott:  Thanks for the wishes.  I am about 90% recovered now.  Doc says I should be 100% in about a week or two.  Had a very bad infection in my salivary gland.  right side of my neck looked like Jaba the Hut.  Could barely open my mouth, had to pry my teeth just to fit a spoonful of soup inside.  Was put on a regimen of antibiotics and steroids to get the infection and swelling under control.
------------------------------------------------
8 rabbits equals 1 rabbyte.

Steve Elliott

A week or 2 sounds like good news despite a horrible experience.   :)
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Qube

Glad to hear you are getting better :)

Cool game, look forward to playing more 8)
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

TomToad

Managed to get most of a working game done.  Scoring, sound, main menu, etc...  It is not completely what I want, but I won't have any more time before the deadline, so this version is the last until after the voting.

Showcase entry: https://www.syntaxbomb.com/index.php/topic,4950.0.html
------------------------------------------------
8 rabbits equals 1 rabbyte.