Commit graph

45 commits

Author SHA1 Message Date
Steven Fuller
9f006f18fe Many warnings cleaned up (Tim Beckmann)
Menus.
2019-08-20 02:22:36 +02:00
Steven Fuller
b4a55b2618 Added Screenshot code.
Moved some net stuff around.
2019-08-20 02:22:36 +02:00
Steven Fuller
219ab378d7 Fixed stupid fullscreen toggle error 2019-08-20 02:22:36 +02:00
Steven Fuller
949ffcfd44 Fixed the mistake causing new episodes to be gained for free. 2019-08-20 02:22:36 +02:00
Steven Fuller
f0647dd7c8 Added missing netcode from main.c -- now skirmish (including Jockey) works
correctly.
2019-08-20 02:22:36 +02:00
Steven Fuller
06371ecc45 Re-fixed the menus and enabled another font drawing function.
Fixed Profile Loading/Saving (had to disable debug mode).
2019-08-20 02:22:36 +02:00
Steven Fuller
442b6b52ea Disable the menus for the Alien demo. 2019-08-20 02:22:36 +02:00
Steven Fuller
a1d0e0dc87 Small menu changes 2019-08-20 02:22:36 +02:00
Steven Fuller
7ef81cbc6e More work on menus. 2019-08-20 02:22:36 +02:00
Steven Fuller
0b37ed3309 Most of the menu code now builds. 2019-08-20 02:22:36 +02:00
Steven Fuller
7647c9d8af Now build pldnet.c 2019-08-20 02:22:36 +02:00
Steven Fuller
acbc8ea8b8 Removed more unused stuff.
Finally finished ingame OpenGL code (I hope).

Fixed another mistake in mathline.c.
2019-08-20 02:22:36 +02:00
Steven Fuller
abd1c68579 Removed some unused code.
Added some of the level drawing hacks (water, rain).
2019-08-20 02:22:36 +02:00
Steven Fuller
d6cb06cd9e Removed more unused code.
Implemented console input.
2019-08-20 02:22:36 +02:00
Steven Fuller
96a5583f3b Fixed texture filtering modes. 2019-08-20 02:22:36 +02:00
Steven Fuller
c12ec5ff7e Removed/disabled some unused code.
Readded second pass specular drawing.

Fixed particle drawing (lights had mysteriously stopped showing up for a
while).
2019-08-20 02:22:36 +02:00
Steven Fuller
c7f0dd737a Small changes in order to get the demos to work. Alien demo runs. Marine
and Predator demos used a different HUD font.

Changes that need to be made for demo versions:
1. avp/langenum.h needs to be rebuilt for each demo (easy)
2. Marine and Predator demos need to use a different HUD font
3. There may be other minor differences with enums, etc.
2019-08-20 02:22:36 +02:00
Steven Fuller
681b48343d Added a README.
Added the HUD font drawing code.  now stubs2.cpp is no longer needed.
2019-08-20 02:22:36 +02:00
Steven Fuller
48c6088c27 Fixed common sound loading. Still debugging OpenAL code. 2019-08-20 02:22:36 +02:00
Steven Fuller
c7d772650f More OpenAL changes (Chuck Mason). 2019-08-20 02:22:36 +02:00
Steven Fuller
0200ee9777 Checking in basic OpenAL support (Chuck Mason).
Don't default to fullscreen for now.
2019-08-20 02:22:36 +02:00
Steven Fuller
7460e9acd0 Implemented sky drawing and a few other routines (cloaked polygon,
rectangle, etc).

Worked around a V5 DRI issue(?) by breaking up some drawing into triangles.
2019-08-20 02:22:36 +02:00
Steven Fuller
8f5bcd6c79 Adjusted the mouse grab code: When in windowed mode and mouse not grabbed,
ignore mouse events and show the cursor.
2019-08-20 02:22:36 +02:00
Steven Fuller
1e2e9e4280 Added code to handle mouse buttons 4/5 (mousewheel). 2019-08-20 02:22:36 +02:00
Steven Fuller
9bc5ea655b Added ctrl+g mouse grab toggle and alt+enter fullscreen toggle.
Mouse now works during game.

Escape currently exits game (since there is no menu).
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
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
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
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
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
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
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
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