QUOTE ("Basic Code") | ||
:: :1→Xmin :95→Xmax :1→Ymin :63→YMax :Radian :40,40,60,40,60,20,40,20,40,40,60,40,60,20,40,20→L1 :(√(800)π)→A :(7/8)A,A/8,A/8,A/8,A/8,(7/8)A,(7/8)A,(7/8)A,(5/8)A,(3/8)A,(3/8)A,(3/8)A,(3/8)A,(5/8)A,(5/8)A,(5/8)A→L2 :(2π)/(π√(800))→R :√(800)/2→Q :Lbl R :ClrDraw :iPart(Q(sin(RL2))+40→L1 :For(A,1,5,2 :Line(L1(A),L1(A+1),L1(A+2),L1(A+3) :End :Line(L1(7),L1(8),L1(1),L1(2) :For(A,9,13,2 :Line(L1(A),L1(A+1),L1(A+2),L1(A+3) :End :Line(L1(15),L1(16),L1(9),L1(10) :For(A,1,7,2 :Line(L1(A),L1(A+1),L1(A+8),L1(A+9) :End :Repeat G :getKey→G :End :If G=26 :Then :For(A,1,15,2 :L2(A)+1→L2(A) :End :End :If G=24 :Then :For(A,1,15,2 :L2(A)-1→L2(A) :End :End :If G=25 :Then :For(A,2,16,2 :L2(A)+1→L2(A) :End :End :If G=34 :Then :For(A,2,16,2 :L2(A)-1→L2(A) :End :End :Goto R Generated by http://www.cemetech.net/projects/basicelite/sourcecoder.php, Post by: DJ Omnimaga on October 14, 2006, 03:35:00 am ![]() Post by: bfr on October 14, 2006, 03:39:00 am ![]() Post by: DJ Omnimaga on October 14, 2006, 03:47:00 am ![]() sound cool tho Post by: bfr on October 14, 2006, 05:22:00 am c1-->
ec2
Post by: DJ Omnimaga on October 14, 2006, 05:26:00 am Post by: Radical Pi on October 14, 2006, 08:36:00 am I'm not impressed by the video or that it constantly redraws, but the mere fact that you did it in Basic is lolzomgwtfzorsinmypants. And like you said, it can probably get alot faster. Good job. Post by: JincS on October 14, 2006, 11:15:00 am I have a n00b question: I know when programming in C/C++, you can write screen data to a buffer before you send it to the screen, which increases frame rate and reduces flicker. Is there a way to do that in BASIC? Post by: DJ Omnimaga on October 14, 2006, 11:21:00 am |