Not A Game - Slider Control Demo
Shri

All,

 

I put together a little demo of a slider control for a wade game.

This is very basic, use the slider control  to move the map left or right.

Like the tab menu, it is configured through a json file.

Needs more work to implement the vertical option.

 

This uses the  wade 1.1.3 engine and the 1.1.1 iso plugin
In the html, these are loaded from a common directory.
You will have to modify the html file to point to wherever you are getting the wade engine and iso plugin from.

Besides modifying the html, it should run out of the box.
Feel free to reuse the code as you wish. Ignore the copyright stuff at the top of the files
The iso images are all under CC 3.0 so attribution is requested..

 

cheers

All 3 Comments
Elliot

Hi

 

It's cool, but it's missing a file (greenBox.png). Other than that, works perfectly.

 

I think adding vector graphics support would be a good idea, I'll give it a go tomorrow...

 

Thanks for sharing it with us

Shri

Elliot,

 

Oops.

I had a green box as a background and then tested it with none, and forgot I was still loading the background image !

I have fixed the zip and reposted.

As you know, you set the images field in the json to 'none' and there are placeholders for where to insert the vector graphics.

 

I was also going to make it so the slider is vertical or horizontal.

The vertical stuff is just duplicating a bunch of code and changing the position to y instead of x.

I may get to it, but I wanted to spend some time on the mini map which you so kindly helped with.

 

Thanks for catching the bug !

 

cheers

Gio

Another useful one, thanks for sharing :)

Post a reply
Add Attachment
Submit Reply
Login to Reply