[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Low-level vs. High-level programming (was My First Computer)



In article <Xns939F77BBA463Dwildstar128hotmailco@216.168.3.44>,
wildstar  <wildstar128@hotmail.com> wrote:
 
> Can you make a game of Pong with pure HTML with no forms of CGI scripts, 
> client-side or server side. Also no use of applets (like Java Applets).
 
That would be quite possible!  Not on one single HTML page of course;
you'd need a sequence of pages, and probably a very large sequence as
well.  But here's how to do it: each page is assigned a timeout,
after which the next page is loaded.  This is accomplished by putting
this in the HTML header:
 
<meta http-equiv="refresh" content="1;URL=nextpage.html">
 
This next page will be displayed automatically, that is unless the
viewer clocks at some link first.
 
So now you'll just have to create a very large number of HTML pages,
displaying each and every possible combination of ball and paddle
positions...... :-) ....admittedly not very practical, but still
possible.  And with the very large disks of today's computers, disk
space shouldn't be the limiting factor.....
 
You could even do it without that "refresh" HTML line: the user would
then have to click on one of three links: move the paddle up one
step, down one step, or don't move the paddle.....  of course such
a HTML Pong game would lose all real-time aspects of the game, but it
would still be a version of Pong.
 
-- 
----------------------------------------------------------------
Paul Schlyter,  Grev Turegatan 40,  SE-114 38 Stockholm,  SWEDEN
e-mail:  pausch at stockholm dot bostream dot se
WWW:     http://www.stjarnhimlen.se/
         http://home.tiscali.se/pausch/