Re: Image Not Appearing
- Posted by useless_ Dec 22, 2011
- 1753 views
In the interest of code that works
Are you saying my code doesn't work?
On this computer, it ran very slowly. It took 10 seconds to trace a diagonal line from (arbitrary coordinate system) (0,0) to (10,10).
If one understand "works" as "demonstrating code without boring someone who is waiting on it to do something, and making use of a screen bigger than a palmtop calculator", then your code didn't work for me. Indeed, you said "down to a corner of the screen" which did not happen unless i shrank the dosbox down to 1.2 inches square.
By changing the two values you specified, the trace went all over the dosbox and didn't ever simply retrace a short diagonal line. I also made it easier to figure out what was going on by using sleep() instead of a machine call, and i used a small sub-second sleep value to speed it up.
Naturally, there's plenty more one could do to the code to install more entertainment and/or education value. I did attempt to discuss this with you ~14 hours ago on irc.
useless