2019-04-15 16:22:38 +00:00
|
|
|
# MrCBASIC
|
2019-04-15 16:26:13 +00:00
|
|
|
The best BASIC compiler found so far is the one from QB64.org.
|
|
|
|
|
2019-04-15 22:28:35 +00:00
|
|
|
You need to set the screen mode. SCREEN 11 on the first line.
|
2019-04-15 16:26:13 +00:00
|
|
|
|
2019-04-15 22:27:22 +00:00
|
|
|
Mouse input needs to be refactored, mouse handling is more complex now. I added a subroutine that gets the CHX, CHY, and B params.
|
2019-04-15 19:23:10 +00:00
|
|
|
|
2019-04-16 21:16:17 +00:00
|
|
|
Mouse x,y coordinates need to be recalculated due to resolution differences. Added sub GetCoords that prints the coords as you click:
|
2019-04-16 21:17:41 +00:00
|
|
|
|
2019-04-16 21:16:17 +00:00
|
|
|
REM To get coordinates, comment next line (GetXY), then uncomment the line after that (GetCoords)
|
2019-04-16 21:17:41 +00:00
|
|
|
|
2019-04-16 21:16:17 +00:00
|
|
|
REM Be sure to restore for normal use. Uncomment out GetXY, comment out GetCoords
|
2019-04-16 21:17:41 +00:00
|
|
|
|
2019-04-16 21:16:17 +00:00
|
|
|
557 GetXY CHX, CHY
|
2019-04-16 21:17:41 +00:00
|
|
|
|
2019-04-16 21:16:17 +00:00
|
|
|
REM 560 GetCoords ' use this to run in a loop to determine mouse coordinates
|
2019-04-16 04:29:01 +00:00
|
|
|
|
|
|
|
Replaced delay loops with sleep calls. 5 second delay, or press any key to advance (after music finishes).Need to flush keys afterwards _KEYCLEAR.
|
2019-04-15 19:23:10 +00:00
|
|
|
|
2019-04-15 22:27:22 +00:00
|
|
|
Code references labels not in this source file, e.g. 5000 to 20000, perhaps meant to end program
|
2019-04-15 21:17:51 +00:00
|
|
|
|
2019-04-15 19:23:10 +00:00
|
|
|
WAVE keyword does not seem to be supported, see line 114 (label 349)
|
2019-04-15 21:17:51 +00:00
|
|
|
|
2019-04-15 19:23:10 +00:00
|
|
|
Mr. C (orginal author) says that much of the graphics was generated by the MacPaint program.
|
|
|
|
|