June 27, 2019, 12:21:14 PM

Author Topic: Mine Blast - Sept contest entry - Random Pac-Man like maze generator  (Read 1002 times)

Offline TomToad

  • Sr. Member
  • ****
  • Posts: 383
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.

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 1927
Re: Random Pac-Man like maze generator
« Reply #1 on: September 18, 2018, 02:53:43 AM »
Oo er, that's working really well, nice one :) - auto maze generation is not as easy some may think.
Until the next time...

Offline Xerra

  • Hero Member
  • *****
  • Posts: 608
    • Retro Evolved
Re: Random Pac-Man like maze generator
« Reply #2 on: September 18, 2018, 05:31:43 PM »
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?

Offline TomToad

  • Sr. Member
  • ****
  • Posts: 383
Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
« Reply #3 on: September 18, 2018, 06:12:01 PM »
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.

Online Steve Elliott

  • Hero Member
  • *****
  • Posts: 1809
Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
« Reply #4 on: September 18, 2018, 08:31:18 PM »
Cool stuff  8)
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline TomToad

  • Sr. Member
  • ****
  • Posts: 383
Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
« Reply #5 on: September 19, 2018, 11:44:26 PM »
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.

Online iWasAdam

  • Hero Member
  • *****
  • Posts: 1124
Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
« Reply #6 on: September 20, 2018, 05:51:10 AM »
Great looking stuff :)

Offline TomToad

  • Sr. Member
  • ****
  • Posts: 383
Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
« Reply #7 on: October 12, 2018, 07:37:45 PM »
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.

Offline Matty

  • Hero Member
  • *****
  • Posts: 656
    • MattiesGames
Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
« Reply #8 on: October 12, 2018, 09:49:10 PM »
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....

Online Steve Elliott

  • Hero Member
  • *****
  • Posts: 1809
Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
« Reply #9 on: October 12, 2018, 09:54:08 PM »
Good work mate, and wish you well on your recovery.
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline TomToad

  • Sr. Member
  • ****
  • Posts: 383
Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
« Reply #10 on: October 12, 2018, 10:31:58 PM »
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.

Offline TomToad

  • Sr. Member
  • ****
  • Posts: 383
Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
« Reply #11 on: October 12, 2018, 11:01:04 PM »
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.

Online Steve Elliott

  • Hero Member
  • *****
  • Posts: 1809
Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
« Reply #12 on: October 12, 2018, 11:04:00 PM »
A week or 2 sounds like good news despite a horrible experience.   :)
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Mojave, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.1, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 1927
Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
« Reply #13 on: October 12, 2018, 11:11:27 PM »
Glad to hear you are getting better :)

Cool game, look forward to playing more 8)
Until the next time...

Offline TomToad

  • Sr. Member
  • ****
  • Posts: 383
Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
« Reply #14 on: October 14, 2018, 01:12:09 AM »
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.