I recently released my game Gravitaz (https://www.lexaloffle.com/bbs/?tid=38597), and thought that it might be useful to put the particlesystem (and a modified version of the stars effect) in its own post so people can use it if they want.
It's pretty lightweight (coming in at just 92 tokens! I'm sure it can be lightened a bit more too), and can be used in a number of ways.
It is decently limited, but if you need super simple particle effects with a number of pixels, this should do the trick.
Let me know if you have any questions, the files are also available on Github (plus a slightly more powerful Love2d Version if that's what you're into) at https://github.com/KeplerElectronics/keplers_light_particlesystem
Here's a project I started about two years ago and just finally got around to finishing. It's a simple Shmup reminiscent of a Galaga or an Invaders, but with a few fun twists.
-Six enemy classes with unique weapons
If you want to download a standalone game, it can be found for free over at https://kepler-softworks.itch.io/gravitaz
I also have a short video talking about some parts of the code (enemy logic and the particle system) a bit over on my Youtube channel at https://www.youtube.com/watch?v=IVEEdj82Biw
Feel free to rip out the particle system and use it in your own projects, I really enjoyed using it, and I think with a bit of modification, it could be expanded upon for a lot of other things.
I hope you all enjoy this little game, I know I enjoyed making it, and let me know what your high scores are!
Hello, I am relatively new to Pico-8 (and programming in general) and am trying to create a "Starfield" Effect, as one would see in games like Galaga. I have created a single pixel that travels, but apart from creating many variables and basically duplicating my code, I can't see how I can multiply the pixels. I know there is an easy way, but I have not discovered it. My code is below.
x = 0 y = 0 xthing = false function _update() if xthing == false then x = rnd(128) y = 0 xthing = true end if xthing == true then y = y+1 end if y == 128 then xthing = false end end function _draw() cls() pset(x,y,7) end