2D puzzle "Tangled Stones"

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
thewizardplusplus
Prole
Posts: 6
Joined: Sat Oct 16, 2021 10:50 pm
Contact:

2D puzzle "Tangled Stones"

Post by thewizardplusplus »

Here is a technical demo of my game. It lacks a menu and any settings, and the graphics are highly sketchy. My main goal was to test the idea of the gameplay.

Title: Tangled Stones.
Genre: 2D puzzle.
Date of start of work: Wed Nov 04, 2020.
Date of release: Thu Apr 22, 2021.
Developers: only me.
Screenshot:
Image
Summary:
There is a set of paired connected stones on the game field. The player's task is to untangle them and place them in the hole at the bottom of the screen.
Description: https://github.com/thewizardplusplus/tangled-stones/blob/master/docs/gameplay.md.
Controls:
The stones are moved by the drag-and-drop mechanism using a mouse/touchscreen.
Resetting the game field is done with the @ button.
Builds: Source: https://github.com/thewizardplusplus/tangled-stones (MIT license).
User avatar
pgimeno
Party member
Posts: 3656
Joined: Sun Oct 18, 2015 2:58 pm

Re: 2D puzzle "Tangled Stones"

Post by pgimeno »

The idea is interesting, certainly. It somewhat reminds me of a casual puzzle game called Buttons and Scissors. However, using Box2D for the implementation brings in some problems. Box2D rope joints are actually springs, meaning you can actually stretch them, against the design goal. Also, some boxes get stuck when touching the corner of another, when they should be free.

Random generation is also a problem if you don't have a means to discard impossible layouts. What are you supposed to do in a case like this?
Attachments
problem-case.png
problem-case.png (5.92 KiB) Viewed 8231 times
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: 2D puzzle "Tangled Stones"

Post by ReFreezed »

Yeah, Box2D seems to be a problem here. Also, another bug. Holding down one mouse button and pressing another at the same time creates extra ropes that permanently hold the squares in place.

(Another tip is to make the window grab the mouse while dragging squares since the game doesn't receive mouse events when the mouse is outside the window. Dragging squares to the bottom of the window is currently a bit awkward because of this.)
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
User avatar
milon
Party member
Posts: 472
Joined: Thu Jan 18, 2018 9:14 pm

Re: 2D puzzle "Tangled Stones"

Post by milon »

Fun tech demo. I love puzzle games, and this one has promise. :)
Any code samples/ideas by me should be considered Public Domain (no attribution needed) license unless otherwise stated.
User avatar
thewizardplusplus
Prole
Posts: 6
Joined: Sat Oct 16, 2021 10:50 pm
Contact:

Re: 2D puzzle "Tangled Stones"

Post by thewizardplusplus »

Thank you very much for your feedback!
pgimeno wrote: Sun Oct 24, 2021 2:17 pm Box2D rope joints are actually springs, meaning you can actually stretch them, against the design goal.
Yes, I noticed it. In my opinion, this is even good because, otherwise, many combinations would be insoluble since the moving of a stone often requires an increase of the distance to its pair, especially at the beginning of the level.
pgimeno wrote: Sun Oct 24, 2021 2:17 pm Also, some boxes get stuck when touching the corner of another, when they should be free.
I ran into this, but only when trying to pull a stone out of the depth of the level. Most often, in this case, you can simply grab another stone and return to the stuck one later. You can consider this as an additional obstacle for the player.
pgimeno wrote: Sun Oct 24, 2021 2:17 pm Random generation is also a problem if you don't have a means to discard impossible layouts.
This is a flaw. I need to implement a graph-based algorithm that will track such situations when generating a level. As a temporary solution, I made a level reset button if the level turned out insoluble.
ReFreezed wrote: Sun Oct 24, 2021 5:19 pm Holding down one mouse button and pressing another at the same time creates extra ropes that permanently hold the squares in place.
Wow! Amazing bug! Thank you, I did not notice it.
ReFreezed wrote: Sun Oct 24, 2021 5:19 pm Another tip is to make the window grab the mouse while dragging squares since the game doesn't receive mouse events when the mouse is outside the window.
Thank you, I did not know about this possibility!
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests