Click to See Complete Forum and Search --> : Need a "Build a City" javascript
Fredde
01-20-2003, 07:45 AM
I´m pretty new in javascripts so Im looking for a script that I never would be able to create. The javascript Im looking for would be like this:
You have a grassfield or something and as the place were you put your houses and stuff on. Also, you have a tool window with pictures of different houses, walls and things. It would work in the way that you click on a house example from the tool window and drag it to the place you want on the grassfield and it then it stays there.
Now, Im just looking for somehing a little bit like this so I have somehting to start with and something I can modify. If anyone know of a javascript similar to this please let me know.
Fredde
01-21-2003, 03:50 AM
Ok, maybe there arent many of this kinds of javascripts out there. And even if there were, I know that I would not share the one that I had made..
But to another question then, can this be done with javascript? From what I know it should be possible. Complicated yes, but still possible right?
khalidali63
01-21-2003, 01:16 PM
What it seems like,you want to create some type of AI JavaScript program.
Is it possible,offcourse it is,
But you will not be able to retain the seetings,by that I mean is that when you re-arrange items on the page,the settings will be lost as soon as you will end the session,
Unless you think of using some way to write/store data on hadr drive some where.
It sounds extremely interesting idea,and I'd love to be part of it.
Let me know.
Khalid
AdamGundry
01-21-2003, 03:49 PM
You could store the settings in cookies, though it would be rather difficult, or output a chunk of text which the user can copy to a text file to save then copy back again. If you have a server-side database and PHP, Perl, ASP, etc. that would be better.
I'm afraid I don't have the time to get involved, but let me know how you get on.
Adam
Vladdy
01-21-2003, 04:59 PM
Doable, but I doubt you will find something ready to use - your requirements are too specific. There is no magic to what you want to accomplish, just a few hours of coding, provided you got all the graphics...
Fredde
01-22-2003, 06:38 AM
Well, thanks guys for your answers. You´ve made me believe that this actually can be done (maybe even by me!) I´m doing it for a friend who has an ASP game and he wanted to have some sort of citybuilding to it. So storing the data from the java "game" in ASP should work right? Anyway, thanks again, Im off to study more javascript and get going. I´ll post the progress.........