Archived

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

neonzero2

HTML BASED GAME??

Recommended Posts

hey is it posible you think to create a "MYST" "RIVEN" type game using only HTML? noy the point and click navigation i know would work. the only problem i see is that the player would not have any way of carrying objects with him. for instance, if you needed a key to get in a door there is no way to carry a key from one side of the board to the other. anyone have any thoughts on this? might be cool to have a site based game like that.

Share this post


Link to post
Share on other sites
yeah.. I suppose. Though I would definatly consider using javascript aswell. I bet it would be more annoying than programming a c/c++ game

¬_¬

Share this post


Link to post
Share on other sites
You''d need to use javascript to handle the cookies which would store player info. Other than that, HTML would be enough to handle it. You''d just have your image as the table background and then use a stretched transparent 1x1 gif and table cells to make the hot spots. Anything you want to animate you''d just have to designate a table cell for and keep it seperate of the background image.

It''s actually pretty easy to do but kind of tedious. You''d want to keep your cookie functions in a seperate file that is then included in each of the HTML scene pages. You''d also want to do SSI to keep the look consistant between scenes without having to cut and paste a bunch of HTML.

Ben


IcarusIndie.com [ The Rabbit Hole | The Labyrinth | DevZone | Gang Wars | The Wall | Hosting | Tiberian Merchandise!!!! | GameShot ]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
there a ton off plug ins for 3d in browsers do a google on it.

I am wondering if blender are going to release a new version of thiers which would be cool as it''s free.

over ones are wild tangents 3d plugin, director 8.5(shockwave)

Java3d also.

But to be honest with you I would use php and a lot of images(and or animtions) to simulate the look of myst because lets face it the game is just so simple(gameplay).


Share this post


Link to post
Share on other sites
there a ton off plug ins for 3d in browsers do a google on it.

I am wondering if blender are going to release a new version of thiers which would be cool as it''s free.

over ones are wild tangents 3d plugin, director 8.5(shockwave)

Java3d also.

But to be honest with you I would use php and a lot of images(and or animtions) to simulate the look of myst because lets face it the game is just so simple(gameplay).


Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Besides Java3D and Shockwave, there is also a little something called VRML (virtual reality modeling language) that one could use to implement a 3D environment in a web browser. I used this before and found it could easily be used to create 3D simulations in no time flat assuming a solid knowledge of 3D graphics.

Share this post


Link to post
Share on other sites
It would be simple to create a Myst or Riven style game using ONLY HTML -- Simple, but not Easy! The problem is that you''ve got to script the image maps for each image on each page individually. You''d have a number of HTML files on your site equal to the number of locations or perspectives (screens) in your game. Sounds like a lot of work to me, but hey, go for it.


Brian Lacy
Smoking Monkey Studios

Comments? Questions? Curious?
brian@smoking-monkey.org

"I create. Therefore I am."

Share this post


Link to post
Share on other sites
It would be simple to create a Myst or Riven style game using ONLY HTML -- Simple, but not Easy! The problem is that you''ve got to script the image maps for each image on each page individually. You''d have a number of HTML files on your site equal to the number of locations or perspectives (screens) in your game. Sounds like a lot of work to me, but hey, go for it!


Brian Lacy
Smoking Monkey Studios

Comments? Questions? Curious?
brian@smoking-monkey.org

"I create. Therefore I am."

Share this post


Link to post
Share on other sites
What about FLASH(it does work with bitmap graphics too)?

CGI? Perl? Active X?

storage of inventory could be done server-side too...just require player to "register" (give them a username and password) which would generate a cookie for the user, and a account file on the server (which stores game info)...

the actual game screen could be a HTML frame (which also contains clickable locations, etc..) or inbedded object (shockwave, whatever)...player clicks on, say a book page,...which would actually be a link to another page (image and click areas)...a basic script could be generated so that when that particular page is acessed...it sticks the item in the server side player game file...other pages that require items to axcess could just check to see if the player has the needed item in the game file, etc...

A quick and dirty application could even be written in VB to automaticly generate the HTML click zone codes and such...you could then just load a bunch of images into this app...create a linking hierchy...and outline the clickable areas...then the program generates the HTML and needed CGI,Perl,whatever scripts to save game states to the players file...sort of a online Myst editer

Share this post


Link to post
Share on other sites
You could make those games in any language. The only adventure style game you could do in pure HTML is a "Choose Your Own Adventure" of which there are many examples on the net.

Otherwise you need to at least use javascript+HTML to get access to cookies.

Ben


IcarusIndie.com [ The Rabbit Hole | The Labyrinth | DevZone | Gang Wars | The Wall | Hosting | Tiberian Merchandise!!!! | GameShot ]

Share this post


Link to post
Share on other sites
your best bet by far is shockwave. It''s relatively easy to use, fully featured, and fast loading. It uses vector graphics, but it has a built in converter for your image files.

Share this post


Link to post
Share on other sites
I''d suggest your best bet is to learn ASP (VB/Java/C#/whatever??) or PHP, and perhaps some SQL. This would make it much eaiser, the time to learn one of them enough is much less than the time to sort out hunderds of HTML files.

Do not meddle in the affairs of moderators, for they are subtle and quick to anger.


ANDREW RUSSELL STUDIOS
Cool Links :: [ GD | TG | MS | NeHe | PA | SA | M&S | TA | LiT | H*R ]
Got Clue? :: [ Start Here! | Google | MSDN | GameDev.net Reference | OGL v D3D | File Formats | Go FAQ yourself ]

Share this post


Link to post
Share on other sites
That''s an idea I''ve considered before now. You could certainly do it with just html, but the problems would arise with keeping inventory items for the next page...
This could be solved by using Serverside scripting (I''d suggest PHP, its syntax is much nicer than asp, its free, and much easier to learn than perl) by simply passing variables through the GET method (when you see a long url with blah.php?hmm=ho&teehaw=432g432gh4g3232&yuhuh=wheeee etc etc, then those are variables being passed via the URL (GET) to the parser) You would then just set cookies in the script to keep those values, perhaps reference a database (if you wanted to start making things more complex).... This would come with its own problems, if you didn''t use cryptic variable names and values, as people would be able to tamper with things in the url.

Anyway, so that would be easy enough. As for the HTML side, you could just use one big image, and use Layers with item images in, allowing you to create rollovers, image animations, even DHTML animation etc without having to animate the main image, resulting in huge filesizes, as you''d have to if you were to use image maps.

Heh, anyway, that''s a bit more complex than just using HTML, but it''s probably the most efficient method you''ll find. And php really isn''t very hard to learn at all...if you''re already familiar with c-style syntax, you could pick it up in a day. If, however, you''re used to basic-style syntax, perhaps ASP would be more up your street. And if you like confusing-style syntax, go for perl

Andru™ a registered trademark of the Globex® corporation.

Share this post


Link to post
Share on other sites