SyntaxBomb - Indie Coders

General Category => Worklogs => Topic started by: TomToad on September 18, 2018, 01:13:38 AM

Title: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
Post by: TomToad on September 18, 2018, 01:13:38 AM
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.
Title: Re: Random Pac-Man like maze generator
Post by: Qube 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.
Title: Re: Random Pac-Man like maze generator
Post by: Xerra 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?
Title: Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
Post by: TomToad 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 (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.
Title: Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
Post by: Steve Elliott on September 18, 2018, 08:31:18 PM
Cool stuff  8)
Title: Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
Post by: TomToad 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 (http://www.tomtoad.com/monkey2/mineblast/MineBlast.html)
Title: Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
Post by: iWasAdam on September 20, 2018, 05:51:10 AM
Great looking stuff :)
Title: Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
Post by: TomToad 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
Title: Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
Post by: Matty 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....
Title: Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
Post by: Steve Elliott on October 12, 2018, 09:54:08 PM
Good work mate, and wish you well on your recovery.
Title: Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
Post by: TomToad 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.
Title: Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
Post by: TomToad 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.
Title: Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
Post by: Steve Elliott on October 12, 2018, 11:04:00 PM
A week or 2 sounds like good news despite a horrible experience.   :)
Title: Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
Post by: Qube on October 12, 2018, 11:11:27 PM
Glad to hear you are getting better :)

Cool game, look forward to playing more 8)
Title: Re: Mine Blast - Sept contest entry - Random Pac-Man like maze generator
Post by: TomToad 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 (https://www.syntaxbomb.com/index.php/topic,4950.0.html)
SimplePortal 2.3.6 © 2008-2014, SimplePortal