Search found 2 matches
- Sat Jan 27, 2018 11:11 pm
- Forum: Support and Development
- Topic: Trouble figuring out collisions for array-based maps
- Replies: 3
- Views: 3136
Re: Trouble figuring out collisions for array-based maps
Thanks for the reply! I'm looking at the source for your example right now. I had a question about if I wanted to add actual bullet physics. Would I use something similar to map:getTile to handle bullet ricochet, impact, etc, or would I be better off using a dedicated library?
- Sat Jan 27, 2018 7:11 pm
- Forum: Support and Development
- Topic: Trouble figuring out collisions for array-based maps
- Replies: 3
- Views: 3136
Trouble figuring out collisions for array-based maps
I'm working on grid-based movement and can't figure out collisions for the way I generate maps. Here is the code for the game, it's basically a simple mock-up for movement and map creation: function love.load() player = { grid_x = 256, grid_y = 256, spd = 10, walkable = false } map1 = { {1, 1, 1, 1,...