added index.html on git
It’s not worth adding a video but I added a togglable debug mode with cmd4 to make things easier for me
picture of chainsaw man because i want to implement him in my game somehwo
this took a lot of work for some reason
there are still some bugs though and features to add
the features include the losing system (making sure that if pointers are seperated, the game ends with a loss)
the bugs include the cutting because sometimes it will cut the part that the pointers are included in, like if they are in the smaller polygon of the cut (which is the one that gets deleted)
I need to edit the code that chooses which polygon is eliminated so the ones with the pointer never get eliminated
I spent SO MUCH TIME fixing this one bug with colors just to realize that it was because my collisionbox2d’s visibility was on. this pissed me off so much and took so much work to realize it wasn’t a code issue
anyway i finally got to the cutting, worked on some nice themes, please smash that like button and don’t forget to subscribe thanks
look at my video as well, the whole cutting thing took a lot of math and effort
and i think i came up with a pretty cool name that i will probably stick with
Prepare
Create basic line addition
Filter valid lines
Shape as polygon
Perform a real cut
Cut pieces move
Stop here (matches “until pieces move”) 🛑
(i used ai to make this devlog but it just turned my attachment into markdown, that’s all)
This time, I learned a lot about player movement. This will be useful to the pointers that are going to be inside the shape that you are cutting. This took a while because there was a lot to learn about like movements but also themes and how to make a character texture look nice using shading, themes, etc.
I’m probably not going to directly use fire in my project but I plan on giving the mouse a trail, and I suspect that I can keep a GPUParticles2D node attached to the mouse’s position to keep particles following it.
Look at the video for a demonstration: