Happy New Year to PureBasic people!

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Happy New Year to PureBasic people!

Post by Danilo »

Happy new year PureBasic guys and girls! May the new versions of PB enlighten you!

Skoal!
Prost!
Cheers!
Tchin-tchin! Santé!
¡Salud!
Cincin! Alla salute!
¡Chinchín! ¡Salud!
干杯! [乾杯!] Gānbēi!
ва́ше здоро́вье!
Tchim tchim!
na zdrowie!
To your health!
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Happy New Year to PureBasic people!

Post by Shield »

新年快乐!
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
User avatar
RSBasic
Moderator
Moderator
Posts: 1228
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Happy New Year to PureBasic people!

Post by RSBasic »

Feliz año nuevo :)
Image
Image
magicjo
User
User
Posts: 61
Joined: Sun May 07, 2006 10:43 am
Location: Italy

Re: Happy New Year to PureBasic people!

Post by magicjo »

Auguri a tutti
Image
PB Registered User, Egrid Registered User
Win7 x64 Ultimate, 4,00 Gb Mem, Ati Radeon HD4600 Series, Realtek High Definition Audio Integrated
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Re: Happy New Year to PureBasic people!

Post by nco2k »

happy new year everyone! :D

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
User avatar
leonhardt
Enthusiast
Enthusiast
Posts: 220
Joined: Wed Dec 23, 2009 3:26 pm

Re: Happy New Year to PureBasic people!

Post by leonhardt »

Shield wrote:新年快乐!
还有中国人的说?
poor English...

PureBasic & Delphi & VBA
User avatar
TI-994A
Addict
Addict
Posts: 2700
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Happy New Year to PureBasic people!

Post by TI-994A »

Here's wishing one and all...

Image

May it be a truly good one, if not better! :D
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
User avatar
useful
Enthusiast
Enthusiast
Posts: 402
Joined: Fri Jul 19, 2013 7:36 am

Re: Happy New Year to PureBasic people!

Post by useful »

Image
Dawn will come inevitably.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Happy New Year to PureBasic people!

Post by Fred »

Happy new year !
thanos
Enthusiast
Enthusiast
Posts: 423
Joined: Sat Jan 12, 2008 3:25 pm
Location: Greece
Contact:

Re: Happy New Year to PureBasic people!

Post by thanos »

Καλή χρονιά!
» myPersonal Banker :: Because you do not need to have a master degree in economics in order to organize your finances!
User avatar
Zebuddi123
Enthusiast
Enthusiast
Posts: 796
Joined: Wed Feb 01, 2012 3:30 pm
Location: Nottinghamshire UK
Contact:

Re: Happy New Year to PureBasic people!

Post by Zebuddi123 »

Happy New Year to All :)
malleo, caput, bang. Ego, comprehendunt in tempore
mpz
Enthusiast
Enthusiast
Posts: 497
Joined: Sat Oct 11, 2008 9:07 pm
Location: Germany, Berlin > member German forum

Re: Happy New Year to PureBasic people!

Post by mpz »

A happy new year and great projects with purebasic...

Michael
Working on - MP3D Library - PB 5.73 version ready for download
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Happy New Year to PureBasic people!

Post by Shield »

leonhardt wrote:
Shield wrote:新年快乐!
还有中国人的说?
我不是中国人但是我在学习中文。
Though now we're already off topic. :)
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Happy New Year to PureBasic people!

Post by STARGÅTE »

Code: Select all

EnableExplicit

InitSprite()

Structure Vector
   X.f
   Y.f
EndStructure

Structure Spark
   Position.Vector
   Velocity.Vector
   Time.i
   Color.i
   Blink.i
   Weight.i
EndStructure

Structure Bullet
   Position.Vector
   Velocity.Vector
   Time.i
   Color.i
   Weight.i
   Type.i
EndStructure

Global NewList Bullet.Bullet()
Global NewList Spark.Spark()

Enumeration
   #Window
EndEnumeration

OpenWindow(#Window, 0, 0, 1200, 800, "ScreenTitle", #PB_Window_SystemMenu|#PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(#Window), 0, 0, WindowWidth(#Window), WindowHeight(#Window), 0, 0, 0)
RandomSeed(4)

Define Time.i, OldTime.i, TimeFactor.f, Length.f, I.i, Angle.f, Radius.f, Factor.f, *Spark.Spark

Repeat
   
   Repeat
      Select WindowEvent()
         Case #PB_Event_CloseWindow
            End
         Case #PB_Event_None
            Break
      EndSelect
   ForEver
   
   ClearScreen(0)
   
   Time = ElapsedMilliseconds()
   TimeFactor = (Time-OldTime)*0.001
   OldTime = Time
   
   StartDrawing(ScreenOutput())
   
   ForEach Spark()
      Spark()\Position\X + Spark()\Velocity\X*TimeFactor
      Spark()\Position\Y + Spark()\Velocity\Y*TimeFactor
      Spark()\Velocity\Y + 98.1*TimeFactor
      If Time > Spark()\Time-250
         Factor = (Spark()\Time-Time)/250.
      Else
         Factor = 1.0
      EndIf
      If Spark()\Weight Or Spark()\Blink
         Circle(Spark()\Position\X, Spark()\Position\Y, Spark()\Blink+Sqr(Spark()\Weight/100), RGB(Red(Spark()\Color)*(Factor*0.5+0.5), Green(Spark()\Color)*(Factor*0.5+0.5), Blue(Spark()\Color)*(Factor*0.5+0.5)))
      Else
         Line(Spark()\Position\X, Spark()\Position\Y, 1, 1, RGB(Red(Spark()\Color)*Factor, Green(Spark()\Color)*Factor, Blue(Spark()\Color)*Factor))
      EndIf
      If Spark()\Blink
         *Spark = Spark()
         Angle = Radian(Random(3600)/10.)
         Radius = Sqr(Random(1000)/1000.)*10
         AddElement(Spark())
         Spark()\Position = *Spark\Position
         ;Spark()\Velocity = *Spark\Velocity
         Spark()\Velocity\X + Cos(Angle)*Radius
         Spark()\Velocity\Y + Sin(Angle)*Radius
         Spark()\Color = $40B0F0 + (Random($F)|Random($F)<<8|Random($F)<<16)
         Spark()\Time = Time + 250 + Random(250)
      ChangeCurrentElement(Spark(), *Spark)
      EndIf
      If Time > Spark()\Time
         If Spark()\Weight
            *Spark = Spark()
            For I = 1 To *Spark\Weight
               Angle = Radian(Random(3600)/10.)
               Radius = Sqr(Random(1000)/1000.)*40+10
               AddElement(Spark())
               Spark()\Position = *Spark\Position
               Spark()\Velocity = *Spark\Velocity
               Spark()\Velocity\X + Cos(Angle)*Radius
               Spark()\Velocity\Y + Sin(Angle)*Radius
               Spark()\Color = $40B0F0 + (Random($F)|Random($F)<<8|Random($F)<<16)
               Spark()\Time = Time + 250 + Random(250)
            Next
            ChangeCurrentElement(Spark(), *Spark)
         EndIf
         DeleteElement(Spark())
      EndIf
   Next

   ForEach Bullet()
      Bullet()\Position\X + Bullet()\Velocity\X*TimeFactor
      Bullet()\Position\Y + Bullet()\Velocity\Y*TimeFactor
      Bullet()\Velocity\Y + 98.1*TimeFactor
      Length = Sqr(Bullet()\Velocity\X*Bullet()\Velocity\X+Bullet()\Velocity\Y*Bullet()\Velocity\Y)
      Circle(Bullet()\Position\X, Bullet()\Position\Y, 1+Sqr(Bullet()\Weight/100), $C0C0C0)
      LineXY(Bullet()\Position\X, Bullet()\Position\Y, Bullet()\Position\X-Bullet()\Velocity\X*20/Length, Bullet()\Position\Y-Bullet()\Velocity\Y*20/Length, $808080)
      If Bullet()\Time < Time
         Select Bullet()\Type
            Case 0
               For I = 1 To Bullet()\Weight
                  Angle = Radian(Random(3600)/10.)
                  Radius = Pow(Random(1000)/1000., 0.25)*Sqr(Bullet()\Weight)*5
                  AddElement(Spark())
                  Spark()\Position = Bullet()\Position
                  Spark()\Velocity = Bullet()\Velocity
                  Spark()\Velocity\X + Cos(Angle)*Radius
                  Spark()\Velocity\Y + Sin(Angle)*Radius
                  Spark()\Color = Bullet()\Color + (Random($F)|Random($F)<<8|Random($F)<<16)
                  Spark()\Time = Time + 1000 + Random(1000)
               Next
            Case 1
               For I = 1 To Bullet()\Weight/10
                  Angle = Radian(Random(3600)/10.)
                  Radius = Sqr(Random(1000)/1000.)*Sqr(Bullet()\Weight)*5
                  AddElement(Spark())
                  Spark()\Position = Bullet()\Position
                  Spark()\Velocity = Bullet()\Velocity
                  Spark()\Velocity\X + Cos(Angle)*Radius
                  Spark()\Velocity\Y + Sin(Angle)*Radius
                  Spark()\Color = Bullet()\Color + (Random($F)|Random($F)<<8|Random($F)<<16)
                  Spark()\Time = Time + 500 + Random(500)
                  Spark()\Weight = 50
               Next
            Case 2
               For I = 1 To Bullet()\Weight/10
                  Angle = Radian(Random(3600)/10.)
                  Radius = Sqr(Random(1000)/1000.)*Sqr(Bullet()\Weight)*5
                  AddElement(Spark())
                  Spark()\Position = Bullet()\Position
                  Spark()\Velocity = Bullet()\Velocity
                  Spark()\Velocity\X + Cos(Angle)*Radius
                  Spark()\Velocity\Y + Sin(Angle)*Radius
                  Spark()\Color = Bullet()\Color + (Random($F)|Random($F)<<8|Random($F)<<16)
                  Spark()\Time = Time + 2500 + Random(500)
                  Spark()\Blink = #True
               Next
         EndSelect
         DeleteElement(Bullet())
      ElseIf Random(1) = 0
         Radius = Random(50)+50
         Angle = Radian(Random(100)/10.-5) + ATan2(Bullet()\Velocity\X, Bullet()\Velocity\Y)
         AddElement(Spark())
         Spark()\Position = Bullet()\Position
         Spark()\Velocity = Bullet()\Velocity
         Spark()\Velocity\X - Cos(Angle)*Radius
         Spark()\Velocity\Y - Sin(Angle)*Radius
         Spark()\Color = $40B0F0 + (Random($F)|Random($F)<<8|Random($F)<<16)
         Spark()\Time = Time + 1000 + Random(1000)
      EndIf
   Next
   
   If Random(20) = 0
      Angle = Radian(Random(400)/10.+250)
      AddElement(Bullet())
      Bullet()\Position\X = ScreenWidth()/2 - 100 + Random(200)
      Bullet()\Position\Y = ScreenHeight()
      Bullet()\Velocity\X = Cos(Angle)*350
      Bullet()\Velocity\Y = Sin(Angle)*350
      Bullet()\Color = PeekI(?Color+Random(5)*SizeOf(Integer))
      Bullet()\Time = Time + 2000 + Random(500)
      Bullet()\Weight = 100+Random(800)
      Bullet()\Type = Random(2)
   EndIf
   
   StopDrawing()
   
   FlipBuffers()
   
ForEver

DataSection
   Color:
   Data.i $4060F0, $00F040, $F08040, $00D0F0, $F040C0, $F0F0F0
EndDataSection
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
ar-s
Enthusiast
Enthusiast
Posts: 344
Joined: Sat Oct 06, 2007 11:20 pm
Location: France

Re: Happy New Year to PureBasic people!

Post by ar-s »

Happy new year ! Bonne année à tous !

@STARGÅTE : Image
~Ar-S~
My Image Hoster for PB users
My webSite (french) with PB apps : LDVMULTIMEDIA
PB - 3.x / 5.7x / 6 - W11 x64 - Ryzen 7 3700x / #Rpi4

Code: Select all

r3p347 : 7ry : un71l d0n3 = 1
Post Reply