Author Topic: MazeConnect puzzle game prototype  (Read 1955 times)

0 Members and 1 Guest are viewing this topic.

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
MazeConnect puzzle game prototype
« 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

 
MazeConnect.jpg


  

FellippeHeitor

  • Guest
Re: MazeConnect puzzle game prototype
« Reply #1 on: January 15, 2020, 11:05:59 pm »
That looks really cool, Dav! Will try it soon.

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: MazeConnect puzzle game prototype
« Reply #2 on: January 15, 2020, 11:19:14 pm »
That's like the Rubik's Cube of mazes. A-maze-ing!

Pete
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: MazeConnect puzzle game prototype
« Reply #3 on: January 16, 2020, 11:23:08 am »
A+ thanks!

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

« Last Edit: January 16, 2020, 11:27:28 am by bplus »

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: MazeConnect puzzle game prototype
« Reply #4 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

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: MazeConnect puzzle game prototype
« Reply #5 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
« Last Edit: January 16, 2020, 12:00:40 pm by Pete »
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: MazeConnect puzzle game prototype
« Reply #6 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

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: MazeConnect puzzle game prototype
« Reply #7 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: 

- Dav

 
mazeconnect11.jpg

 

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: MazeConnect puzzle game prototype
« Reply #8 on: June 27, 2020, 12:02:18 am »
Thanks Dav, I've had fun with previous version look forward to checking this out. :)

Offline AndytheClown

  • Newbie
  • Posts: 2
    • View Profile
Re: MazeConnect puzzle game prototype
« Reply #9 on: July 11, 2020, 12:48:13 pm »
is it me or is level 11 impossible.... :)

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: MazeConnect puzzle game prototype
« Reply #10 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

 
MazeConnect-bug.jpg
« Last Edit: July 11, 2020, 03:26:04 pm by Dav »

Offline AndytheClown

  • Newbie
  • Posts: 2
    • View Profile
Re: MazeConnect puzzle game prototype
« Reply #11 on: July 11, 2020, 04:23:33 pm »
I’ve changed it in mine for ‘bm’
All good now :) it’s a great game