HTML BASED GAME??

Started by
16 comments, last by neonzero2 21 years, 5 months ago
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."
---------------------------Brian Lacy"I create. Therefore I am."
Advertisement
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."
---------------------------Brian Lacy"I create. Therefore I am."
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
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 &#106avascript+HTML to get access to cookies.<br><br>Ben <br><br><font size="-2"><br><b><a href="http://www.icarusindie.com">IcarusIndie.com</a></b> [ <a href="http://www.icarusindie.com">The Rabbit Hole</a> | <a href="http://www.icarusindie.com/labyrinth/">The Labyrinth</a> | <a href="http://devzone.icarusindie.com">DevZone</a> | <a href="http://www.icarusindie.com/Gang Wars/">Gang Wars</a> | <a href="http://www.icarusindie.com/cgi-bin/thewall/thewall.cgi">The Wall</a> | <a href="http://www.icarusindie.com/hosting/">Hosting</a> | <a href="http://www.cafeshops.com/cp/store.aspx?s=icarusindie">Tiberian Merchandise!!!!</a> | <a href="http://www.icarusindie.com/rate/">GameShot</a> ]</font>
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.
"God''s in his Heaven. All''s right with the World"
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 ]

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.
Reconsider the implications of the term "game" and you suddenly see that HTML is quite viable for making a "game". Just don''t expact a highly dynamic graphical experience (ie, think "Play-by-Mail").

HTML is not a programming language.

This topic is closed to new replies.

Advertisement