News:

Come Chat with us live! Learn how HERE!

Main Menu

are u making v1.2.0?

Started by adalator, December 12, 2006, 04:24:49 PM

techhead

[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

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

Quote from: raphaQuake3?? Are zou insane? Q1 ftw!
No, clearly it is you who is insane, we must use the Doom1 engine.

Neo

Wolf3d is far superior, it automatically fixes the dretch ground headbites :D

Lava Croft

Quote from: NeoWolf3d is far superior, it automatically fixes the dretch ground headbites :D
So does DOOM:)

rapha

Quote from: Lava Croft
Quote from: NeoWolf3d 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