Commit graph

149 commits

Author SHA1 Message Date
Steven Fuller
a5c6d1b5eb Added code for Alien's special vision mode.
Marine HUD numbers are now drawn.

Disabled the "Press Any Key" in the progress bar code for now.
2019-08-20 02:22:36 +02:00
Steven Fuller
3ec3df2e66 Added noise overlay (for marine image enhancer). 2019-08-20 02:22:36 +02:00
Steven Fuller
b6076c656e Implemented HUD (Textures) and Decal drawing. 2019-08-20 02:22:36 +02:00
Steven Fuller
24847bd284 Turned texture repeating back on. (some levels seem to need it to look
'properly').

Implemented some special vision mode drawing (for Predator).
2019-08-20 02:22:36 +02:00
Steven Fuller
de3fda828d Fixed particle colors for real this time.
Worked around a crash (DIV_FIXED by zero) that happens when the Alien level
FERARCO starts.
2019-08-20 02:22:36 +02:00
Steven Fuller
ae2906ca83 Fixed particle blending. 2019-08-20 02:22:36 +02:00
Steven Fuller
56982d4e9b Fixed perspective texture drawing.
Implemented a few simple opengl state optimizations.
2019-08-20 02:22:36 +02:00
Steven Fuller
ba13de4472 Added texture drawing for particles (drawing not yet correct due to black
borders around the images).
2019-08-20 02:22:36 +02:00
Steven Fuller
9dadcb8024 Threw in texture loading/drawing.
Blending modes (color/texture) are problematic and texture coordinates
aren't yet perfect.
2019-08-20 02:22:36 +02:00
Steven Fuller
efc384b7b3 Fixed error with particle colors. 2019-08-20 02:22:36 +02:00
Steven Fuller
da46de9018 Added Particle drawing. 2019-08-20 02:22:36 +02:00
Steven Fuller
62bc91ebba Added the windows gamma code.
Fixed lighting problem with weapons.
2019-08-20 02:22:36 +02:00
Steven Fuller
d19a2069c6 Implemented keyboard input.
Copied some functions from pldnet and d3d_render (now the player image shows
in the mirror).
2019-08-20 02:22:36 +02:00
Steven Fuller
9d32d89705 Improved Z precision at 16bpp. 2019-08-20 02:22:36 +02:00
Steven Fuller
ea2f8c4527 Fixed FPU assembly. (fistp is 16bit, fistpl is 32bit)
Game displays now.
2019-08-20 02:22:36 +02:00
Steven Fuller
45cf2eb3a1 Added simple key event processing. 2019-08-20 02:22:36 +02:00
Steven Fuller
a113617c02 Fixed major bug in TranslatePoint (was accidently loading a value to edx
instead of edi).

Failed to get anything comprehendible on screen.
2019-08-20 02:22:36 +02:00
Steven Fuller
9e5b7f430d Moved inline assembly to a separate file for debugging.
Implemented GetTickCount/timeGetTime.

Added basic SDL/OpenGL support.

Draws something with no optimizations, but draws nothing with -O2. (What is
drawn looks like garbage.)
2019-08-20 02:22:36 +02:00
Steven Fuller
665f33b0f9 More small warning cleanups 2019-08-20 02:22:36 +02:00
Steven Fuller
fc5b084897 Removed some unused bits. 2019-08-20 02:22:36 +02:00
Steven Fuller
78cdb29e7a Removed several unused files. 2019-08-20 02:22:36 +02:00
Steven Fuller
455f56573e More warning cleanups.
Removed a few unused files.
2019-08-20 02:22:36 +02:00
Steven Fuller
422e7c385b Fixed AvP_GameStats_Stored struct finally.
Cleaned up some warnings. (unhandled enum in switch)
2019-08-20 02:22:36 +02:00
Steven Fuller
0770c95c17 Moved TranslatePoint into a separate file.
Implemented most of the main loop in main.c.

Game now seems to run OK.  Need to write texture code and then add OpenGL.
2019-08-20 02:22:36 +02:00
Steven Fuller
12c6a39177 'Undid' stubbing of IndexedFont::IndexedFont and IndexedFont::GetFont().
Initialized ScreenDescriptorBlock to some default values.

Now AvP runs and exits with no errors with current main()
2019-08-20 02:22:36 +02:00
Steven Fuller
d0582ff279 Forgot to add stubs2.cpp (functions only used in C++ parts). 2019-08-20 02:22:36 +02:00
Steven Fuller
a5fdb9f7c8 Now in the Data loading phase.
Converted many '\\' to '/'.   Partially implemented win32 file routines.
Got texture code to work OK for now (still needs to be reimplemented).
Partially implemented the main loop.
2019-08-20 02:22:36 +02:00
Steven Fuller
f2c6ac7362 Forgot to ci yesterday.
Now links.
2019-08-20 02:22:36 +02:00
Steven Fuller
29792b40ef Fixed errors in inline.h.
More compiling.  156 unique undefined references.
2019-08-20 02:22:36 +02:00
Steven Fuller
cfd7274022 More compiling. 2019-08-20 02:22:36 +02:00
Steven Fuller
eb5c2cc01d Tools for testing. 2019-08-20 02:22:36 +02:00
Steven Fuller
f097dd9258 More compiling. 2019-08-20 02:22:36 +02:00
Steven Fuller
a9cf09aa34 More compiling. 2019-08-20 02:22:36 +02:00
Steven Fuller
4db15e7459 More compiling. Things are starting to get hacky (adding stubs, commenting
out unimplemented windows stuff, and so on).
2019-08-20 02:22:36 +02:00
Steven Fuller
5c497c61a6 Implemented (most of) the inline assembly in inline.h 2019-08-20 02:22:36 +02:00
Steven Fuller
44d4752e83 Added extern "C" where needed. 2019-08-20 02:22:36 +02:00
Steven Fuller
3b458d2583 More compiling. All 'easy-to-compile' files now do.
Added the Rebellion license.
2019-08-20 02:22:36 +02:00
Steven Fuller
71fa444424 Removed headers that were accidently checked in.
Lots of compiling.
2019-08-20 02:22:36 +02:00
Steven Fuller
f759e35cd8 More compilation.
Moved windows typedefs to a separate file.

Included public domain md5 routines (from dpkg).
2019-08-20 02:22:36 +02:00
Steven Fuller
6d5a3cec55 More compiling... 2019-08-20 02:22:36 +02:00
Steven Fuller
fd8ed25d23 Another file now compiles. 2019-08-20 02:22:36 +02:00
Steven Fuller
8b4a564235 Few more files compile. 2019-08-20 02:22:36 +02:00
Steven Fuller
936a5198e4 lots of small changes that didn't get checked in 2019-08-20 02:22:36 +02:00
Steven Fuller
1fcf3c028a afont.c now builds 2019-08-20 02:22:36 +02:00
Steven Fuller
49c2203275 Fixed rest of platform.h 2019-08-20 02:22:36 +02:00
Steven Fuller
d89eb0014e First wave of changes:
Removed inclusion of Windows header files and remove some Windows-specific
declarations.
2019-08-20 02:22:36 +02:00
Steven Fuller
190a6b306b Added Makefile 2019-08-20 02:22:36 +02:00
Steven Fuller
2186d5f3f9 Initial revision 2019-08-20 02:09:04 +02:00
Rebellion Developments
218ca90543 Import Aliens vs Predator - Gold (Build 116)
Source code release, imported from:
https://www.gamefront.com/games/aliens-vs-predator-3/file/avp-gold-complete-source-code

All text files were converted to Unix format.
2019-08-19 05:45:17 +02:00