aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-01-22SUPERNOVA: Renames game functionsJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Implements GameManager Class and extension to engineJoseph-Eugene Winzer
An instance of GameManager acts as an interface between the game logic and engine. It provides game specific functions like isHelmetOff() to check if the player wears his helmet. This commit also adds engine extensions like saveScreen() and restoreScreen() that makes use of the ScreenBufferStack class for temporarily saving and restoring sections of the screen. Most of the structure and code is bound to change but gives something to improve on.
2018-01-22SUPERNOVA: Extends screen message systemJoseph-Eugene Winzer
Messages will be 'removable' by over-rendering the message by invoking removeMessage() with what was previously overdrawn. _messageDisplayed might need to be reworked to an int, depending if there are multiple messages rendered simultaneously.
2018-01-22SUPERNOVA: Extends Inventory::get()Joseph-Eugene Winzer
The code added as comments to Inventory::add() is the original code to check if scrolling in inventory is needed and redraw it.
2018-01-22SUPERNOVA: Adds getDOSTicks()Joseph-Eugene Winzer
2018-01-22SUPERNOVA: Adds Container for temporarily storing screen sectionsJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Adds constant messagesJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Adds isSectionVisible() to Object ClassJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Fixes getObject() to return pointer to ObjectJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Adds GameState ClassJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Adds getObject() to Room InterfaceJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Adds static combine() to Object ClassJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Returns if section is invalidJoseph-Eugene Winzer
Sections with an x2 value of 0 cannot span any area and are thus invalid
2018-01-22SUPERNOVA: ReformattingJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Adds getFileNumber() to Room ClassJoseph-Eugene Winzer
2018-01-22SUPERNOVA: ReformattingJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Adds text for commands in GUIJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Adds hasProperty() for Objects and bit opsJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Adds Inventory ClassJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Substitutes magic numbers in Object ctorJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Substitutes magic numbers with symbolsJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Adds methods for alterting Object stateJoseph-Eugene Winzer
2018-01-22SUPERNOVA: RefactoringJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Removes ORing ObjectTypes from msn_def.hJoseph-Eugene Winzer
The reason for the removal is because of gcc warnings when the operator is not used in a translation unit that includes msn_def.h. Currently I also see it used in the game logic anyway so there's no need for it to be defined in a ubiquitiously used header file like msn_def.h
2018-01-22SUPERNOVA: Adds color palette constantsJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Moves Object Class from rooms.h to msn_def.hJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Adds room data for Ship chapterJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Updates renderImage() functionJoseph-Eugene Winzer
renderImage() now considers the size of image sections instead of blitting them on 320x200 by default.
2018-01-22SUPERNOVA: Setup image and section viewerJoseph-Eugene Winzer
Pressing 'w' increases the image index and 'e' the section index.
2018-01-22SUPERNOVA: Adds an empty ObjectType/ID and RoomIDJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Convert 18bit VGA to 24bit CLUT8Joseph-Eugene Winzer
Colors on VGA are 6bit per color channel, that is why the colors were so dark in earlier commits. Shifting the colors left by 2 gives us an approximated value for CLUT8.
2018-01-22SUPERNOVA: Fix OOB write in paletteBrightness()Joseph-Eugene Winzer
Palette color 255 doesn't seem to be used
2018-01-22SUPERNOVA: Add palette fade in/outJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Fix image palette loadingJoseph-Eugene Winzer
Mistakenly, during image loading the system palette was completely substituted by the image palette although the first 16 colors are supposed to be preserved.
2018-01-22SUPERNOVA: add text renderingJoseph-Eugene Winzer
Currently renderText() has two performance drawbacks. First, it locks the screen surface during the whole function for drawing the text directly to it. Besides that, it accesses the pixels in a cache unfriendly way because the font glyphs are stored tilted by 90 degrees. Most likely it won't pose any problems but if it should those issues need to be prioritized.
2018-01-22SUPERNOVA: add characterWidth() functionJoseph-Eugene Winzer
Also did some cleanup on the font definition
2018-01-22SUPERNOVA: add renderBox()Joseph-Eugene Winzer
2018-01-22SUPERNOVA: fix palette corruption on decodingJoseph-Eugene Winzer
2018-01-22SUPERNOVA: (TEMP COMMIT) drawing to screen surfaceJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Added basic game loop and play sound samplesJoseph-Eugene Winzer
There has been many other changes like copy/pasting room definitions, skeleton for image decoder, .. Getting supernova mod format support seems to be a good next step.
2018-01-22SUPERNOVA: Create engine skeleton and game detectionJoseph-Eugene Winzer
2018-01-21XEEN: Fixes for speed table calculation, RT_HIT range type cleanupPaul Gilbert
2018-01-21XEEN: Correctly skip over unconscious or dead chars during combatPaul Gilbert
2018-01-21XEEN: Properly save/restore main UI buttons during combat turnsPaul Gilbert
2018-01-21AUDIO: Fixes Protracker Portamento effectJoseph-Eugene Winzer
.period overflowed if .portaToNoteSpeed > .period in the else if case
2018-01-21XEEN: Fix combat stalling when ranged attack comes from a back rowPaul Gilbert
2018-01-20XEEN: Cleanup of animate3d method's ranged attack codePaul Gilbert
2018-01-20XEEN: Fix reaper cutscene renderingPaul Gilbert
2018-01-20XEEN: Add invincible debugger commandPaul Gilbert
2018-01-20Merge pull request #1112 from bonki/bonki-indeo3-silence-compiler-warningsPaul Gilbert
IMAGE: Fix Indeo3 compiler warnings