add TODO about checking size-1 gaps in future

GitOrigin-RevId: cd944aea79be9b15540fcb41fd8567d74d4a2bf1
This commit is contained in:
Colin McMillen 2019-12-17 08:27:23 -05:00
parent 22a0fab70f
commit f364a9c6ff

View File

@ -44,6 +44,8 @@ namespace Jumpy {
bool standingOnGround = false; bool standingOnGround = false;
// TODO: implement https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm // TODO: implement https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm
// e.g. http://members.chello.at/~easyfilter/bresenham.html // e.g. http://members.chello.at/~easyfilter/bresenham.html
// TODO: currently player doesn't fall through a gap one tile wide; presumably this will
// be fixed by switching to a line-rasterization approach.
foreach (var rect in collisionTargets) { foreach (var rect in collisionTargets) {
playerBbox = Bbox(position); playerBbox = Bbox(position);