Author Topic: are u making v1.2.0?  (Read 15818 times)

techhead

  • Posts: 1496
  • Turrets: +77/-73
    • My (Virtually) Infinite Source of Knowledge (and Trivia)
are u making v1.2.0?
« Reply #30 on: January 16, 2007, 05:14:47 pm »
[sarcasm]Quake is so cool, we should port Tremulous to the Quake3 engine[/sarcasm]
I'm playing Tremulous on a Mac!
MGDev fan-club member
Techhead||TH
/"/""\"\
\"\""/"/
\\:.V.://
Copy and paste Granger into your signature!

rapha

  • Posts: 164
  • Turrets: +1/-1
    • http://schattenschreiber.org
are u making v1.2.0?
« Reply #31 on: January 16, 2007, 09:42:38 pm »
Quake3?? Are zou insane? Q1 ftw!
NIETS IS NIET ONMOGELIJK!

SatGNU Stats: http://schattenschreiber.org/satgnu
Es' Friends Stats: http://schattenschreiber.org/es_friends

♥ Lava_Croft

Vector_Matt

  • Posts: 732
  • Turrets: +2/-1
are u making v1.2.0?
« Reply #32 on: January 17, 2007, 12:26:39 am »
Quote from: "rapha"
Quake3?? Are zou insane? Q1 ftw!
No, clearly it is you who is insane, we must use the Doom1 engine.

Neo

  • Posts: 760
  • Turrets: +2/-0
are u making v1.2.0?
« Reply #33 on: January 17, 2007, 12:38:20 am »
Wolf3d is far superior, it automatically fixes the dretch ground headbites :D

Lava Croft

  • Guest
are u making v1.2.0?
« Reply #34 on: January 17, 2007, 01:06:50 am »
Quote from: "Neo"
Wolf3d is far superior, it automatically fixes the dretch ground headbites :D

So does DOOM:)

rapha

  • Posts: 164
  • Turrets: +1/-1
    • http://schattenschreiber.org
are u making v1.2.0?
« Reply #35 on: January 17, 2007, 05:31:21 am »
Quote from: "Lava Croft"
Quote from: "Neo"
Wolf3d is far superior, it automatically fixes the dretch ground headbites :D

So does DOOM:)


But Wolfenstein 3D has only about 500KB of code. Let me quote.

Quote from: "John Carmack"

#define VIEWWIDTH       256                     // size of view window

#define VIEWHEIGHT      144

...

/*

=============================================================================



                   GLOBAL VARIABLES



=============================================================================

*/

...

   if (CheckIs386())

   {

      IsA386 = true;

...

CP_itemtype far MusicMenu[]=

   {

      {1,"Get Them!",0},

...

#ifndef DEMOTEST



   #ifndef UPLOAD



      #ifndef GOODTIMES

      #ifndef SPEAR

      #ifndef JAPAN

      if (!NoWait)

         NonShareware();

...

#ifndef JAPAN

   if (!NoWait)

      PG13 ();

...

void main (void)

{

   ...

   CheckForEpisodes();



   Patch386 ();



   InitGame ();



   DemoLoop();



   Quit("Demo loop exited???");

}


And another cool one:

Quote from: "John Carmack"

=====================

=

= ClearScreen

=

=====================

*/



void ClearScreen (void)

{

 unsigned floor=egaFloor[gamestate.episode*10+mapon],

     ceiling=egaCeiling[gamestate.episode*10+mapon];



  //

  // clear the screen

  //

asm   mov   dx,GC_INDEX

asm   mov   ax,GC_MODE + 256*2      // read mode 0, write mode 2

asm   out   dx,ax

asm   mov   ax,GC_BITMASK + 255*256

asm   out   dx,ax



asm   mov   dx,40

asm   mov   ax,[viewwidth]

asm   shr   ax,3

asm   sub   dx,ax               // dx = 40-viewwidth/8



asm   mov   bx,[viewwidth]

asm   shr   bx,4               // bl = viewwidth/16

asm   mov   bh,BYTE PTR [viewheight]

asm   shr   bh,1               // half height



asm   mov   ax,[ceiling]

asm   mov   es,[screenseg]

asm   mov   di,[bufferofs]



toploop:

asm   mov   cl,bl

asm   rep   stosw

asm   add   di,dx

asm   dec   bh

asm   jnz   toploop



asm   mov   bh,BYTE PTR [viewheight]

asm   shr   bh,1               // half height

asm   mov   ax,[floor]



bottomloop:

asm   mov   cl,bl

asm   rep   stosw

asm   add   di,dx

asm   dec   bh

asm   jnz   bottomloop





asm   mov   dx,GC_INDEX

asm   mov   ax,GC_MODE + 256*10      // read mode 1, write mode 2

asm   out   dx,ax

asm   mov   al,GC_BITMASK

asm   out   dx,al



}


Mwahahahahha!
NIETS IS NIET ONMOGELIJK!

SatGNU Stats: http://schattenschreiber.org/satgnu
Es' Friends Stats: http://schattenschreiber.org/es_friends

♥ Lava_Croft