
Small Basic
By teaching the fundamental elements of syntax-based languages in an approachable manner, Small Basic gives students the skills and confidence to tackle more complex programming languages such as Java and C#. You can also build applications for Kinect, Lego Mindstorm, Raspberry Pi, Arduino, Oculus Rift, and more using Small Basic.
Small Basic
Small Basic is a programming language that is designed to make programming extremely easy, approachable and fun for beginners. Small Basic’s intention is to bring down the barrier and serve as a stepping stone to the amazing world of computer programming.
In Small asic, you can import someone else’s code to work on it and fix a problem, make it better, or just customize it for fun! It’s also a good way to learn how others write code and
Small Basic
Read() looks just like WriteLine(), but with no inputs.It is an operation and basically it tells the computer to wait for the user to type in something and hit the ENTER key. Once the user hits the ENTER key, it takes what the user has typed and returns it to the program.
Small Basic
The principles of BASIC emphasize simplicity and approachability – a strong framework for an introductory language such as Small Basic. What about the other Small Basic? Microsoft Small Basic are not affiliated with the similarly-named SmallBASIC language.
Small Basic
Try out small basic with these fun tutorials! Level 1 Tutorial Estimated time to complete: 30 minutes. Download level 1 tutorial. Download final code for level 1 tutorial. Level 2 Tutorial Builds on the code from the Level 1 tutorial. Estimated time to complete: 1 hour.
Small Basic
So far in all our examples, we’ve used the TextWindow to explain the fundamentals of the Small Basic language. However, Small Basic comes with a powerful set of Graphics capabilities that we’ll start exploring in this chapter. Introducing GraphicsWindow
Small Basic
Specifies how fast the turtle should move. Valid values are 1 to 10. If Speed is set to 10, the turtle moves and rotates instantly.
Before we go on, you should know a little bit about this GraphicsWindow. Small Basic uses coordinates to figure out where things go. The x position is how far left or right an object is and the y position is how far up or down an object is. If you want an object to be on the screen, its x value must stay between 0 and the screen’s
Small Basic
The interesting part to note in the program above is the line where we assign the subroutine name to the MouseDown event of GraphicsWindow object. You’ll notice that MouseDown looks very much like a property – except that instead of assigning some value, we’re assigning the subroutine OnMouseDown to it. That’s what is special about events – when the event happens, the subroutine is ...