Posts: 1,407
Threads: 117
Joined: Dec 2002
An interesting challenge...
Do a program that
-loads or creates an image,
-cuts it in rectangular pieces and scrambles them onscreen.
-allows the user to move pieces around using the mouse until the image is reconstructed..
The program can be made in QB or FB, use of graphics, mouse, memory, GUI.... libraries is allowed, however the "engine" must be in human readable Basic.
You can add any extras: "jig-saw puzzle" shaped pieces, loading of external images, etc...
Antoni
Posts: 1,407
Threads: 117
Joined: Dec 2002
Ok, say you did'nt liked it!
Antoni
Posts: 1,845
Threads: 44
Joined: Aug 2002
Sorry Antonio for coming up with this now. I was busy with fbImage... had to be finished =). Anyway, I made this in a few hours, so don't expect too much of it, but it works nice
http://qbnz.com/harsoft/neoJigSaw.zip
Comes with 2 pictures. Currently only supports 1024x768 bmp images. Mouse driven, and if you have a fast computer you can enable blending too. Has 5 difficulties and 2 game styles.
(Note, came up with this late because this uses fbImage).
Have fun
You can add more images by just putting them in it the same directory as jigsaw.exe.
Please let me know what you think
Posts: 1,407
Threads: 117
Joined: Dec 2002
Great work, Neo!
Your clever idea of using fixed positions for pieces, as in a sliding puzzle makes it a manageable problem. I was afraid of the complexity of using free pieces...
I did'nt expect an entry at all. In fact, after thinking at the problem, I decided a puzzle should have a jpeg loader and switched to porting my old loader.
Anyone else is working on this? or must I declare Neo the winner?
Antoni
Posts: 780
Threads: 49
Joined: Dec 2001
I might after Sunday, when my DT stuff is due in...I'll be free. I'd like to do something for this.
My challenge here also had no interest...oh well.
Posts: 3,279
Threads: 170
Joined: Nov 2003
A long time ago, I made a game in VB called "Slider" which was a sliding puzzle game...not quite a jigsaw but more like those plastic puzzle thingos you could find in toy stores and dollar stores. I think it's still on the LSS webpage but I don't remember...
Good challenge though man...if I had the time or desire to code anything PC-related, I'd enter but...
I'd knock on wood, but my desk is particle board.