You are browsing as a guest. Sign up (or log in) to start making projects!

Magic Chainsaw ⛓️ - fruitninja chainsaw game

  • 18 Devlogs
  • 29 Total hours

🎮 DONT SKIP AND GIVE ME A GOOD REVIEW SO I CAN GET AN XBOX!! 🎮 remake of griffpatch's game 15% but using Godot and chainsaws

Ship #1

PLEASE HELP ME WIN AN XBOX!
-----------------------------------
A game inspired by griffpatch's scratch game: 15%

In 15% you have to enter cutting mode, by pressing "e" or your mouse and then cut the shape to an area of less than 15%.

But be careful because if you fail and accidentally seperate the pointers, you lose! (all instructions can be found in the game)

Get to as high a level as you can, and the levels keep getting harder!

Good luck and have fun!

  • 18 devlogs
  • 29h
Try project → See source code →
Open comments for this post

1h 35m 40s logged

I added the pointers

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

0
0
9
Open comments for this post

4h 19m 52s logged

FINALLY FREE

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

0
0
8
Open comments for this post

1h 34m 56s logged

Devlog #9📝

Prepare

  • 🟩 Learn godot

Create basic line addition

  • 🟩 Static line on mouse enter/exit

Filter valid lines

  • 🟩 only cross two sides
  • 🟩 mouse clicking (cut mode on)
  • 🟩 mouse velocity high enough
  • 🟥 Stops counting after 0.2 seconds

Shape as polygon

  • 🟥 Rename rect / _get_rect_local() -> polygon equivalents (correct calc)
  • 🟥 Rename rect_edges / _get_rect_edges() -> polygon edge list (correct calc)
  • 🟥 Store shape as a point list
  • 🟥 Render shape from that point list (Polygon2D)
  • 🟥 Match collider to the same points (CollisionPolygon2D)
  • 🟥 _is_inside` uses Geometry2D.is_point_in_polygon
  • 🟥 Enter/exit hits use polygon edges (not just 4 rect sides)

Perform a real cut

  • 🟥 On valid swipe, get enter + exit points on the polygon
  • 🟥 Split the point list into two polygons along that cut
  • 🟥 Replace the old shape with the two new shapes (visual + collider)
  • 🟥 Remove / ignore the cut line after the split (or keep as VFX only)

Cut pieces move

  • 🟥 Put each piece on its own body (RigidBody2D or AnimatableBody2D / manual motion)
  • 🟥 On split, give each piece a velocity away from the cut (impulse / linear_velocity)
  • 🟥 Optional: add gravity / spin so pieces fall and rotate
  • 🟥 Optional: despawn pieces after a short time or off-screen

Stop here (matches “until pieces move”) 🛑

  • 🟥 One shape -> swipe -> two pieces fly apart

(i used ai to make this devlog but it just turned my attachment into markdown, that’s all)

0
0
33
Open comments for this post

5h 12m 8s logged

🌟 Learning milestone #3! ⭐

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.

Also, probably the most interesting, I learned to use GPUParticles2D (i’m building in Godot) to make fire! 🔥

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:

0
0
25
Open comments for this post

1h 8m 12s logged

I created a semi-working menu

Right now, start and quit work and are featured in the attached videos. I still have to start options but that will probably be after the core gameplay

Big thanks 🙏 to Gabl on this paltform and itch for my backgrounds, i will change them eventually.

0
0
43

Followers

Loading…