| Age | Commit message (Collapse) | Author |
|
Plus bonus graphical artefacts around the edges of such! In the end
the majority of this code was rather easy: take the upwards floor
drawing code and reflect it.
However, there were many edge-cases and plenty of off-by-one pixels
and rounding issues that didn't quite work the same way going down as
they do going up. Also the object drawing code used to take advantage
of the fact that the z-buffer was painted bottom-up only, so that
required change too.
|
|
|
|
|
|
Except that i'm not satisfied. It would appear that we're computing
various distances more-or-less exactly in the sprite rendering
process, but this is at odds with the walls and floors which -- by
virtue of the linear interpolation garbage -- don't agree about where
things are.
The net result is that there are at least two fudge factors:
- to account to for the incorrect height of the floors i shift the
sprites up by 0.2
- to account for the incorrect wall distances i add 1 to the z_buffer
comparison
These fudges are ugly and empirical.
Still to do: for more than one object we have to sort by distance first!
|
|
Also bumped up the textures to 32x32
|
|
|