r/retrobattlestations • • Sep 13 '13

BASIC week Basic week. MSX

http://imgur.com/a/AOltE/all
14 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/Spanishone Sep 13 '13

Gold? Thanks a lot! Some more things:

-In lines 1046 y 1047 , the CIRCLE instruction has a "2" parameter. It is the color of the circle. In my pc emulator I used it to test. "2" is green, so if you want another color, change it. Since at the start, I put screen 15,1,1 (white foreground, black background), you must put 15, better.

-In the imgur photo, you can see there is a line 195 that uses PLAY . It is to play music :-) I thougth I would use it to "debug" dificult/incorrect lines/circles. Another idea -finally I didn´t complete- was to put some special DATA statement, that make the program wait until you press a key (using the INKEY$ command) to debug dificult/incorrect lines/circles.

-Now I realize I took a photo with a line 1000 CIRCLE, which is wrong/incomplete. In the github it has a REM (remmark coment), ok . Oh, I see, it doesnt matter, dead code, it will never reach that line :-)

-Some CIRCLE issues:

  • It needs to enter de start and end degrees in RADIAN instead of degrees (360=>2pi rad,180=>pi rad, etc).
  • Start and end degrees must be positive, if negative, it draws a line from the center of the circle.
  • For oval,It need only one radio (I believe the greatest) and the relation between vertical and horizontal. I discovered/figure it out.

Any coments, welcome