Question:
How does CLS work in smileBASIC?


Answer:

The smileBASIC command CLS is used to clear graphics on the console screen. If your game is text based and uses the black console screen for the input and text, use the CLS command to clear the screen. This works well with text-based games!

Here is an example of the command:

CLS

The above code will clear the console screen. Explore and see what you can do!

Page updated: January 12th, 2015 @ 5:21 AM Eastern Time

Copyright 2010-2023 ExecuteCode.com.
All Rights Reserved.
Our other websites: