Hello Moon Tutorial – Small Basic Featured Program

Today we’re going to do a very simple Small Basic tutorial. We’re going to say hello to the moon!

 

Boot up Small Basic, and let’s get started!

 

 

Type this in:

 

===============

 

GraphicsWindow.TItle = “Hello Moon: The Program”

GraphicsWindow.Width = 320

GraphicsWindow.Height = 240

GraphicsWIndow.DrawImage(“C:\Small Basic\backgroundbmp”, 0, 0)

 

GraphicsWindow.BrushColor = “White”

GraphicsWindow.FontSize = 50

GraphicsWindow.DrawText(10, 120, “Hello Moon!”)

 

===============

 

Great. Except it will throw an error, because you don’t have the image! Here’s what you do…

 

1. Download this image (right-click and Save it):

background.bmp

2. Be sure to save it where you want it!

3. Then update the code to set the path in line 5 to the correct location of the background.bmp file on your computer!

4. Run it again!

 

But what if we want to make it even easier? What if the image is online, and we just want to point to where the image already is? Try this code (replace the location of your image with “http://aka.ms/HelloMoon”)…

 

===============

 

GraphicsWindow.TItle = “Hello Moon: The Program”

GraphicsWindow.Width = 320

GraphicsWindow.Height = 240

GraphicsWIndow.DrawImage(“http://aka.ms/HelloMoon“, 0, 0)

 

GraphicsWindow.BrushColor = “White”

GraphicsWindow.FontSize = 50

GraphicsWindow.DrawText(10, 120, “Hello Moon!”)

 

===============

 

 

That’s it! Hello Moon! Wasn’t that easy? Now, everyone can code!

 

You can find this tutorial and hundreds more in our exhaustive Small Basic book: 

 

 

Have a Small and Basic day!

 

Ninja Ed

Continue reading Hello Moon Tutorial – Small Basic Featured Program

State of Decay 2: Juggernaut Edition launches March 13

State of Decay 2: Juggernaut Edition launches on March 13 on Windows 10 and Xbox. It’ll also be on Steam with cross-network play across all platforms. This is a free, automatic upgrade for all owners of State of Decay 2, including all Xbox Game Pass members. It’s an expanded and improved version that takes everything […]

The post State of Decay 2: Juggernaut Edition launches March 13 appeared first on Windows Blog.

Continue reading State of Decay 2: Juggernaut Edition launches March 13

Improvements to Orchestration Groups in Configuration Manager Technical Preview 2002

Update 2002 for the Technical Preview Branch of Microsoft Endpoint Configuration Manager has been released.
 
Orchestration Groups are the evolution of the “Server Groups” feature. They were first introduced in the technical preview for Configurat… Continue reading Improvements to Orchestration Groups in Configuration Manager Technical Preview 2002

Announcing the OAuth support with Event Hubs for Kafka – now GA

Every time you publish or consume events to/from Event Hubs for Kafka, your client is trying to access the Event Hubs resources. When using Apache Kafka protocol with your clients, you can set your configuration for authentication and encrypt… Continue reading Announcing the OAuth support with Event Hubs for Kafka – now GA