A while back I posted a link to my online game, Black Box. It's had a bit of a technology update (but no new user-visible features). Anyone interested please visit The Bear Den (see link below) for details. [ May 11, 2005: Message edited by: Bear Bibeault ]
The servlet->JSP API is well-defined since I use scriptless JSP pages, but it is certainly geared towards JSP 2.0. Being Flash-impaired I'm not sure how well suited it would be to a Flash interface.
The "business logic" layer, which implements the game logic, is completely UI-agnostic and could be layered upon to maintain the server-side state.
Pauline, could you fill me in a little on what servlet<->Flash interaction entails?
Joined: Jan 19, 2001
Something called Flash Remoting is the usual go-between for Flash and servlets. It gives you the serialization/deserialization you need for Java and ActionScript objects to be understood on either end. (ActionScript is Flash's scripting language.)
My limited experience with Flash Remoting has been with Flash and PHP, but in general it likely works the same way. It gets you a gateway on your server that your Flash app sends it's requests through and gets it's responses back through.
Here's an article that explains some of the mechanics (a bit dated but the old ActionScript syntax doesn't break it as an overview): Flash Remoting for J2EE Developers.
Nowadays another approach called Flex is all the rage, but it's big price tag limits it to big commercial projects. Flash Remoting is also not cheap, but there are open source alternatives (openamf, for one), or if you're using Cold Fusion or JRun I think it's included.
IS this game an applet? usually my mozilla browser freezes for a sec, when loading applets, yet there was no such delay while loading this game.
Secondly, excellent work. Very impressive game however i think there is a problem with the game, i tried to guess the positions of 5 balls, after i had made my choice, i clicked on submit, which merely refreshed the board . I spent 10 min guessing and then a new board??? why is that?
There's a link near the bottom of the Welcome Page, and also one at the top-right of the Game page (right under the User's Guide link).
and how did u make the graphics? did u use maya, 3d studio max??
The graphics for the 3D theme were made by Jay Barnes, a web designer that I work with on occasion. I'm not sure what tools he used to create them. I know he does amazing things with Photoshop, but I've seen him use other tools as well.
[ June 16, 2005: Message edited by: Bear Bibeault ] [ June 16, 2005: Message edited by: Bear Bibeault ]
Joined: Mar 01, 2002
Can the same game be made into pure 3D, allowing the users to see the board the and pieces from any angle and actually move the camera around?
could jsp/servlet technology manage that?
and what program will be used to make the graphics for that( could u ask barnes then) i dont think photoshop can make 3d graphics. or can java3d or openGL manage the graphics?
I would start a new topic in this forum on just that subject. Otehrs might have some good ideas -- it is not my area of expertise.
why wouldnt jsp/ servlets work?
JSP and Servlets live in the world of the HTTP protocol -- where the browsers send a request, and the server sends a response (usually HTML) back. Not very well suited to 3D interactivity. It's barely suitable for a game like BlackBox.
Joined: Mar 01, 2002
i posted the question on the Sun forums, and they say that an applet is the best way to go. what do u think?