Search found 6 matches

by Stepanchicko
Fri Jun 14, 2024 7:15 pm
Forum: Support and Development
Topic: [SOLVED] How to make wall collision for 3 axis instead of 2?
Replies: 3
Views: 723

Re: How to make wall collision for 3 axis instead of 2?

Nevermind! :awesome: A generous man in Telegram helped me with this issue and it works just great! Here's the final code. function collide(x1, y1, z1, w1, h1, d1, x2, y2, z2, w2, h2, d2) if not aabb(x1, y1, z1, w1, h1, d1, x2, y2, z2, w2, h2, d2) then return false, 0, 0, 0 end local vx = x1 + w1 * ....
by Stepanchicko
Fri Jun 14, 2024 2:55 pm
Forum: Support and Development
Topic: [SOLVED] How to make wall collision for 3 axis instead of 2?
Replies: 3
Views: 723

Re: How to make wall collision for 3 axis instead of 2?

I mean, I sort of figured it out, but it's kinda wanky. It doesn't work properly. function aabb(x1, y1, z1, w1, h1, d1, x2, y2, z2, w2, h2, d2) return x1 < x2+w2 and x2 < x1+w1 and y1 < y2+h2 and y2 < y1+h1 and z2 < z1+d1 and z1 < z2+d2 end function collide(x1, y1, z1, w1, h1, d1, x2, y2, z2, w2, h2...
by Stepanchicko
Fri Jun 14, 2024 2:41 pm
Forum: Support and Development
Topic: [SOLVED] How to make wall collision for 3 axis instead of 2?
Replies: 3
Views: 723

Re: Collision for 3 axis instead of 2?

Update: I figured out the aabb collision (wasn't that hard) but I'm still struggling with the actual wall collision function. :emo:
by Stepanchicko
Wed Jun 12, 2024 8:49 am
Forum: Support and Development
Topic: [SOLVED] How to make wall collision for 3 axis instead of 2?
Replies: 3
Views: 723

[SOLVED] How to make wall collision for 3 axis instead of 2?

Hi. I'm a newbie in LOVE2D, and I recently decided to make a custom 3d raycaster template for my future games. Everything in there works relatively fine, except for the fact I can't figure out how to make proper collision on the Z-axis. For context, each block in my map has these coordinate values:...
by Stepanchicko
Wed Jun 12, 2024 8:38 am
Forum: Support and Development
Topic: [SOLVED] Game freezes fatally after only 20 seconds of gameplay
Replies: 2
Views: 966

Re: Game freezes fatally after only 20 seconds of gameplay

Xugro wrote: Thu May 09, 2024 8:22 pm The problem is, that you are loading the images thegovernment.jpg and textures/normal.png every frame. Load them once in love.load() like you do with the videos and music. This fixes the freeze for me.
Thank you thank you and a million times thank you! Helped me out a lot.
by Stepanchicko
Thu May 09, 2024 4:06 pm
Forum: Support and Development
Topic: [SOLVED] Game freezes fatally after only 20 seconds of gameplay
Replies: 2
Views: 966

[SOLVED] Game freezes fatally after only 20 seconds of gameplay

I'm a newb who's working on a big project, and having thought about how big it actually is and how unexperienced I am, I decided to make a small game to get used to the love2d working sphere. I tried making a simple game (a simple 2d remake of the classic Get Crushed By A Speeding Wall) , and every...