This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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 |