|
@ -83,6 +83,8 @@ namespace SemiColinGames { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
bool harmedByCollision = false; |
|
|
bool harmedByCollision = false; |
|
|
|
|
|
// TODO: pass in movePoints to Line.Rasterize instead of having that function allocate a
|
|
|
|
|
|
// new array.
|
|
|
Point[] movePoints = Line.Rasterize(0, 0, (int) movement.X, (int) movement.Y); |
|
|
Point[] movePoints = Line.Rasterize(0, 0, (int) movement.X, (int) movement.Y); |
|
|
for (int i = 1; i < movePoints.Length; i++) { |
|
|
for (int i = 1; i < movePoints.Length; i++) { |
|
|
int dx = movePoints[i].X - movePoints[i - 1].X; |
|
|
int dx = movePoints[i].X - movePoints[i - 1].X; |
|
|