QB64.org Forum

Active Forums => Programs => Topic started by: Dav on January 15, 2020, 10:59:55 pm

Title: MazeConnect puzzle game prototype
Post by: Dav on January 15, 2020, 10:59:55 pm
Started working with QB64 again today.  Ported an old game I made using another BASIC on my iPad.  It's a Maze puzzler.  You click on the tiles to rotate them, connecting the lines. They turn green when connected.  Object is to connect the whole maze, turning the whole board green. 

- Dav

  [ This attachment cannot be displayed inline in 'Print Page' view ]  

  [ This attachment cannot be displayed inline in 'Print Page' view ]  
Title: Re: MazeConnect puzzle game prototype
Post by: FellippeHeitor on January 15, 2020, 11:05:59 pm
That looks really cool, Dav! Will try it soon.
Title: Re: MazeConnect puzzle game prototype
Post by: Pete on January 15, 2020, 11:19:14 pm
That's like the Rubik's Cube of mazes. A-maze-ing!

Pete
Title: Re: MazeConnect puzzle game prototype
Post by: bplus on January 16, 2020, 11:23:08 am
A+ thanks!

Have you considered an AI to solve a puzzle or determine if solvable?

Title: Re: MazeConnect puzzle game prototype
Post by: Dav on January 16, 2020, 11:42:54 am
Thanks everyone.

Bplus: The mazes are pre designed solvable, the game randomly rotates the tiles when loading each level. I have code to generate valid mazes, and also made a design program to hand design levels and save the basic code.

- Dav
Title: Re: MazeConnect puzzle game prototype
Post by: Pete on January 16, 2020, 11:58:25 am
Thanks everyone.

Bplus: The mazes are pre designed solvable, the game randomly rotates the tiles when loading each level. I have code to generate valid mazes, and also made a design program to hand design levels and save the basic code.

- Dav

I figured that was a given. Make a maze creator, and then apply a random block rotation function. I learned that the hard way, when I got fired from my decal job at the Rubik's Cube factory. If only I knew it was easier to glue all the same colors on the same sides first, and then mix up the cube. Sigh... Anyway, that gave me the idea of a playing variant, where the player gets to see the maze, and then gets to witness the slowed downed block rotation process, and now has to try to remember, as best he can, to remake the maze.

I did wonder if there is only one unique solution. I mean is it possible, the various patterns could allow for a different connected outcome?

Pete
Title: Re: MazeConnect puzzle game prototype
Post by: Dav on January 16, 2020, 12:06:39 pm
That's a good idea, Pete. I may have to add it!

Yes, there can be other outcomes other than the original pattern, just as long as every tile is connected the level will pass.

- Dav
Title: Re: MazeConnect puzzle game prototype
Post by: Dav on June 26, 2020, 11:20:53 pm
Started working on this maze puzzle again today.

Updated the tile graphics to give a little more character, a game icon, added a few sound effects, added some keyboard commands to navigate to the levels and reset level.  Planning to putting in a save game progress, and a menu screen.

Here's the latest version:   [ This attachment cannot be displayed inline in 'Print Page' view ]  

- Dav

  [ This attachment cannot be displayed inline in 'Print Page' view ]  
 
Title: Re: MazeConnect puzzle game prototype
Post by: bplus on June 27, 2020, 12:02:18 am
Thanks Dav, I've had fun with previous version look forward to checking this out. :)
Title: Re: MazeConnect puzzle game prototype
Post by: AndytheClown on July 11, 2020, 12:48:13 pm
is it me or is level 11 impossible.... :)
Title: Re: MazeConnect puzzle game prototype
Post by: Dav on July 11, 2020, 03:22:25 pm
Hi @AndytheClown .  It's not you...it IS impossible.  Looks like I made a typo on that level. One more square was supposed to be a black square, the red highlighted square in this picture is where the mistake is - it should be a black box.  I'll fix this bug on the next update.   

Thanks for playing the puzzle.  And a thousand pardons for the mistake...

- Dav

 
Title: Re: MazeConnect puzzle game prototype
Post by: AndytheClown on July 11, 2020, 04:23:33 pm
I’ve changed it in mine for ‘bm’
All good now :) it’s a great game