How does CLS work in smileBASIC?


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:


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
To help organize our content, all of our game creation tutorial content is moving to our other site:
The move will take about two months to fully complete, so stay tuned!

Game Making Tutorials
Find tutorials about your favorite game creation software! Use the navigation below!

Game Maker: Studio
Help, References, and Tutorials
RPG Maker Fes
Help, References, and Tutorials
Help, References, and Tutorials

Need Help?
Search answers to game development questions or ask a question yourself
Get exclusive updates from!
Join the Email List
Download Books
Search Downloadable Books from
Copyright 2010-2018
All Rights Reserved.