I’ve finally got around to putting some actual functionality into the slider puzzle interface:
http://www.patorjk.com/games/sliderpuzzles/
It should now function as a complete web app. There’s one last feature I’d like to add, but I may wait a while. I’m itching to start something new. I’ve got a couple of ideas floating around in my head for my next project, but I’m not sure which one to pick yet.
I wish I had more to say, but I’ve had a long weekend and I haven’t really had a chance to get my thoughts together… and now it’s 1am so I should probably get to bed. Oh well I suppose. Not every update can be full of wordy goodness.
Very cool. Although, it looks like the image has to be broken up manually. I was just thinking that it would be possible to use div’s and the css background attribute to create the slices dynamically.
In my head it doesn’t seem so difficult. You can keep the same number of tiles by using the aspect ratio of the picture. Create the divs dynamically using the single picture; each one has it’s own id (with the part of the image specified by css) and a class/style attribute to specify the width and height of the tile.
I dunno how “done” you are with this project, but that’d be something to add.
Article about CSS sprites:
http://www.alistapart.com/articles/sprites
I don’t think any programming project of mine ever really ends, I just eventually get bored with it and move onto something else. Right now I use a program to generate the pieces and metadata for the puzzle (the info on its dimensions, it’s title, etc etc) and then some PHP code checks for folders with this information. It seemed like the easiest thing to do at the time, however, now that you mention this, maybe that way is the better way to go – the user could even chose the dimensions of the puzzle. I’ll look into this.