Search found 82 matches

by Operator
Mon Jan 23, 2017 2:44 am
Forum: BASIC programs
Topic: Drag sprite with finger example (and a question)
Replies: 14
Views: 3299

Re: Drag sprite with finger example (and a question)

Here is "another" approach, col. detection and reaction function included... :D 'dragsprite.txt 'Drag a sprite with finger example 'Code by Dav, JAN/2017 'mod by rbytes 'mod by Operator...; 'col. reaction port./mod out of: http://forums.elysianshadows.com/viewtopic.php?f=13&t=5767 GRAPHICS REFRESH O...
by Operator
Thu Jan 19, 2017 6:06 pm
Forum: BASIC programs
Topic: need some advice...
Replies: 8
Views: 2373

Re: need some advice...

Another similar approach would be to show
the sprites after the first calc. in the main
loop and not before...

...
IF TOUCH_X(0)>0 THEN END


IF sprite_show_flag = 0 THEN
SPRITE "boat" SHOW
SPRITE "wave_blue1" SHOW
SPRITE "wave_blue2" SHOW
sprite_show_flag = 1
END IF

NEXT phi
by Operator
Thu Jan 19, 2017 6:00 pm
Forum: BASIC programs
Topic: Brownian tree, a Rosetta task
Replies: 4
Views: 977

Re: Brownian tree, a Rosetta task

Amazing ! Best "screen saver" in town :D
by Operator
Mon Jan 09, 2017 12:26 am
Forum: BASIC programs
Topic: Maze+Ball game v1.0 (iPad only)
Replies: 9
Views: 2267

Re: Maze+Ball game v1.0 (iPad only)

Very nice game :) got stuck in level 9...
Had some difficulties at first, since all the more than one
blank spaces of the maze got merged/lost in the copy and paste
process of the code... (iPhone4 / iOS6.1)
resulting in a debug screen [..] a$=MID$(puz$,m,1) due of
the missing chars...
by Operator
Wed Jan 04, 2017 9:51 pm
Forum: BASIC programs
Topic: Moving box with finger Swipes method (advice request)
Replies: 6
Views: 1741

Re: Moving box with finger Swipes method (advice request)

As sarossell stated, the wrong way will be in the extremes of the screen.. if a swipe is started close to the left then the block will "easily" go up since touch_y may get -1... In guess some microseconds the second touch xy calls after the while touchx >-1 can get a different value...if this happen...
by Operator
Tue Jan 03, 2017 1:24 am
Forum: BASIC programs
Topic: Bin Clock -Test-
Replies: 2
Views: 906

Bin Clock -Test-

Finally some free time to read all the posts and program again a bit... :) REM Bin-Clock:inspired by a Xmas gift REM 1 col. hours: 0-23 / 6bit REM 2 col. minutes: 0-59 / 6bit REM 3 col. seconds: 0-59 / 6bit REM sB5.6/iPhone4/iOS6.1/ by Operator FOR i = 5 TO 0 STEP -1 FIELD "sec"&i TEXT " "&2^i AT 20...
by Operator
Tue Jan 03, 2017 1:17 am
Forum: PDF manual (by Dutchman)
Topic: PDF-manual 5.7
Replies: 16
Views: 4233

Re: PDF-manual 5.7

Thanks for the update and specially for
the i-numbers add-ons :)
by Operator
Tue Jan 03, 2017 1:14 am
Forum: BASIC programs
Topic: Logarithmic spiral
Replies: 3
Views: 974

Re: Logarithmic spiral

I like this, so an animated version had to be included... :D 'Logarithmic spiral, in polar coordinates 'by Dutchman, january 2017 ' --- constants dphi=0.1 ' angular increment a=0.1 b=0.1 GET SCREEN SIZE sw,sh x0=sw/2 ! y0=sh/2 SIZE=MIN(x0,y0) ' --- initiate graphics GRAPHICS GRAPHICS CLEAR 1,1,0.5 D...
by Operator
Sun Dec 04, 2016 6:56 pm
Forum: BASIC programs
Topic: P5.js inside sBasic
Replies: 39
Views: 9406

Re: P5.js inside sBasic

:D Good to know it works now...
Yes also slow...I just reduced to 10 boids and then
it runs faster....
by Operator
Sun Dec 04, 2016 5:59 pm
Forum: BASIC programs
Topic: P5.js inside sBasic
Replies: 39
Views: 9406

Re: P5.js inside sBasic

I forgot to mention: :?
Comment the following line in the P5 code : 5th line
/* createP("Drag the mouse to generate new boids."); */