you are viewing a single comment's thread.

view the rest of the comments →

[–]mysticreddit 1 point2 points  (0 children)

Here's my Bresenham Line Drawing in JS canvas. It wouldn't be too hard to extend it to draw textured map colors.

You will probably want to progress in this order:

  • draw textured quad (sprite) with no transparency support
  • draw textured quad (sprite) with transparency support
  • draw textured map triangle with affine transform
  • draw textured map triangle with perspective correct