A89: Re: Can anyone help? (ON topic =)


[Prev][Next][Index][Thread]

A89: Re: Can anyone help? (ON topic =)




>I'm having a problem with my program.  It's supposed to draw something on
>the screen that resembles a cube, but some of the corners get messed up for
>some reason.  Can anyone find the problem?

You forgot point zero in your coordinates table -- NEVER forget zero =)
Otherwise, good code =) Try this:

obj_test_cube_xy_coords:
 dc.b 00,00,0    ;accounts for point zero
 dc.b 96,34,0    ;point one
 dc.b 64,34,0    ;point two
 dc.b 69,39,0    ;etc.
 dc.b 91,39,0
 dc.b 96,66,0
 dc.b 64,66,0
 dc.b 69,61,0
 dc.b 91,61,0