Last Modified: 12/31/2020

Clears the current text plane of all tiles.


Syntax: Cls
    For y = 0 To 27
        For x = 0 To 39
            DrawTile 1,x,y
    Sleep 50


If you need to clear more than the current text plane, you'll need to use SetTextPlane to change the target plane for Cls. Alternatively, you can use ClsEx to clear all planes. This command does not remove sprites from the screen. If you need to clear the screen of sprites, consider using FreeAllSprites.

See Also

ClsEx, SetTextPlane, FreeAllSprites