Author Topic: something round.  (Read 990 times)

0 Members and 1 Guest are viewing this topic.

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4130
  • Karma: 223
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
something round.
« on: March 14, 2007 »


Just a little small conversion of an old demoFX. Enjoy!

Exe attached for those without purebasic

Code: [Select]
; something round.
; a conversion of an old demoFX
; by benny|weltenkonstrukteur.de
; o8.o6.o5

winTitle.s  = "something round."
#LOOPTIME   = 1000/14  ; 40 Frames in 1000ms (1second)

hwnd.l = OpenWindow(0, 0,0, 320, 240, winTitle.s, #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If hwnd
  If InitSprite()
    If OpenWindowedScreen(hwnd, 0, 0, 320, 240, 0, 0, 0)
     
        Dim px.f(15)
        Dim py.f(15)
       
        Repeat   
         
          Select WindowEvent()
            Case #PB_Event_CloseWindow
              Quit = #True
          EndSelect
         
          FlipBuffers()
          If IsScreenActive() 
            ClearScreen(RGB(0,0,0) )
            StartDrawing(ScreenOutput())
                DrawingMode( #PB_2DDrawing_XOr)
                px(0) = 160+8*Cos(a.f)
                py(0) = 120+8*Sin(a.f)
                For i=1 To 14 Step 2
                  px(i-1) = px (i)
                  py(i-1) = py (i)
                  px(i) = 160+8*Cos (a.f * (1+i*0.1))
                  py(i) = 120+8*Sin (a.f * (1+i*0.1))
                  Circle(px(i), py(i), 110-i*8, RGB(155,155,155))
                Next i
                a + 0.4
                StopDrawing()
          EndIf
         
          ; Run Program at a constant rate 
          While ( ElapsedMilliseconds()-LoopTimer )<#LOOPTIME : Delay(1) : Wend 
          LoopTimer = ElapsedMilliseconds()
        Until Quit = #True
       
    EndIf
  EndIf
EndIf
End
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline mike_g

  • Amiga 1200
  • ****
  • Posts: 435
  • Karma: 34
    • View Profile
Re: something round.
« Reply #1 on: March 14, 2007 »
Thats a cool wobbly effect  :)

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 16787
  • Karma: 439
  • evil/good
    • View Profile
    • My Homepage
Re: something round.
« Reply #2 on: March 14, 2007 »
Hehe, classic effect :D Nicely done Benny.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline zawran

  • Sponsor
  • Pentium
  • *******
  • Posts: 886
  • Karma: 63
    • View Profile
    • zac-interactive
Re: something round.
« Reply #3 on: March 14, 2007 »
Cool effect.

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4130
  • Karma: 223
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: something round.
« Reply #4 on: March 14, 2007 »
Thanks, mates!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1480
  • Karma: 138
    • View Profile
    • Clark Productions
Re: something round.
« Reply #5 on: March 15, 2007 »
Cool one there.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7145
  • Karma: 69
    • View Profile
Re: something round.
« Reply #6 on: March 15, 2007 »
Ace effect dude.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4130
  • Karma: 223
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: something round.
« Reply #7 on: March 15, 2007 »
Glad you like it  ;)
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Paul

  • Pentium
  • *****
  • Posts: 1490
  • Karma: 47
    • View Profile
Re: something round.
« Reply #8 on: March 15, 2007 »
hehe, nice :)
I will bite you - http://s5.bitefight.se/c.php?uid=31059
Challenge Trophies Won: