Results 1 to 2 of 2

Thread: liongfx: circle and box anima

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    52
    Posts
    944
    Rep Power
    111

    liongfx: circle and box anima

    good morning,

    ok, this is my first, very simple "circle and box animation" built with liongfx
    info: the box depends on the running circle and changes his shapes...

    [code=thinbasic]'- 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[/code]

    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 !
    Attached Images Attached Images
    you can't always get what you want, but if you try sometimes you might find, you get what you need

Similar Threads

  1. MOVED: liongfx: circle and box anima
    By Petr Schreiber in forum User tools
    Replies: 0
    Last Post: 01-08-2009, 10:59

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •