Page 1 of 3

Basic slide puzzle

Posted: Mon Jan 07, 2013 10:38 am
by vicist
I had some time on my hands over xmas and new year so I wrote a basic 3.5k game for the Vic - my first in almost 30 yrs!!!

You have 1 minute to defuse the bomb by joining the wires (!) to the lights.

Image

If you are interested the .prg is available from my Vic webpage.
http://www.vicist.co.uk/vic.html

Edit: V2.0 plus instructions can be downloaded here.

Posted: Mon Jan 07, 2013 3:58 pm
by buzbard
Awesome game, thanks!

One problem, I have a NTSC VIC and after the explosion sequence the display area is moved to the lower right, partially off screen.

Posted: Mon Jan 07, 2013 4:58 pm
by matsondawson

Posted: Mon Jan 07, 2013 5:02 pm
by vicist
Sorry about that. Programmed it in vice default of pal (I am in the uk after all). Haven't even tried it out on my real vic yet.

Tested it in vice ntsc mode and yes, you're right, it does go a bit squiffy after the explosion. Make these changes to the program and it'll work properly for ntsc.

Code: Select all

1220 pokev-13,fna(3)+23:pokev-14,fna(3)+4:next:next:pokev-1,0
1230 pokev-13,25:pokev-14,5:return
Glad someone is enjoying my effort.

Posted: Mon Jan 07, 2013 5:32 pm
by toby405
I like it but it confuses me, I feel like I'm moving the empty space instead of the tiles, am I doing it wrong?

Posted: Mon Jan 07, 2013 5:46 pm
by vicist
I like it but it confuses me, I feel like I'm moving the empty space instead of the tiles, am I doing it wrong?
You are correct! Moving the space transfers the tile to where the space was. In a real sliding puzzle you move the tile into the space, but the effect is the same - the tile and space swap places.

I did program this game in real studio for the pc and mac where you click on the tile you wish to move but doing this in 3.5k on a vic would be quite a challenge.

Posted: Mon Jan 07, 2013 6:17 pm
by vicist
To save everybody time, I've adjusted the relevent lines in the program and created an NTSC version of the game which you can find at the same place.

http://www.vicist.co.uk/vic.html

Enjoy.

Posted: Mon Jan 07, 2013 7:56 pm
by darkatx
I think we have our first entry for Vic-20 Software releases of 2013 on the Announcement Board! :D

Posted: Mon Jan 07, 2013 8:00 pm
by Jeff-20
I absolutely love the idea! It took some time to get used to the controls because there are similar games with different control rules. The brain is a bit persistent. I more impressed by the simplicity of the game. Easy to pick up and understand right away but still very challenging!

I was only slowed down by the interface. This would be a great game for manual control (an electronic hand held device or maybe a mobile app). Still, it's a lot of fun!

Posted: Tue Jan 08, 2013 4:36 am
by vicist
I can't take credit for the idea of the game. It is based on a handheld game called "Beat The Blast" ©paladone. It consists of a manual slide puzzle board and a battery powered timer and lights system. I bought this from play.com but was disappointed that it made no checks to see if you had configured the tiles properly. You could just turn the timer off at any point. I thought hmmm, an ideal candidate for a computer game.

Image

Perhaps joystick control of the space would be a better idea. Then anyone playing the game in vice etc. and wishing to just use the keyboard could use the joy keys option and select their own keys for operation.
There is not enough memory left to implement both controls for a real vic (only 8 bytes free after playing a couple of times).
Machine code would speed up the movement and help with the memory constraints but that wasn't the idea.
I'm quite happy with the game as it stands but please feel free to poke about in the code and change things if you wish.

Posted: Wed Jan 09, 2013 1:34 am
by lordbubsy
Thanks for porting this to the VIC-20! I think joystick control would be an asset though.

Posted: Fri Jan 11, 2013 10:51 am
by vicist
Joystick control versions are now available from the same link.

http://www.vicist.co.uk/vic.html

I hope this makes things a little easier. :)

Posted: Fri Jan 11, 2013 11:49 am
by lordbubsy
Just tried it on the real VIC-20 (ntsc)!
For me it woks much better this way. :)

Posted: Fri Jan 11, 2013 12:56 pm
by buzbard
I'm assuming it takes more than two tiles to make a connection?
Image

Posted: Fri Jan 11, 2013 1:23 pm
by vicist
I'm assuming it takes more than two tiles to make a connection?
If the lights appear in the corner you only need one tile. The two lights are completely random (apart from a small check to ensure the same ones are not picked one after another) so some goes will be easier than others. As long as the lights are connected by a continuous red line (the wire) and you press F7 before the timer gets to 0:00 you are safe.