scrolling_20over_20a_20large_20canvas
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| scrolling_20over_20a_20large_20canvas [2018/03/31 13:19] – external edit 127.0.0.1 | scrolling_20over_20a_20large_20canvas [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| =====Scrolling over a large canvas===== | =====Scrolling over a large canvas===== | ||
| - | //by Richard Russell, September 2007//\\ \\ //**The code in this article requires BBC BASIC for Windows version 5.70a or later.**// | + | //by Richard Russell, September 2007//\\ \\ //**The code in this article requires BBC BASIC for Windows version 5.70a or later.**// |
| + | |||
| + | <code bb4w> | ||
| CanvasX% = 1920 | CanvasX% = 1920 | ||
| CanvasY% = 1440 | CanvasY% = 1440 | ||
| Line 24: | Line 26: | ||
| VDU 24, | VDU 24, | ||
| VDU 28, | VDU 28, | ||
| - | For the purposes of the example the ' | + | </ |
| + | |||
| + | For the purposes of the example the ' | ||
| + | |||
| + | <code bb4w> | ||
| *DISPLAY " | *DISPLAY " | ||
| PRINT " | PRINT " | ||
| LINE 0, | LINE 0, | ||
| LINE 0, | LINE 0, | ||
| - | Because you will be drawing outside the area occupied by the visible output window you should take note of the article [[/ | + | </ |
| + | |||
| + | Because you will be drawing outside the area occupied by the visible output window you should take note of the article [[/ | ||
| + | |||
| + | <code bb4w> | ||
| REPEAT | REPEAT | ||
| WAIT 1 | WAIT 1 | ||
| UNTIL FALSE | UNTIL FALSE | ||
| END | END | ||
| - | Of course in a practical program it is likely you will want to do something more useful here!\\ \\ Finally, here is the procedure which contains the ' | + | </ |
| + | |||
| + | Of course in a practical program it is likely you will want to do something more useful here!\\ \\ Finally, here is the procedure which contains the ' | ||
| + | |||
| + | <code bb4w> | ||
| DEF PROCmove(msg%, | DEF PROCmove(msg%, | ||
| PRIVATE sih{}, siv{} | PRIVATE sih{}, siv{} | ||
| Line 77: | Line 91: | ||
| *REFRESH | *REFRESH | ||
| ENDPROC | ENDPROC | ||
| + | </ | ||
| + | |||
| Note that the code in this article is not compatible with SPRITELIB. | Note that the code in this article is not compatible with SPRITELIB. | ||
scrolling_20over_20a_20large_20canvas.1522502379.txt.gz · Last modified: 2024/01/05 00:16 (external edit)