Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Animation/Smart-BASIC/animation-1.basic
Normal file
17
Task/Animation/Smart-BASIC/animation-1.basic
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
'Animation, by rbytes and Dutchman
|
||||
word$="Hello World! "
|
||||
'use button window with text
|
||||
SET BUTTONS CUSTOM
|
||||
SET BUTTONS FONT SIZE 40
|
||||
DRAW COLOR 0,0,0
|
||||
DO 'the button is redrawn each loop
|
||||
BUTTON "anim" TEXT word$ AT 130,100
|
||||
PAUSE .1
|
||||
'touching the button reverses the scrolling
|
||||
IF BUTTON_PRESSED("anim") THEN flag=1-flag
|
||||
IF flag THEN 'shift right
|
||||
word$=RIGHT$(word$,1)&LEFT$(word$,LEN(word$)-1)
|
||||
ELSE 'shift left
|
||||
word$=RIGHT$(word$,LEN(word$)-1)&LEFT$(word$,1)
|
||||
ENDIF
|
||||
UNTIL 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue