Commit graph

10 commits

Author SHA1 Message Date
Joseph-Eugene Winzer
55c67005a6 SUPERNOVA: Returns if section is invalid
Sections with an x2 value of 0 cannot span any area and are thus invalid
2018-01-22 23:17:48 +00:00
Joseph-Eugene Winzer
85aa1985ac SUPERNOVA: Reformatting 2018-01-22 23:17:48 +00:00
Joseph-Eugene Winzer
bd48a32c5a SUPERNOVA: Convert 18bit VGA to 24bit CLUT8
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-22 21:16:37 +00:00
Joseph-Eugene Winzer
8e55efa748 SUPERNOVA: Fix OOB write in paletteBrightness()
Palette color 255 doesn't seem to be used
2018-01-22 21:16:37 +00:00
Joseph-Eugene Winzer
0c72f52ad8 SUPERNOVA: Add palette fade in/out 2018-01-22 21:16:27 +00:00
Joseph-Eugene Winzer
ca8c87ff2e SUPERNOVA: Fix image palette loading
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-22 19:31:42 +00:00
Joseph-Eugene Winzer
332763e825 SUPERNOVA: add renderBox() 2018-01-22 19:31:42 +00:00
Joseph-Eugene Winzer
9b4bade4f6 SUPERNOVA: fix palette corruption on decoding 2018-01-22 19:31:39 +00:00
Joseph-Eugene Winzer
ec0d557697 SUPERNOVA: (TEMP COMMIT) drawing to screen surface 2018-01-22 19:30:54 +00:00
Joseph-Eugene Winzer
64e6673d10 SUPERNOVA: Added basic game loop and play sound samples
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-22 19:28:18 +00:00