Closed Thread Icon

Topic awaiting preservation: Dhtml "Mode 7" style demo. (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8829" title="Pages that link to Topic awaiting preservation: Dhtml &amp;quot;Mode 7&amp;quot; style demo. (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Dhtml &quot;Mode 7&quot; style demo. <span class="small">(Page 1 of 1)</span>\

 
RobertG
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2003

posted posted 08-22-2003 16:36

http://www.elephantsneverforget.co.uk/mode7.asp

Use W,A,S,D to move around, you can make the game faster / better looking by adding the "rez" variable to the querystring. Lower number is better quality, higher is better speed, eg:-
http://www.elephantsneverforget.co.uk/mode7.asp?rez=1 is best quality but crap speed
http://www.elephantsneverforget.co.uk/mode7.asp?rez=10 is ok speed but looks like an Atari 2600 game.

At the moment it doesn't really do much but maybe someone will get a kick out of it. If I get time I'll make it into a proper racing game If anyone can suggest ways of making it faster I'd be delighted.


poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 08-22-2003 19:41

RobertG: pretty cool stuff as usual I would say.
With a floor resolution of 4, it goes between 20 and 33 fps.
You can surely make a DHTML Mario Kart. I guess you've already tried to include that in a raycaster and wonder the framerate you achieved.

Cheers,

Mathieu "POÏ" HENRI

RobertG
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2003

posted posted 08-25-2003 19:21

Poi,

DHTML mario kart would be really cool

It's actually a bit faster WITH the raycasting code, believe it or not. The reason for this is that with walls being drawn you only have to draw from the bottom of wall slices, but without raycasting you always have to draw from 100 pixels down. So most of the time you're only drawing half of the floor, which speeds things up a bit because "floorcasting" seems to be about 10 times slower than raycasting

This is with my simple untextured raycaster that's very very quick (60fps on a PIII 800), with floors, textured walls, fogging, etc I think it would be ALOT slower..



RobertG
Nervous Wreck (II) Inmate

From:
Insane since: Aug 2003

posted posted 08-26-2003 12:15

I've made a few changes and it seems to be a bit faster.. On this P3 600 with the floor resolution set to 8 the framerate is around 20fps, rising to 50fps when you stand still..

The main bottleneck now is actually changing the DIV colours, if I comment out the line "FLOOR[dex].style.backgroundColor=color;" then I get a constant 50fps. I'm not sure if I can do anything about that though.. I'm hoping it's just the crappy graphics card in this computer..

Let me know if it seems any faster to you

mas
Paranoid (IV) Inmate

From: the space between us
Insane since: Sep 2002

posted posted 08-26-2003 13:54

hey, this is a very good demonstration of what you can do with dhtml. very impressive work

PORTFOLIO0

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 08-26-2003 13:56

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

« BackwardsOnwards »

Show Forum Drop Down Menu