Detecting collisions in LÖVE games
Conclusion
Animations, game physics, collision detection, and player input handling should give you all the tools you need to create your own game. All you need now is an idea and a bunch of talent to make it a reality.
Have fun!
Infos
- LÖVE 2D: https://love2d.org
- Lua: https://www.lua.org/
- "A LÖVE animation primer," by Paul Brown, Linux Magazine, issue 234, May 2020, pg. 88: https://www.linux-magazine.com/Issues/2020/234/I-3-Animation
- "Implementing physics in a LÖVE game," by Paul Brown, Linux Magazine, issue 235, June 2020, pg. 90: https://www.linux-magazine.com/Issues/2020/235/Gravity
- draw: https://love2d.org/wiki/love.graphics.draw
- Repository for the code in this article: https://gitlab.com/linux-magazine/237/-/tree/master/
- Contact objects: https://love2d.org/wiki/Contact
- Body fixtures: https://love2d.org/wiki/Fixture
- body:applyForce: https://love2d.org/wiki/Body:applyForce
- body:applyLinearImpulse: https://love2d.org/wiki/Body:applyLinearImpulse
- Input callbacks: https://love2d-community.github.io/love-api/
« Previous 1 2
Buy this article as PDF
Express-Checkout as PDF
Price $2.95
(incl. VAT)
(incl. VAT)