Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / Fractal_Sierpinski_Triangle.bas
Created August 14, 2017 08:57
SmallBASIC: dd
#sec:Main
' sier2.bs
' From "Fractals" by Hans Lauwerier
' Heavily modified for SB :-)
' Method 2 to draw Sierpinski Triangle
cls
c=3
rect 0,0,160,160 color o filled
p=5: dim T(p): a= SQR(3)
anonymous
anonymous / snake.bas
Created August 13, 2017 11:25
SmallBASIC: By MGA
'snake reconfig v worm holes.bas SmallBASIC 0.12.6 [B+=MGA] 2016-06-29
'2015-06-08 started from BASIC256 game versions 1-5
' use board array to store all data
'2016-06-27 v5 update with definekey use arrows
'2016-06-28 reconfigure for SmallBASIC array handling
' now board only tracks grass colors
' d = [x, y] direction array
' food = [x, y] food location
' snake = [x, y] of snake segments
'2016-06-28 v2 hey, it's way past time to loose base 1 board