QB64 Phoenix Edition
Particle Life - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Prolific Programmers (https://qb64phoenix.com/forum/forumdisplay.php?fid=26)
+---- Forum: a740g (https://qb64phoenix.com/forum/forumdisplay.php?fid=56)
+---- Thread: Particle Life (/showthread.php?tid=1022)

Pages: 1 2


Particle Life - a740g - 10-31-2022

Enjoy this little digital fidget toy. Big Grin

Hit the Random button for fun!

A special thank you to @TerryRitchie for ideas that I got from his Graphic Line Input Library & Button Library.

The project is hosted on GitHub.

[Image: Screenshot-2024-10-15-014127.png]

[Image: screenshot1.png]

[Image: screenshot2.png]

[Image: screenshot3.png]

[Image: screenshot4.png]


RE: Particle Life - Coolman - 10-31-2022

Particle-Life does not compile under linux with an error message in relation to MessageBox. I guess it's only for windows !

I tested SpaceShooter2K on linux. amazing. great job porting...

I saw that you intend to maintain InForm. excellent news. I never considered using it before because without support a development software is useless...


RE: Particle Life - a740g - 10-31-2022

(10-31-2022, 03:34 PM)Coolman Wrote: Particle-Life does not compile under linux with an error message in relation to MessageBox. I guess it's only for windows !

Let me check that. It should work. Which version of QB64 or QB64-PE are you using?

Quote:I saw that you intend to maintain InForm. excellent news. I never considered using it before because without support a development software is useless...


Yeah. I am doing this along with George. To be honest, George is going to be the primary maintainer of the fork. I'll take care of any PE related compatibility and fixes.


RE: Particle Life - Coolman - 10-31-2022

I use version 3.30 of qb64pe

here is the log :

In file included from internal/c/qbx8.cpp:2546:
internal/c/../temp8/maindata.txt: In function ‘void QBMAIN(void*)’:
internal/c/../temp8/maindata.txt:81:47: error: ‘MessageBox’ was not declared in this scope
81 | FUNC_MESSAGEBOX=(CUSTOMCALL_FUNC_MESSAGEBOX*)&MessageBox;
| ^~~~~~~~~~
make: *** [Makefile:413: internal/c/qbx8.o] Error 1


RE: Particle Life - a740g - 10-31-2022

(10-31-2022, 04:19 PM)Coolman Wrote: I use version 3.30 of qb64pe

here is the log :

In file included from internal/c/qbx8.cpp:2546:
internal/c/../temp8/maindata.txt: In function ‘void QBMAIN(void*)’:
internal/c/../temp8/maindata.txt:81:47: error: ‘MessageBox’ was not declared in this scope
  81 | FUNC_MESSAGEBOX=(CUSTOMCALL_FUNC_MESSAGEBOX*)&MessageBox;
      |                                              ^~~~~~~~~~
make: *** [Makefile:413: internal/c/qbx8.o] Error 1

Thanks for the log. I pushed a fix. Please try again.

https://github.com/a740g/Particle-Life/archive/refs/heads/master.zip


RE: Particle Life - bplus - 10-31-2022

Wow what a massive project!

Someone is evolving evolution? ;-))

Reminds me of STx generation of planet or polar region, a Christmas or 2 ago.


RE: Particle Life - TerryRitchie - 10-31-2022

(10-31-2022, 02:47 PM)a740g Wrote: Enjoy this digital fidget toy https://github.com/a740g/Particle-Life Big Grin

https://github.com/a740g/Particle-Life/archive/refs/heads/master.zip

A special thank you to @TerryRitchie for ideas that I got from his Graphic Line Input Library & Button Library.

You're welcome Smile


RE: Particle Life - mnrvovrfc - 10-31-2022

(10-31-2022, 03:48 PM)a740g Wrote:
(10-31-2022, 03:34 PM)Coolman Wrote: Particle-Life does not compile under linux with an error message in relation to MessageBox. I guess it's only for windows !

Let me check that. It should work. Which version of QB64 or QB64-PE are you using?
:
Works fine for me on Manjaro MATE, QB64PE v3.1. This is pretty cool, thank you for this!

Hmmm it must have been modified within six hours, I see.

Strange error message. The "libqb.cpp" function definitions should be private, because there is a redefinition of "MessageBox" for Linux which uses either "xmessage" or "zenity". For me, anyway, I was able to fix it so it uses "zenity" but not all penguins come with that one pre-installed.


RE: Particle Life - james2464 - 10-31-2022

I'm getting a syntax error on line 425

I'm on Windows 10, using QB64 PE 3.3.0

I'm not sure if it's because of where the files are located or if it's something else...

Edit:  Duh, I see the previous line is 

$If VERSION > 3.3 then


Okay so I guess I'll just wait for advice at this point


RE: Particle Life - Coolman - 11-01-2022

(10-31-2022, 11:20 PM)james2464 Wrote: I'm getting a syntax error on line 425

I'm on Windows 10, using QB64 PE 3.3.0

I'm not sure if it's because of where the files are located or if it's something else...

Edit:  Duh, I see the previous line is 

$If VERSION > 3.3 then


Okay so I guess I'll just wait for advice at this point

same thing. i commented on line 425 and it works. interesting code. thanks for sharing...