Here’s a version with a process for drawing rectangles. Source code included just like before.

Here’s a version with a process for drawing rectangles. Source code included just like before.

Worked a bit more at the previous demo and managed to make it work for all positive slopes.

After watching dovoto’s second live video tutorial I decided to check out the Bresenham algorithm mentioned in the last slide. After some help from dovoto and this indispensable website I put together this demo of the basic version of the algorithm. It only only draws in the first octant but it’s a start I suppose. Also, it’s in ASM rather than C and it is for the GBA instead of the NDS (dovoto’s tutorials being for NDS with C).

Powered by WordPress