But that program was bad! it had performance problems, was extremely laggy during the insert of the image, in the editor and ingame, so I remade it in an actual good way, with 1041 lines of code, I present you all PB2IMG2, a program that inserts images into the Plazma Burst 2 editor.
Download: https://phscdev.com/files/PB2IMG2.exe
At first the program can be somewhat confusing, so this is a tutorial on what everything does:
EXPLANATION OF THE INTERFACE:
Spoiler: Show More
INFORMATION ON INSERT METHODS:
Spoiler: Show More
Some tips:
1 - Do not insert images that are too big, mostly if you use BASIC as the insert method, every pixel might generate a background, that means <bg x="X" y = "Y" w="X" h="Y" m="X" c="#XXXXXX" /> gets added to the map file, this for every single pixel in BASIC, and a few less depending on the image you add, this means that PB2 has a lot of data to read, a 200 by 200 pixels image means 40000 objects if you use BASIC, a 500 by 500 one means 250000.
2 - Lag is not the problem! I mean, in the level editor it will lag, but ingame it might run fine, the issue is loading times, it is a lot of text, and that might make the map unable to load in time! keep that in mind.
3 - Posterizing the image, that is making similar colors one single color, greatly increases how effective inserting the image is with other methods, mostly the TWO DIMENSIONAL ones, remember that!
4 - Disble the XML preview for big images, or if your computer is slow, since loading the XML file there can take a while.
5 - Every added field means more text! which means longer load time! X offsets, attaching, not spawning shadows and drawing in front can add a lot of text, keep that in mind! it can even double a single pixel's size.
In the future I play on updating this program, allowing the 1D and 2D simulation inserts, and the simulation preview (show how PB2 would read the XML file as an image), but that will come in version 2.1 of PB2IMG, I will also make so things can run using the GPU.
Also, if you are unsure, this does run on Linux (tested on Artix), I am unsure if this runs on Mac, any issuses let me know!
IMPORTANT NOTE: What you do with this program is up to you, if you put images that break the code of conduct and such, you can get banned, if you see anyone abusing this program or breaking the code of conduct with it, report to staff members.