Author Topic: Wolfenstein 3D in 128 bytes  (Read 5564 times)

0 Members and 1 Guest are viewing this topic.

Offline Baudsurfer

  • C= 64
  • **
  • Posts: 46
  • Karma: 18
    • View Profile
    • x86 Assembly language page
Wolfenstein 3D in 128 bytes
« on: March 07, 2013 »
Hello,

Today I released a 128-byte intro named amaze with sourcecode as Wolfenstein 3D clone.
The previous landmarks are 3 intros that are 256 bytes.
Of course I had to cut many corners, so it's glitchy, probably buggy, and without escape key exit.
I tested it on xp.
The source can be found here : http://olivier.poudade.free.fr/src/amaze128.asm
There are 2 versions in the archive, one is 128 bytes and one is 138 bytes (with floor) in bonus directory.

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: Wolfenstein 3D in 128 bytes
« Reply #1 on: March 09, 2013 »
very good, but you have a redraw problem and its very slow because you are setting the video mode with each new frame. If you set the video mode only once at the very start the redraw problem is not noticable and the speed is much better. But then you have no clear screen. Still a better option I think

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17393
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Wolfenstein 3D in 128 bytes
« Reply #2 on: March 10, 2013 »
I think this is a really nice intro, Baudsurfer amazing that you squashed it into 128 bytes!  It ran fine on my old laptop with XP.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Baudsurfer

  • C= 64
  • **
  • Posts: 46
  • Karma: 18
    • View Profile
    • x86 Assembly language page
Re: Wolfenstein 3D in 128 bytes
« Reply #3 on: March 15, 2013 »
Hello,

After initial feedback I decided to release a second version of Amaze (Amaze 2) taking into account the hereunder issues :
 -divide overflow error bug (on certain computers the IVT was different and thus couldn't count on camera path) ;
 -flickering/tearing impairing visibility (now double-buffered) ;
 -speed (vga video memory is fast to write and very slow to read : fixed with double buffering above) ;
 -better yaw angle (seemed too subtle in previous).

The source code is here :  http://olivier.poudade.free.fr/src/amaze128v2.asm
The full archive is here : http://olivier.poudade.free.fr/arc/amaze2.zip

As a trade-off, the texturing was removed, and it looks almost exactly like Justin Frankel's 256-byte version.
P.S. : the last four bytes were hard to crunch. I won't do a third version but I am interested in feedback.

Offline rain_storm

  • Here comes the Rain
  • DBF Aficionado
  • ******
  • Posts: 3088
  • Karma: 182
  • Rain never hurt nobody
    • View Profile
    • org_100h
Re: Wolfenstein 3D in 128 bytes
« Reply #4 on: March 16, 2013 »
Excellent Work Baudsurfer

Challenge Trophies Won:

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1153
  • Karma: 174
    • View Profile
Re: Wolfenstein 3D in 128 bytes
« Reply #5 on: March 17, 2013 »
Super impressive stuff Baudsurfer, and totally over my head :) I'm in awe of stuff like this, great work!
raizor

Challenge Trophies Won:

Offline Baudsurfer

  • C= 64
  • **
  • Posts: 46
  • Karma: 18
    • View Profile
    • x86 Assembly language page
Re: Wolfenstein 3D in 128 bytes
« Reply #6 on: March 26, 2013 »
Thank you  Rain_storm,  Shockwave and Raizor for your nice comments.

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1215
  • Karma: 230
    • View Profile
    • Homepage
Re: Wolfenstein 3D in 128 bytes
« Reply #7 on: March 26, 2013 »
It doesn't run for me unfortunatly (windows 7, 64 bit on a Vaio). :(
Screens look really good!

What I gather from the error message I get it's something to do with x86 32 or 64 bit stuff. It also says I should contact the author of the software.  ;D

Do you know of the 5k js wolfenstein? I never actually got it to run on my browsers, but the code may be of interest.
www.kirl.nl
Challenge Trophies Won:

Offline Baudsurfer

  • C= 64
  • **
  • Posts: 46
  • Karma: 18
    • View Profile
    • x86 Assembly language page
Re: Wolfenstein 3D in 128 bytes
« Reply #8 on: March 27, 2013 »
Hello Kirl,

>It doesn't run for me unfortunatly (windows 7, 64 bit on a Vaio). :(
>Screens look really good!

 Yes. I have a friend who has amd/now intel X86-64bit, and he wasn't able to run other program of mine (.com file too).
I'm not aware if it's just my code or any 16bit com program having problems running on 64bit xp (if someone has extra info ?).
 As far as I recall the intel failed IA64 just bought the AMD framework which has full backward compatibility, and since no call gates are used (privileged instructions), I guess M$ blew it again. I even initiated different assumed starting register values for ntvdm in trying to do a "safe" version to no avail.
 There are however supposedly possibilities of runing 32bit code on windows 64bit platforms :
http://celframe.com/supportsuite/index.php?/Knowledgebase/Article/View/367/0/how-to-run-32-bit-application-in-64-bit-windows-operating-system

>What I gather from the error message I get it's something to do with x86 32 or 64 bit stuff. It also says I should contact the author of >the software.  ;D

 And just for doing that that you've earned yourself some karma :)

>Do you know of the 5k js wolfenstein? I never actually got it to run on my browsers, but the code >may be of interest.

 Yes, a famous old site with a nice macintosh look. 
 Look here also newer by P01 (Castle Wolfenstein Homage to Wolfenstein 3D in 20 lines of JavaScript by Mathieu 'p01' Henri January 2oo8) : http://www.p01.org/releases/20_lines_Castle_Wolfenstein/


 

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1215
  • Karma: 230
    • View Profile
    • Homepage
Re: Wolfenstein 3D in 128 bytes
« Reply #9 on: March 28, 2013 »
Yes, a famous old site with a nice macintosh look. 
 Look here also newer by P01 (Castle Wolfenstein Homage to Wolfenstein 3D in 20 lines of JavaScript by Mathieu 'p01' Henri January 2oo8) : http://www.p01.org/releases/20_lines_Castle_Wolfenstein/
That's crazy, runs great on my browser too!  :o
www.kirl.nl
Challenge Trophies Won: