Just Another Post...

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Code: Select all

InitSprite() 
  
Structure mydot 
  x.f 
  y.f 
  u.f 
  v.f 
  life.f 
  s.f 
EndStructure 

Global NewList dot.mydot() 

OpenWindow(1,0,0,640,480,#PB_Window_ScreenCentered|#PB_Window_SystemMenu,"Get Berikco!") 
OpenWindowedScreen(WindowID(1),0,0,640,480,0,0,0) 

Procedure BlowemUp(spotx,spoty) 
  For g=0 To 500 
    AddElement(dot()) 
    angle.f=Random(359)*3.141592/180 
    dot()\life=1+Random(254) 
    dot()\u=Cos(angle)*Random(128)/64 
    dot()\v=Sin(angle)*Random(128)/64 
    dot()\v=dot()\v-1 ;this will make it go up 
    dot()\x=spotx 
    dot()\y=spoty 
    dot()\s=Random(15)/10 
  Next g 
EndProcedure 

myx=0:myy=200:myx2=620 
  Repeat 
    ev=WindowEvent()
    ClearScreen(0) 
    StartDrawing(ScreenOutput()) 
    If CountList(dot())<100
      DrawText(myx-25,myy-38,"Brussels",#Red,#Black) 
      Circle(myx,myy,20,RGB(0,0,255)) 
      If myx>200 
        Circle(myx2,myy,5,RGB(255,0,0)) 
      EndIf 
    Else 
      myx=0:myy=200:myx2=619 
    EndIf 
    ForEach dot() 
      dot()\x=dot()\x+dot()\u 
      dot()\y=dot()\y+dot()\v 
      dot()\v=dot()\v+0.05 
      If dot()\x=>0 And dot()\x<=639 And dot()\y=>0 And dot()\y<=478 
        c=dot()\life 
        c=c+c<<8+c<<16 
        Circle(dot()\x,dot()\y,dot()\s,c) 
      EndIf 
      dot()\life=dot()\life-1:If dot()\life<=0:DeleteElement(dot()):EndIf 
    Next 
    StopDrawing() 
    FlipBuffers() 
    Delay(1) 
    myx+1 
    If myx>200 
      myx2-12 
    EndIf 
    If myx >619 
      myx=0 
    EndIf 
    If myx >= myx2-20 
      BlowemUp(myx+10,myy+10) 
    EndIf 
  Until ev=#PB_Event_CloseWindow
End 
Last edited by netmaestro on Wed Feb 22, 2006 5:06 am, edited 2 times in total.
BERESHEIT
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

:lol:
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

LOL
@}--`--,-- A rose by any other name ..
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Berikco wrote:Note: JaPBe will not work...
Not true.... That's all i can say Image
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

Num3 wrote:
Berikco wrote:Note: JaPBe will not work...
Not true.... That's all i can say Image
Hehe, i mean more like it won't compile :)
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

netmaestro wrote:

Code: Select all

;Get Berikco

Forever
End 
Well, maybe not the entire country.

I retitled Belgium "Berikco".

Thanks for the code snippet.

and Merry Christmas to (almost) all :wink:
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Berikco wrote:
Num3 wrote:
Berikco wrote:Note: JaPBe will not work...
Not true.... That's all i can say Image
Hehe, i mean more like it won't compile :)
Not true.... That's all i can say Image
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

Hehe, it does not here...so you changed code already :)
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

I'd rather it come in three months the better for it than in two weeks under the feeling "it's not ready yet".

*scratches head, where's the beta download link at by the way?*
Intrigued - Registered PureBasic, lifetime updates user
User avatar
griz
Enthusiast
Enthusiast
Posts: 167
Joined: Sun Jun 29, 2003 7:32 pm
Location: Canada

Post by griz »

No presents for Christmas. :cry:

Berikco ... may I borrow your steel enforced boots? :twisted:
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

Nice one, I looked at the replies, for the download link, and didn't get it for a while. As usual. :)
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4792
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Berikco wrote:Ok, most ppl found it a good joke :)
(also lots of bugs added) :)
8)
Thank goodnesss!!! I was worried about not having enough to do in the holidays!!

:lol: :lol:
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

Fangbeast wrote:
Berikco wrote:Ok, most ppl found it a good joke :)
(also lots of bugs added) :)
8)
Thank goodnesss!!! I was worried about not having enough to do in the holidays!!

:lol: :lol:
Did you drink too much beer or is it me?
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4792
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

josku_x wrote:
Fangbeast wrote:
Berikco wrote:Ok, most ppl found it a good joke :)
(also lots of bugs added) :)
8)
Thank goodnesss!!! I was worried about not having enough to do in the holidays!!
Did you drink too much beer or is it me?
a. I don't drink alcohol.
b. It's you.
c. having lots of bugs to fix teaches you things.
d. It's you.
e. It's you.
f. It's really you.
g. It's truly you.
:lol: :lol: :lol: :lol: :lol:
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Erh?

I've been using Japbe since i can remember... Didn't recompile anything...

Take a look:

Image
Post Reply