aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova/supernova.cpp
AgeCommit message (Collapse)Author
2018-01-23SUPERNOVA: Adds indicator for key pressesJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Extends text renderingJoseph-Eugene Winzer
textWidth() and renderText() are overloaded for handling single uint16 characters (useful when rendering key strokes directly)
2018-01-23SUPERNOVA: Adjusts game loop delayJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Implements animationJoseph-Eugene Winzer
The original game's time was stored in 55ms ticks but we just run on milliseconds. setAnimationTimer() sets the ticks the currrent room's animation() function will not be called.
2018-01-23SUPERNOVA: Refactors event loopJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Fixes font renderingJoseph-Eugene Winzer
2018-01-23SUPERNOVA: Renames charcterWidth() to textWidth()Joseph-Eugene Winzer
2018-01-23SUPERNOVA: Adds debugging code for rendering available sectionsJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Fixes renderRoom() by limiting the section rangeJoseph-Eugene Winzer
2018-01-22SUPERNOVA: removeMessage() now restores the screen on destructionJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Enables renderImage() to render inverse sectionsJoseph-Eugene Winzer
Besides the addition of inverse sections, the 'fullscreen' parameter was removed as it was used only for testing purposes in the beginning.
2018-01-22SUPERNOVA: Extends Object ClassJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Implements GUI routines and refactors codeJoseph-Eugene Winzer
Of course the short description does not adequately describe the changes made with this commit and I assume this won't be the last big restructuring unfortunately. Focus of this commit was to implement/fix the code so the main user interface can be rendered. Bugs in the core routines for rendering Messages and Images were fixed as well.
2018-01-22SUPERNOVA: Fixes Message positioningJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Fixes parameters passed to fillRect()Joseph-Eugene Winzer
2018-01-22SUPERNOVA: Fixes ScreenBufferStackJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Fixes endianess issue for drawing cursorJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Buffer Music filesJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Implements playSoundMod()Joseph-Eugene Winzer
2018-01-22SUPERNOVA: Buffers sections of image on initJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Converts mouse cursor dataJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Implements rendering of newspaper articlesJoseph-Eugene Winzer
The resolution will change dynamically depending what image is about to be rendered. As there are no other GUI elements shown that depend on the screen resolution when the artciles are rendered, there shouldn't be any problems.
2018-01-22SUPERNOVA: Buffers audio samples on startupJoseph-Eugene Winzer
2018-01-22SUPERNOVA: ReformattingJoseph-Eugene Winzer
Substitute size_t with ScummVM defined uint type
2018-01-22SUPERNOVA: Enables debug console and preload imagesJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Implements loading of newspaper imagesJoseph-Eugene Winzer
While the 640x480 images are loaded correctly, they are displayed cropped to 320x240, the default resolution.
2018-01-22SUPERNOVA: Fixes file name creationJoseph-Eugene Winzer
2018-01-22SUPERNOVA: RefactoringJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Enables rendering of debug consoleJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Adds room specific game logicJoseph-Eugene Winzer
This is the game logic for the first act of the game. It will see restructuring to remove gotos/jumps and hardcoded differences in game behavior depending on settings (e.g. sound on/off).
2018-01-22SUPERNOVA: RefactoringJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Refactors and adds GameManager functionsJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Changes return type to int for getDOSTicks()Joseph-Eugene Winzer
The maximum return value is 0x1800B0, so easily covered by int (assuming 32bit+ architecture)
2018-01-22SUPERNOVA: Extends renderText()Joseph-Eugene Winzer
Restructures the renderText() function for providing a renderText(text) overload that starts rendering the string where the last call stopped.
2018-01-22SUPERNOVA: Adds further game logic stubsJoseph-Eugene Winzer
Signed-off-by: Joseph-Eugene Winzer <m999@openmailbox.org>
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 hasProperty() for Objects and bit opsJoseph-Eugene Winzer
2018-01-22SUPERNOVA: Adds Inventory ClassJoseph-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: 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: 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: 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.