Page 2 of 2
Posted: Sat Dec 24, 2005 3:50 pm
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
Posted: Sat Dec 24, 2005 3:53 pm
by Berikco
Posted: Sat Dec 24, 2005 4:55 pm
by Dare2
LOL
Posted: Sat Dec 24, 2005 5:26 pm
by Num3
Berikco wrote:Note: JaPBe will not work...
Not true.... That's all i can say

Posted: Sat Dec 24, 2005 5:47 pm
by Berikco
Num3 wrote:Berikco wrote:Note: JaPBe will not work...
Not true.... That's all i can say

Hehe, i mean more like it won't compile

Posted: Sat Dec 24, 2005 7:03 pm
by rsts
Well, maybe not the entire country.
I retitled Belgium "Berikco".
Thanks for the code snippet.
and Merry Christmas to (almost) all

Posted: Sat Dec 24, 2005 7:45 pm
by Num3
Berikco wrote:Num3 wrote:Berikco wrote:Note: JaPBe will not work...
Not true.... That's all i can say

Hehe, i mean more like it won't compile

Not true.... That's all i can say

Posted: Sat Dec 24, 2005 8:06 pm
by Berikco
Hehe, it does not here...so you changed code already

Posted: Sat Dec 24, 2005 11:35 pm
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?*
Posted: Sat Dec 24, 2005 11:47 pm
by griz
No presents for Christmas.
Berikco ... may I borrow your steel enforced boots?

Posted: Sat Dec 24, 2005 11:54 pm
by utopiomania
Nice one, I looked at the replies, for the download link, and didn't get it for a while. As usual.

Posted: Sun Dec 25, 2005 12:11 am
by Fangbeast
Posted: Sun Dec 25, 2005 10:59 am
by josku_x
Did you drink too much beer or is it me?
Posted: Sun Dec 25, 2005 11:41 am
by Fangbeast
josku_x wrote:Fangbeast wrote:Berikco wrote:Ok, most ppl found it a good joke

(also lots of bugs added)

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.

Posted: Sun Dec 25, 2005 11:57 am
by Num3
Erh?
I've been using Japbe since i can remember... Didn't recompile anything...
Take a look:
