Forum > Graphics

Jigsaw Program (attached) :)

<< < (2/2)

speter:
I've attached a new version of the program. :)

I made the following changes:
  + changed data_folder, ini_fn & help_fn to variables.
  + changed to use "DirectorySeparator" constant instead of "\".
  + added a call to GetAppConfigDir() in FormCreate.
  + included help text as a constant (in case the program can't find the help text file).
  + replaced "uses windows" with "uses math, lcltype, lclintf".
  + added "..." button to allow the images folder to be changed.
  + added upper-case image extensions (BMP etc).

I didn't change:
  + the move-piece code to respond to dragging (it still requires an initial click, then a mouse-move).
  + the drawing of the piece outlines on the stage.

Once again, my thanks to everyone for their very helpful comments & suggestions.

As before, I'd really like to hear from folks (specially those not using windows). :)

cheers
S.

GetMem:
@speter

Now it works on macOS too  :), however it's very hard to move the pieces around. Maybe you should improve the method a little bit. Please note, this is not OS specific, does not work on windows either.

speter:

--- Quote from: GetMem on December 30, 2021, 09:39:29 am ---Now it works on macOS too  :), however it's very hard to move the pieces around. Maybe you should improve the method a little bit. Please note, this is not OS specific, does not work on windows either.
--- End quote ---
Excellent, thanks for that info.

Can you please explain what you mean by "hard to move the pieces"?

Has anyone tried the program on Linux!?

cheers
S.

GetMem:

--- Quote ---Has anyone tried the program on Linux!?
--- End quote ---
Yes. It works on linux too(Mint cinnamon 20.02 64 bit).


--- Quote ---Can you please explain what you mean by "hard to move the pieces"?
--- End quote ---
I read the help file:

--- Quote ---To place a jigsaw piece, click on the piece (don't hold the mouse-button down), then move the mouse (& piece) to the stage
--- End quote ---
This is counterintuitive, at least for me. Anyways congratulation for your game!

speter:
G'Day Folks,

Sorry for the delay (I've been a bit sick over the past week). ;)

I am attaching a new version of the Jigsaw Puzzle program to this post.
I have implemented most suggestions; except for drag'n'drop.

The main changes are:
  + added a "settings" tab;
  + moved the "help" text to the settings tab;
  + allow the images folder to be reset;
  + set the background colour of the Jigsaw tab;
  + added 2 new jigsaw styles (which are kinda horrible);
  + allow the user to _not_ see the piece outlines on the stage;
  + a warning is displayed at startup (for mouse-move);
  + ^^ this warning can be turned off on the settings tab.
  + added an option to replace old INI & Help files.

In case I didn't write it earlier, I recommend that you use your own images with the program! But, if you like the four images I have included, I have uploaded larger versions to imgur.com; the URLs of the images are:
  https://i.imgur.com/sc8zWPw.jpg
  https://i.imgur.com/0lTLSxH.jpg
  https://i.imgur.com/AhRjdno.jpg
  https://i.imgur.com/DryyBd7.jpg

When I looked at drag'n'drop, it all seemed easy / resonable until I wanted to show the piece being moved during the drag action. So, at present I have not included that functionality. :)

My sincere thanks to everyone for their advice and suggestions.

cheers
S.

Navigation

[0] Message Index

[*] Previous page

Go to full version