Small Basic

The Official Blog of Small Basic

Browse by Tags

Tagged Content List
  • Blog Post: Roman Numerals - Small Basic Featured Programs

    Today I'd like to pick up programs to calculate Roman numerals from the Small Basic forum. The first ones are described in a forum thread Post your sample source code here and get featured on our blogs! (Part II) . SFP007 by Glennium Please enter an integer from 1 to 3999; or ''Return'' to quit...
  • Blog Post: Small Basic - December Challenges

    Have a go at some of this month's Small Basic Challenges . Post your solutions. partial solutions, see what other come up with and discuss any methods etc on the forum site linked above. Small Challenges Write a program to find the square root of a number entered by a user. Write a program...
  • Blog Post: Small Basic Featured Program - Solar System

    Today's featured program is a great animated Solar System by a young Small Basic developer. In the words of his parent, " This program, developed by my 12 years old son, Adrian, provides a planet movement simulation, with an acurate rotation period simulation ". This is a screenshot of the prgram...
  • Blog Post: Small Basic - Mouse Position

    Mouse Position Methods There are 2 ways to get the position of the mouse cursor in Small Basic. gwX = GraphicsWindow . MouseX gwY = GraphicsWindow . MouseY mX = Mouse . MouseX mY = Mouse . MouseY GraphicsWindow.MouseX(Y) The GraphicsWindow variant gets the X and Y coordinates...
  • Blog Post: Small Basic - Chart Extension

    I added a chart object to the LitDev extension , LDChart. So far it just has a pie and doughnut variant. The C# extension source code is also available for download if you want to see how it is done or even modify to create your own. Sample Code GraphicsWindow . Width = 800 GraphicsWindow...
  • Blog Post: Small Basic - November Challenges

    Check out this month's Forum Challenges . Provide some answers, ideas or partial answers and see how others solve them. Happy Coding. Small Challenges Write a program using the While statement to read numbers from the user until they enter a number between 5 and 10 (inclusive). Write...
  • Blog Post: Small Basic - WebCam Motion Detection

    WebCam Extension There has been a webcam object in the LitDev extension ( LDWebCam ) for a while, and I recently updated it so it works on WIndows 8 as well as earlier versions of Windows. There are some effects like grayscale, snow, gamma, contrast, pixelate, fisheye, swirl etc. The effects can...
  • Blog Post: Small Basic Featured Program - Boxing Game

    Following on from NaochanON's shaddow boxing animation recently blogged , he has developed it further into a boxing game. You are the fighter on the left (gray with red gloves) with the computer player on the right (green with blue gloves). The keys to control your fighter are shown below. Left...
  • Blog Post: Small Basic Challenges of the Month - October 2014

    Special thanks to LitDev, as always, for hosting these challenges for us! These challenges are intended for people who are learning to program for the first time or for those returning to programming who want to start using Small Basic. Some will be easy, some will be hard - but they will all make...
  • Blog Post: Small Basic - Flood Fill

    A recent Small Basic post about filling a region left by Turtle trails revived an old flood fill program I wrote a while ago. This is the forum thread, turtle small basic . And this is the program to flood fill regions. 'FloodFill example - for some theory see http://en.wikipedia.org/wiki...
  • Blog Post: Small Basic Featured Program - Gravity Simulator

    This is a Gravity Simulation by Zock77, the import code is FHS907. It includes self interaction between orbiting satellites - they attract each other. The gravitational force attracting objects is given by Newton. If the object masses are M and m and their separation is r, then the force of...
  • Blog Post: Flags in Small Basic

    A word flag has a meaning of a variable which contains a logical value. But today, I'd like to introduce flag graphics drawn with Small Basic. I found three threads in Small Basic forum about following 15 flags. Creating programs to draw flags may be good practices for graphics. How about adding your...
  • Blog Post: Small Basic - GetSettingsFilePath

    There are only 16 keywords and 20 objects in Small Basic, and I've been playing with Small Basic for a few years now and thought I was pretty familiar with them. I discovered one I have never used before following a post by Pappa Lapub in this forum thread Need help figuring out a way of showing score...
  • Blog Post: Small Basic - Traffic Light Challenge

    One of this month's forum challenges was to create a traffic light system. Graphics Challenge 2 Draw a traffic light that changes through the correct lighting sequence, perhaps using the Timer object. We have 2 great answers in, the first by Martin from Germany. And the second by NaochanOn...
  • Blog Post: Small Basic Challenges for September - Traffic Light, Array from CSV, and a Stick Fighting Game!

    Special thanks to LitDev for hosting these challenges! These monthly challenges are intended for people who are learning to program for the first time or for those returning to programming who want to start using Small Basic. Some will be easy, some will be hard - but they will all make you think...
  • Blog Post: Small Basic - Transparent GraphicsWindow

    I recently added a feature to the LitDev Extension to create a completely transparent GraphicsWindow . The method to do this is: LDUtilities . TransparentGW ( ) I can't show a screenshot because there is absolutely nothing to see! So, what's the point... Well, anything we add to...
  • Blog Post: Small Basic - Physics for Marionette Challenge

    A 'Big ' Challenge for groups of programmers has been created by Nonki. We are recruiting during August for development in September. In summary the challenge is to create a marionette puppet in Small Basic, here is an extract of the challenge: "create a marionette (or puppet) per group which...
  • Blog Post: Small Basic - TextWindow Cursor Positioning

    We can write to the TextWindow using Write and WriteLine ; the WriteLine variant also adds a 'new line' to position the cursor at the start of the next line. There are 2 other TextWindow properties that can be used to control where the text is written, these are CursorLeft and CursorTop . Using these...
  • Blog Post: Small Basic Challenges of the Month - August 2014

    These challenges are intended for people who are learning to program for the first time or for those returning to programming who want to start using Small Basic. Some will be easy, some will be hard - but they will all make you think, and more importantly be GREAT FUN! Please post your solutions...
  • Blog Post: Small Basic Comments

    This is an excerpt from this great TechNet Wiki article: Small Basic: Programming Tips by litdev Comments A comment in Small Basic starts with an apostrophe ' and is highlighted in green. Anything after it is ignored to the end of the line. 'Calculate distance between objects distance...
  • Blog Post: Small Basic - Controls are Shapes

    All of the Controls (Buttons, TextBoxes etc) that can be created with the Controls object can be manipulated with the Shapes object methods. This can create some fun effects and make your games or programs more visually interesting. Here is a simple example - it is possible to click it, but pretty...
  • Blog Post: Small Basic LitDev Extension -- Download Now from TechNet Gallery!!!

    Small Basic LitDev Extension View LitDev's TechNet Gallery contributions View LitDev's Profile Download the LitDev Extension : Small Basic LitDev Extension It has loads of extra functionality with over 40 new objects and over 700 methods, properties and events; including 2D physics...
  • Blog Post: Small Basic - Clearing Turtle Trails

    With the current version of Small Basic, the trails left by the turtle cannot be easily cleared. We may want to remove the trails because we are starting the turtle off again and want a clear screen or if the number of trails is very large the program will slow. One obvious option would be to do a...
  • Blog Post: Small Basic Guru - June Winners: LitDev, Jibba Jabba, & Nonki Takahashi!!!

    Congrats to LitDev, Jibba Jabba, and Nonki! Great articles this month! Small Basic Technical Guru - June 2014 litdev Small Basic: Sprite Arrays Ed Price : "An important topic that's well described with fantastic examples! Great article!" Michiel...
  • Blog Post: Small Basic - Triangle Challenge

    One of this month's challenges was set by Nonki - "Draw a picture of a regular triangle" . Here are some of the solutions: By Athasak, QQK823 This answer was shown to not be an exact equilateral triangle by Nonki and have the side ratios below. Another by Athasak after some corrections...
Page 1 of 4 (76 items) 1234