Windows

Demo: fun mouse graphic effect

SmallBASIC implementations: 

' Mouse springs v1.bas SmallBASIC MGA 2015-04-18
' Demo fun mouse graphics effect, developed on Windows 7-64
maxX=800:maxY=600 ' draw area
centerX=maxX/2:centerY=maxY/2 ' this is where the screen effect center is
maxR=40:dColor=1 ' Max Radius of Springs, ChangeColor
lowXY=maxR*2:highX=maxX-maxR*2:highY=maxY-maxR*2 ' mouse pen borders for effect
red=12:blue=9 ' some color commentary

Small Basic Help

Forums: 
SmallBASIC implementations: 

I need some help for small basic. Here is the code I have so far for a Air Hockey game:

GraphicsWindow.Title = "Air Hockey V 0.1.0 Alpha"
GraphicsWindow.Height = 450
GraphicsWindow.Width = 700
GraphicsWindow.BackgroundColor = "Gray"
GraphicsWindow.MouseMove = MoveShape
HockeyPuck1X = GraphicsWindow.MouseX - 22
HockeyPuck1Y = GraphicsWindow.MouseY - 20
PuckX = 332
PuckY = 208
PuckDir = 0

' Copywright 2014 by Brandon Pyle
' All rights reserved
' Air Hockey Version 0.1.0 Alpha

The NUM command

SmallBASIC implementations: 

I can't get the command to work ... Can someone give me an example? -- Steve

NUM [initial-line [, increment]] [Command]
The NUM command sets the values for the autonumbering. If the ’initial-line’ and
’increment’ are not specified, the line numbers start at 10 and increase in increments
of 10.

Pages

Subscribe to RSS - Windows