Skip to main content
gamedev.net
🔒 Locked

[web] Making a GUI with JavaScript?

Started by polyfrag Apr 3, 2009 at 7:22 PM 6 replies 1.1k views
Original Post
polyfrag
polyfrag
Is it possible to make an RTS-style GUI for a PHP browser strategy game using &#106avascript? For example, is it possible to have drag-selection and units moving using &#106avascript?
ID Merlin
ID Merlin
Yes. Use a framework like Prototype or, even better, the Google Web Toolkit to make your life easier.
polyfrag
polyfrag
Do they require AJAX?

If so, is it difficult to install and learn?
Stani R
Stani R
AJAX is just one part of &#106avascript (the part where you update the page by asking the server for more data instead of asking for a new page). It's supported by most popular &#106avascript frameworks (what they actually do is make it somewhat less cumbersome to write AJAX request than if you were to write them in plain &#106avascript, you don't actually need a JS framework to use AJAX), but that doesn't mean you have to use it. Regardless, there's nothing to install, apart from whatever software you are using to write web pages. Just download the relevant script and include it in the page. <br><br>Most frameworks have some widgets (MooTools has a slider, for instance), so apart from the Google Web Toolkit you might also just want to look at the Yahoo User Interface Library and similar frameworks. I personally find &#106avascript difficult to learn because good documentation seems to be hard to come by (maybe I just don't know where to look) and learning by looking at other people's code &#111;nly gets you so far. If you can get your hands &#111;n a good book &#111;n the subject, you'll likely be all set though.
polyfrag
polyfrag
Thanks for all the info. Very useful. :D
MortusMaximus
MortusMaximus
My team has been working on developing exactly the same thing for a few months now.

The help wanted page is here, showing information about the project:

Project Help Wanted page

Let me know if you want to do some collaboration.

MSN messenger: maximus_705@hotmail.com
Check out the first gameplay video from my javascript/PHP RTS game
polyfrag
polyfrag
That is very impressive. Are you looking for a programmer? I'm currently working on another project, so I can't help.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.