A fast, game-oriented collision detection library for Lua focused on axis-aligned rectangles.
bump.lua is a collision detection library for Lua that specializes in axis-aligned bounding box (AABB) collisions. It is designed for 2D games where performance and simplicity are key, offering fast detection and basic collision responses like sliding and bouncing. The library prevents tunneling and supports spatial queries, making it a versatile tool for game developers.
Lua game developers, particularly those using frameworks like LÖVE, Corona SDK, or Cocos2d-x, who need efficient collision detection for tile-based games, platformers, or top-down adventures.
Developers choose bump.lua for its speed, minimal memory footprint, and game-focused design. Unlike heavier physics engines, it provides just enough collision handling for most 2D game genres without unnecessary complexity.
A collision detection library for Lua
Optimized solely for axis-aligned bounding boxes, enabling high performance and simple integration, as highlighted in the README's focus on speed over realism.
Treats all items as 'bullets' to prevent fast-moving objects from passing through others, a critical feature for fast-paced games like shoot 'em ups.
Provides basic response types like slide, bounce, touch, and cross, tailored for gameplay mechanics such as platformer movement, with filter functions for customization.
Can query items by point, rectangle, or segment, doubling as a lightweight spatial database for rendering optimizations or interaction detection.
Does not support polygons, circles, or other shapes, requiring workarounds or switching to libraries like HardonCollider for complex geometries, as admitted in the README.
Moves and collides objects one at a time, which can lead to order-dependent behavior and is unsuitable for simulations requiring simultaneous interactions.
Requires explicit calls to add, remove, and update items, adding boilerplate code compared to more automated physics engines.
A curated list of amazingly awesome LÖVE libraries, resources and shiny things.
Human-readable representation of Lua tables
Lua functions geared towards gamedev
Lua functions geared towards gamedev
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.