What it does
WindowSize writes a value: it sets rather than reads. It takes width (an integer), height (an integer) and fullscreen (an integer), and returns nothing. That is the first of 2 forms.
Syntax
1
WindowSize(width integer, height integer, fullscreen integer)2
WindowSize(width integer, height integer, fullscreen integer, allowOverSized integer)Parameters
| Name | Type | In forms |
|---|---|---|
| width | integer | all |
| height | integer | all |
| fullscreen | integer | all |
| allowOverSized | integer | 2 |
Every form returns
nothing
Example · generated
Form 1, the short one
WindowSize(64, 64, 1)DO Sync()LOOPForm 2, with every argument
WindowSize(64, 64, 1, 64)DO Sync()LOOPWindowSize is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.