[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Low-level vs. High-level programming (was My First Computer)
- Subject: Re: Low-level vs. High-level programming (was My First Computer)
- From: wildstar <wildstar128@hotmail.com>
- Date: Fri, 20 Jun 2003 18:39:34 -0000
- Followup-to: poster
- Newsgroups: comp.sys.cbm, comp.sys.apple2, rec.games.video.classic, comp.os.cpm
- Organization: Your Company
- References: <pan.2003.06.18.19.07.35.727341@tjonk.now> <4j3Ia.220$nx5.98@fe05.atl2.webusenet.com> <5d74e548fd4ac6b8f010490da3556caf@TeraNews> <Xns939F77BBA463Dwildstar128hotmailco@216.168.3.44> <bcuhk7$1elo$1@merope.saaf.se>
- User-agent: Xnews/5.04.25
- Xref: archiver1.google.com comp.sys.cbm:58882 comp.sys.apple2:31583 rec.games.video.classic:59112 comp.os.cpm:13361
pausch@saaf.se (Paul Schlyter) wrote in
news:bcuhk7$1elo$1@merope.saaf.se:
> 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.
>
Aren't you missing a key element. The balls X,Y coordiniation control.
When a ball is hits the right paddle the balls X-direction will change
from incrementing to decrementing. If it hit the left paddle then it
flips to incrementing. Understand. If you hit the top or bottom walls,
the balls Y direction flips. The key to Pong was that flip variable
controls in its programming. The ball either goes left or right and may
go also up or down or level (rather rare). HTML doesn't have the required
controls for this does it. This require data handling. Well handling and
processing the data in the variable. That is something not reasonably
possible with pure HTML.