Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
micro(A) demo : Santa Cutter
#3
tiny addition ..roto spiral

Code: (Select All)
'roto spiral by ZXDunny micro(A) version by Aurel
var d,z0,p,q,b,tau,tau20,scrw,scrh : scrw = 800 : scrh = 600
var x,y,z,zz,a,b,yy,xx
d=700 : z0=2500 :p = -0.3 : q= -0.3 : b = -0.3 : tau = 6.2831
MODE 1 : wcolor 0,0,0 : fcolor 0,255,55

label doLoop
    b = b + 0.3 :
    rect 0,0,800,600  'cls
  
    a=0 : tau20 = 20 * tau
    While a < tau20
       x = 5*a*cos(a) : y = -a*10 : z=5*a*sin(a)
       yy = (y+350)*cos(b)-z*sin(b) : zz=(y+350)*sin(b)+z*cos(b)
       y=yy-350 : z=zz : xx=x*cos(b)-z*sin(b) : zz=x*sin(b)+z*cos(b)
       x=xx : z=zz : xx=x*cos(b)-(y+350)*sin(b) : yy=x*sin(b)+(y+350)*cos(b)

       print scrw/2+xx*d/(z+z0) , scrh/2-(100+yy-350)*d/(z+z0)-150 ,"*"

    a = a + 0.1
    Wend
swap
goto doLoop
'thanks for watching ...and merry christmas ...!!!!


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
micro(A) demo : Santa Cutter - by aurel - 12-15-2025, 06:30 PM
RE: micro(A) demo : Santa Cutter - by aurel - 12-15-2025, 06:48 PM
RE: micro(A) demo : Santa Cutter - by aurel - 12-26-2025, 08:50 AM
RE: micro(A) demo : Santa Cutter - by bplus - 12-26-2025, 01:14 PM
RE: micro(A) demo : Santa Cutter - by aurel - 01-02-2026, 11:40 AM
RE: micro(A) demo : Santa Cutter - by aurel - 01-02-2026, 12:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  micro(A) demo game: Ghost&Coin aurel 6 369 01-12-2026, 02:55 PM
Last Post: aurel
  micro(A)v11 aurel 114 19,298 05-01-2025, 10:06 AM
Last Post: aurel
  QBJS Sound Demo dbox 10 2,189 03-06-2024, 05:51 PM
Last Post: madscijr
Photo SVG lines to micro(A) string array initialization mnrvovrfc 2 745 08-03-2023, 12:35 PM
Last Post: aurel

Forum Jump:


Users browsing this thread: 1 Guest(s)