Archived

This topic is now archived and is closed to further replies.

BoRReL

Game on a Webpage....

Recommended Posts

Heya, I was wondering. Say, I want to write a game that can run on a webpage. This because people won''t have to actually download anything. So what can I do? I could use Java, Shockwave (wich comes with 3D in the latest version) or (not sure) C++ by making an activeX component. I''m interested in your opinions. It is not meant for a simple cardgame, but more high-end. What technique was used for wildtangent? Those games on zone.com using wildtangent are on a webpage also. So what would you do? I''m not interessted in which would be easier to learn orso, because I can program in Java and C++. Also, If I wanted to add multiplayer.... Thanks in advance! Gr, BoRReL

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
WildTangent wrote their own plugin which runs the games. For a good java game, you need the client to download the java 2 plugin and maybe java 3d. If you want to do multiplayer, you''ll need a server which hosts both the game files, and serves the game. Java applets can only connect to the server from which they originated. In any case, the user will need to download something, so I would go with the approach of the user downloading your game executeable, and then downloading levels as needed. They would have to download a plugin anyhow.

Share this post


Link to post
Share on other sites
Heya,

Thanks for your reply!

quote:

WildTangent wrote their own plugin which runs the games



yeah, but how exactly does the plugin fit the game on the webpage?? Is it an activeX compo orso??

Gr,
BoRReL

Share this post


Link to post
Share on other sites
although I am not a big webpage games fan myself, I worked on one, (a casino) we used a bunch of things, on the client (browser) we had an applet retreiving data from the server (it was just some sort of loop with the applet making GET requests to an ISAPI dll in the server) we had a Macromedia Flash user interface, and java-script to handle comunication between the applet and the flash movie.

on the server as I said we had an ISAPI DLL, which was were everything was done, I guess you could program something like that with any other kind of CGI, maybe php, asp, perl, cold fusion, or even C/C++.
basically when the user pressed a button or triggered an action the applet would call say "www.host.com/isapigame.dll?dealcards&arg0=1&userid=37458" the server would return a bunch of java-script commands (text) which the applet would return to the browser, and in turn the java-script in the browser would call eval(commands); which would execute the commands changing the state of the game, of course all inputs and outputs were saved on a database at the server so you know which state the game is in the next call.

Edited by - kwizatz on October 21, 2001 3:25:12 PM

Share this post


Link to post
Share on other sites
Whew Kwizatz, that sounds like quite a piece. I''ve had to do stuff like that (although not for games ), and getting it all to work can be quite a hassle.
Just out of curiosity, did you do this before things like Macromedia Generator were around? Why didn''t you do it in Director?

"If consquences dictate our course of action, it doesn''t matter what''s right, it''s only wrong if you get caught."
- Tool

Share this post


Link to post
Share on other sites
well it was back when flash was between version 3 and 4, generator wasn''t out when we started, when it was out my boss didnt wanted to buy it, although we did used it to make custom made casino Lobby''s . . . then the shareware expired .
This was supposed to be a big project, there were investors and all that, so I didnt got to chose what to use I do think director could have been a better option, but the boss said Flash, and you have to do what the boss says if you want to get paid I didn''t made the flash, my work was mostlly to get the ISAPI working, even though sometimes I had to do some java and java-script.

if you are curious you can check www.casinofactory.com and try to get in one of the sample casinos.

Share this post


Link to post
Share on other sites
Technically WildTangent''s plugin is not an ActiveX control. They do some fakery to mimic bits and pieces of a COM interface, but really it is just a plain ole browser plugin. It exposes an API which can be utilized by java-script, or Java applets.

Share this post


Link to post
Share on other sites