aboutsummaryrefslogtreecommitdiff
path: root/src/player.zig
AgeCommit message (Collapse)Author
2021-09-26Of course i didn't need i32 ...tslil clingman
2021-09-22There was really no reason to use a BoundedArray instead of an arraytslil clingman
2021-09-22Switch to more accurate versiontslil clingman
Pre-emptive micro-optimisation is bad. There aren't that many sprites pixels usually anyway.
2021-09-22Colour blendingtslil clingman
Some amount of work went into finding appropriate integer arithmetic formulae that were reasonably accurate. At this point i've settled for the incorrect-but-faster version. The better-though-slower formulas are still there in case i change my mind. It would help to have an assumption such as, but not limited to, the surfaces are always going to be fully opaque.
2021-09-20Render objects by writing pixelstslil clingman
This confines hardware acceleration to scaling and the background sprite. Unfortunately it would seem that to do proper object rendering (partial transparency) i'll have to implement colour mixing myself.
2021-09-20Corrected rendering bugtslil clingman
2021-09-20Render walls by pixels, instead of using hard. accel. spritestslil clingman
2021-09-16Corrected movementtslil clingman