View Full Version : Virtual Train Set
neil9999
07-09-2004, 09:47 PM
Hi,
Here is a virtual train set I've made. To place a piece, select it from the drop-down and click 'Go!'. The train will always start on the top-right hand square, then go right.
When you open the page, enter how many rows and columns there should be in the grid: the default is 16 X 16.
Any comments and/or suggestions appreciated,
Neil
bcarl314
07-10-2004, 05:42 PM
That is way cool for a JS game. A suggestion would be to create some maps and have people try to figure out where the train will end up.
neil9999
07-10-2004, 06:36 PM
That is way cool for a JS game. A suggestion would be to create some maps and have people try to figure out where the train will end up.
Thanks for the positive feedback! Do you mean like those things where lots of objects are joined to each other by lots of squiggly lines, and you have to work out which are joined to which?
I'm working on a method where to lay the track you just drag the mouse where you want the track, and therefore train to go.
Thanks,
Neil
Basscyst
07-12-2004, 12:41 AM
I agree that is pretty neat! Good Job! :thumbsup: Seems you left out the train image from the zip file though.
Basscyst
neil9999
07-12-2004, 06:01 PM
Thanks! And whoops! Here's the new ZIP, containing all the files.
Neil
GeForce
07-13-2004, 07:30 AM
Thanks neil, I've updated it. Also there is one very minor problem. In your script images are called as .gif but they are actually .GIF. On case sensitive servers (like LiveScripts) it means the images don't work. I have fixed them on the site but you may like to fix them in the ZIp file.
Awesome script & great fun to play with!
Jon :cool:
squirellplaying
07-13-2004, 07:36 AM
Umm I'm getting an error in firefox 0.9. But fine in IE.
Error: event is not defined
Source File: file:///C:/Documents%20and%20Settings/Dave/Desktop/train/generatesquares.htm
Line: 189
neil9999
07-13-2004, 06:42 PM
These must be the problem lines then:
xpos=document.body.scrollLeft+event.x;
ypos=document.body.scrollTop+event.y;
Do you know which version of javascript your browser is ? (sorry, I don't have it). Netscape (http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/event.html#1193137) says that the event object is implemented in Javascript 1.2, other than that I can't think why it doesn't work.
GeForce:-thanks for that. I think I've changed them all now; the new version is attatched.
Thanks all,
Neil
EDIT:-I've changed all the ZIPs attatched to the new version.
yamoo
07-30-2004, 07:01 PM
Nice script neil9999!
fszone
07-30-2004, 07:40 PM
I've never seen anything like this before, way cool script! :thumbsup:
neil9999
08-07-2004, 08:40 AM
Thanks, sorry for the delay in replying, just got back from holiday.
I've never seen anything like this before, way cool script! :thumbsup:
So I haven't made a duplicate of something for once :D :D :D . I've seen it in places like this (http://www.hornbyrailways.com/pages/prod_det.aspx?id=2144) before, but not with the trainset as a webpage.
Thanks,
Neil
neil9999
08-07-2004, 08:52 AM
I did a Google search on virtual train set (http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=virtual+train+set), and I found a Java virtual train set but look what's second!
Neil
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.