Lionheart008
23-07-2009, 11:06
good morning,
ok, this is my first, very simple "circle and box animation" built with liongfx :D
info: the box depends on the running circle and changes his shapes...
'- first animation try with liongfx, 23.juli.2009 by lionheart :)
uses "liongfx", "console"
liongfx_ScreenRes 320,240,32
liongfx_windowtitle "liongfx: simple circle & box anima"
dim ticktime, img, alpha as double
dim BF as long
dim x,y,dx,dy as integer
ticktime=timer
x=110
y=110
dx=2 '4 too fast
dy=2
Do
if timer-ticktime > (1/60) then
liongfx_ScreenLock
liongfx_Cls
liongfx_Circle x,y,30, &hFFFF00
liongfx_Line x,y, 140,100, 255,45,60, 12, BF
liongfx_ScreenUnLock
x+=dx
y+=dy
if (x>310) or (x<25) then dx=-dx
if (y>210) or (y<25) then dy=-dy
ticktime=timer
endif
loop until liongfx_Inkey = "p"
liongfx_sleep
push "p" to exit or close the console window, have fun with it :)
any feedback are welcome.
my edit: have add an zip file with two examples and liongfx dll updated the file in my second post and collect the stuff here for the future !
nice and sunny day, lionheart
ps: one favour: perhaps it's possible for one of the moderator or eros can do it to get a own new column at the board about all my liongfx material? would be nice !
ok, this is my first, very simple "circle and box animation" built with liongfx :D
info: the box depends on the running circle and changes his shapes...
'- first animation try with liongfx, 23.juli.2009 by lionheart :)
uses "liongfx", "console"
liongfx_ScreenRes 320,240,32
liongfx_windowtitle "liongfx: simple circle & box anima"
dim ticktime, img, alpha as double
dim BF as long
dim x,y,dx,dy as integer
ticktime=timer
x=110
y=110
dx=2 '4 too fast
dy=2
Do
if timer-ticktime > (1/60) then
liongfx_ScreenLock
liongfx_Cls
liongfx_Circle x,y,30, &hFFFF00
liongfx_Line x,y, 140,100, 255,45,60, 12, BF
liongfx_ScreenUnLock
x+=dx
y+=dy
if (x>310) or (x<25) then dx=-dx
if (y>210) or (y<25) then dy=-dy
ticktime=timer
endif
loop until liongfx_Inkey = "p"
liongfx_sleep
push "p" to exit or close the console window, have fun with it :)
any feedback are welcome.
my edit: have add an zip file with two examples and liongfx dll updated the file in my second post and collect the stuff here for the future !
nice and sunny day, lionheart
ps: one favour: perhaps it's possible for one of the moderator or eros can do it to get a own new column at the board about all my liongfx material? would be nice !