R Johnson wrote:If it's for private use I would recommend installing a server packaged with php and mysql or similiar. Such as XAMP, WAMP, or LAMP To make the front end really fast I would install joomla takes 10 minutes to be a fully functional website creator that links with php to mysql. Then Java is all you really need and the mysql_jdbc connector. I don't have the link but a quick google of it should bring it up. I have two mmorpgs created and a hex warhammer table top programmed in nothing more. For something more like LastChaos look into Java3D but I'd start in 2D first.
Gregg Bolinger wrote:So these types of games are basically RPG style turn based, correct? Most are just using static images, some javascript and some server side calls. Probably a lot of Ajax stuff. If that is the case, any server side technology will be fine, including Java. I don't know of any "frameworks" that would make creating a game like this easier. But you might consider a lightweight MVC framework just to make the server side development easier. Something like Frontman or Stripes. That said, even simple servlets would be good enough because all you're really doing is pulling some data from the client, maybe doing a bit of logic, and pushing stuff in and out of the database.
R Johnson wrote:My examples were for lan network computers and private distribution. My games are strictly java and yes were as I too like to code things on my own I don't want to waste time doing mundane tasks like creating logins for my friends into the game. The Apache server also provides me the the same thing as JSP though I'm not familiar at all with JSP and with joomla combined all I have to worry about it my applet. I guess I should have mentioned there all applets. My games run multiple users online on a browser like evony and travian the only differnence is there real time. Now I'm not a server guru so I couldn't tell you that it'll handle thousands of clients, but me and my 5 or so friends run around in MUD I created in Java Applets with socket programming. The Apache just provides the gateway to the applet. I don't mind java platform programming, but I like the evony games because you don't have to download anything and people at school or work could play them. I assumed this is what you were after. If that's the case then I still suggest a server whether it be Apache IIS or some other server and a server side script PHP/ASP etc then you have to HAVE a relational database. They all use them and you will have to have one so why not a Apache/php/mysql package? And new user creation/guild ranks/Top Rankers/ etc etc are usually displayed in a web page. I would rather make a game for 10 days then sit writing html/php code for 10 days. .... so why not a CMS? Just figured I'd throw that out there and I am curious. Besides joomla in no way would fit your needs so you would have to build your own template which you could then offer as freeware which could then get you more popular!!! LOL it's all win win if you still see an error please let me know.
R Johnson wrote:The Apache server also provides me the the same thing as JSP though I'm not familiar at all with JSP...
Gregg Bolinger wrote:I'm curious as to why you think what you've done in the past doesn't apply. If you are doing HTML/JavaScript/CSS (not an Applet) you can utilize image maps and/or general DOM manipulation to add elements (in your case images) to the page, regardless of ajax. You'll just need to take care on the positioning and z-index of new elements so they appear where you want them to appear. You could also code the entire interface via an Applet but then your server side communication could become an issue depending on how you approach it.
Personally, I'd stay away from an applet for something like this since you just need static images to show up in the correct place with click/hover events attached to them. You might have an applet as part of the overall game for something like in game chat. But that's up to you.
John Williamsss wrote:
Gregg Bolinger wrote:I'm curious as to why you think what you've done in the past doesn't apply. If you are doing HTML/JavaScript/CSS (not an Applet) you can utilize image maps and/or general DOM manipulation to add elements (in your case images) to the page, regardless of ajax. You'll just need to take care on the positioning and z-index of new elements so they appear where you want them to appear. You could also code the entire interface via an Applet but then your server side communication could become an issue depending on how you approach it.
Personally, I'd stay away from an applet for something like this since you just need static images to show up in the correct place with click/hover events attached to them. You might have an applet as part of the overall game for something like in game chat. But that's up to you.
You're correct, it's been a while since I used an image map so I never thought of that. As for the DOM manipulation you are correct too. Anyway, my team's point is to use any possible Java technology to learn about them and to use them in the future to build something more professional. I'll modify my question: If I do not want only static images but some kind of animation too, then the best Java solution would be an applet or there is a better solution out there?
Gregg Bolinger wrote:JavaFX seems to be the big thing with regards to Java and animation right now. You might look into that.
Is this the real life? Is this just fantasy? Is this a tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|