-

   rss_rss_hh_new

 - e-mail

 

 -

 LiveInternet.ru:
: 17.03.2011
:
:
: 51

:


[] , 1992

, 15 2017 . 09:53 +
image

Wolfenstein 3D 1992 . , 25 , , , .

:
  • Wolfenstein 3D.
  • DosBox.
  • Borland C++ 3.1.
  • Wolfenstein 3D shareware ( ).


, DOS:

   cd ~
   mkdir system
   cd system
   mkdir c
   mkdir a
   cd ~


  • Borland 3.1 system/a.
  • Wolfenstein 3D system/c
  • VGA system/c ( , ).

    cd system/a
    curl -O http://fabiensanglard.net/Compile_Like_Its_1992/tools/BCPP31.zip    

    cd ../c
    curl -O http://fabiensanglard.net/Compile_Like_Its_1992/tools/wolfsrc.zip
    curl -O http://fabiensanglard.net/Compile_Like_Its_1992/tools/vgafiles.zip

. , :

   cd ..
   find ~/system

:

    /Users/fabiensanglard/system
    /Users/fabiensanglard/system/a
    /Users/fabiensanglard/system/a/BCPP31.zip
    /Users/fabiensanglard/system/c
    /Users/fabiensanglard/system/c/vgafiles.zip
    /Users/fabiensanglard/system/c/wolfsrc.zip



    cd ~/system/a
    unzip BCPP31.zip

    cd ~/system/c
    unzip vgafiles.zip
    unzip wolfsrc.zip

DosBox


DosBox:




, :

   Z:/> mount c ~/system/c 
   Z:/> mount a ~/system/a


Borland C++ 3.1:

    Z:\> a:
    A:\> cd BCPP31
    A:\> install



( A)



Start Installation:



, Microsoft Windows, , .







Wolfenstein 3D


: () .

  A:\> c:
  C:\> cd\
  C:\> install



C



: \WOLFSRC


(Y) .

!




Borland C++ 3.1:

     C:\> cd\
     C:\> cd borlandc
     C:\> cd bin
     C:\> bc.exe




OK, , Project -> Open Project ..\..\WOLFSRC\WOLF3D.PRJ:



Options -> Directories :

    Include Directories: C:\BORLANDC\INCLUDE

    Library Directories: C:\BORLANDC\LIB

    Ouptput Directories: OBJ

    Source Directories:  C:\WOLFSRC



: Compile -> Build All



: Cannot find executable TASM



Borland C++, PATH:

     C:\> CD ..
     C:\> PATH=C:\BORLANDC\BIN
     C:\> BC.EXE

(Compile -> Build All):



, : Unable to find OBJ file, SIGNON.OBJ GAMEPAL.OBJ .

C:\SOURCE\WOLF\:



( Projext -> Delete item). PROJECT -> Add Item. WOLFSRC\OBJ\SIGNON.OBJ WOLFSRC\OBJ\GAMEPAL.OBJ



(Compile -> Build All)



! ?




shareware-, : Wolfenstein 3D.

    cd ~/system/c
    curl -O http://fabiensanglard.net/Compile_Like_Its_1992/tools/1wolf14.zip
    unzip 1wolf14.zip

DosBox C:\WOLF3D.

  C:\> c:
  C:\> cd \
  C:\> cd 1wolf14
  C:\1WOLF14> install

.EXE ,

    C:\> c:
    C:\> cd wolf3d
    C:\WOLF3D> copy WOLF3D.EXE WOLF3D.OLD
    C:\WOLF3D> copy ../WOLRSRC/WOLF.EXE


:

    C:\> cd wolf3d
    C:\WOLF3D> copy WOLF3D.EXE WOLF3D.OLD
    C:\WOLF3D> copy ../WOLRSRC/OBJ/WOLF3D.EXE .
    C:\WOLF3D> WOLF3D.EXE

,







?



,



, - !

?


, . , IGRABed . 3+2 .

  • VGAHEAD.WL1
  • VGAGRAPH.WL1
  • VGADICT.WL1

VGAHEAD , VGAGRAPH, , . VGADICT .

:

  • GRE.H
  • GRE.EQU

, :



.H .EQU? , . IGRABed , (enum) :

GRE.H

            enum{ 
            H_WOLFLOGOPIC
            GETPSYCHEDPIC
            L_GUYPIC
            .
            .
            } graphicnums

GRE.EQU

            H_WOLFLOGOPIC  = 0
            GETPSYCHEDPIC  = 1
            L_GUYPIC       = 2

, , (L_GUYPIC), (2).

, VGA. wolf3D shareware ( Spear of Destiny), .

()


, : - VGA , .H .EQU, . ( shareware-, .WL6 .WL1).

  C:\> copy C:\vgafiles\VGADICT.WL6 C:\WOLF3D\VGADICT.WL1
  C:\> copy C:\vgafiles\VGAGRAPH.WL6 C:\WOLF3D\VGAGRAPH.WL1
  C:\> copy C:\vgafiles\VGAHEAD.WL6 C:\WOLF3D\VGAHEAD.WL1

:

  C:\WOLF3D> WOLF3D.EXE

!



!

VGA


, , DosBox , 1992 . VGA 320x200, - 4:3. , . DosBox :

     vi ~/Library/Preferences/DOSBox\ 0.74\ Preferences
  
    [render]
    # frameskip:  ,  DOSBox   .
    # aspect:    .      ,       !
    # scaler:   /   .
      #    'forced',  scaler ,      .
      #  : none, normal2x, normal3x, advmame2x, advmame3x, advinterp2x, advinterp3x, ...

    frameskip=0
    aspect=false
    scaler=normal2x

aspect true.

:

  C:\WOLF3D> WOLF3D.EXE


- !




Original source: habrahabr.ru (comments, light).

https://habrahabr.ru/post/330940/

:  

: [1] []
 

:
: 

: ( )

:

  URL