TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Tomb Raider II Source Code (1997)

2 pointsby sabalabaover 3 years ago

1 comment

sabalabaover 3 years ago
Found this on a list of AAA video game titles with source code available. It&#x27;s really amusing to look through, relatively bare bones C. Very funny comments and last minute changes due to play testing:<p><pre><code> #ifdef PSX_VERSION int keepitopen=0; &#x2F;&#x2F; MAJOR FRIG X 1,000,000 &#x2F;&#x2F; SONY AMERICA DIRECTIVE NO.A23 &#x2F;&#x2F; It is written: Everyone, given the chance, will jump off the boat, just &#x2F;&#x2F; before they are about to completed the level, in order to play an extra couple of &#x2F;&#x2F; minutes from their last save game. (They love it). Add all such people together, &#x2F;&#x2F; counting each person as a brain cell, and you will have a brain about the size of &#x2F;&#x2F; a Sony play tester. &#x2F;&#x2F; Sorry Gav, but this had to be done! &#x2F;&#x2F; Check if the boat has gone thru the door without lara, &#x2F;&#x2F; if it has then keep the door open. if (objects[BOAT].loaded &amp;&amp; lara_inboat==0 &amp;&amp; boatitem-&gt;pos.x_pos&gt;24500 &amp;&amp; boatitem-&gt;pos.x_pos&lt;26500 &amp;&amp; boatitem-&gt;pos.z_pos&gt;75500 &amp;&amp; boatitem-&gt;pos.z_pos&lt;83000) keepitopen = 1; #endif </code></pre> Seems like it was made by a small group of programmers (at least according to GAME.h)<p><pre><code> #define ANDREWH 0 #define GAV 1 #define JASON 2 #define RICHARD 3 #define NUM_CODERS 4 </code></pre> Always a pleasure to go through code of a game that you loved playing and get to see how the magic happens. It&#x27;s way &quot;dirtier&quot; than I expected. That says a lot about how games and (software that ships) are actually made.