summaryrefslogtreecommitdiff
path: root/src/sars.h
AgeCommit message (Collapse)Author
2023-10-14sars,hungrycat: add --wait flagVito Caputo
This tells sars to just wait indefinitely until an ESC is pressed pre-fadein during the opening hungrycat context. The --delay [seconds] flag was added to facilitate screen captures, but it's actually rather annoying to use. This way the sars window will just sit there ignoring any spurious events waiting for an ESC to proceed onto DELAY->FADEIN... Probably not useful but technically this composes with --delay as well, such that if you have --delay and --wait specified, once you hit ESC to leave the WAIT state, the delay will then begin.
2022-12-13sars: add --delay [seconds] flagVito Caputo
Defaults to 10 seconds when bare --delay is used This is primarily intended for video capture purposes
2022-12-05sars,game: add --cheat flag intended for dev/testingVito Caputo
currently this just overrides teepee quantities to always be 128 128 is used instead of 256 so you can still exercise the teepee boost _without_ winning event, and it doesn't take long to collect two teepee boosts so iteration still isn't bad.
2022-10-10sars: add ndc->bpc conversion helpersVito Caputo
bpc = boxed projection coordinates, this basically comes from eon just like the pillar/letter boxing code for fullscreen stuff did. Previously I didn't need this part of that code, but the touch coordinates are in ndc and those need to get transformed by the projection transform's inverse.
2021-12-25*: introduce a projection matrix and winmodesrev3Vito Caputo
The bulk of this is mechanical wiring up of a projection_x to all the nodes. But this also introduces maintenance of the projection_x, with aspect-ratio preservation in two of the modes: WINDOWED and FULLSCREEN, with the previously default stretched-to-fill fullscreen mode now relegated to a third FILLSCREEN winmode. The default at startup is now an aspect ratio-preserving windowed mode. Simply press the 'f' key at any time to cycle through them. This was mostly done in sars to provide a source-available test for reproducing a fullscreen SDL2 bug I filed @ https://github.com/libsdl-org/SDL/issues/5139 Otherwise it's pretty silly to bother with doing anything on sars... but it is a handy little mule for such things.
2020-04-19src: add a basic OpenGL2.1 foundationVito Caputo
Just a bunch of shit that doesn't really do much more than produce an executable yet.
© All Rights Reserved