Okay I see now what I've done, thanks for the help. Sorry for cluttering up your post.
I was simply trying to make it so a colliding bunny would change direction if it intersected, unfortunately I left an X movement in the code.
Search found 15 matches
- Tue Jul 12, 2016 12:20 am
- Forum: Libraries and Tools
- Topic: [library] bump.lua v3.1.4 - Collision Detection
- Replies: 227
- Views: 123632
- Sun Jul 10, 2016 9:30 pm
- Forum: Libraries and Tools
- Topic: [library] bump.lua v3.1.4 - Collision Detection
- Replies: 227
- Views: 123632
Re: [library] bump.lua v3.1.4 - Collision Detection
I'm messing around with the love2d bunnymark, adding collision detection to it. According to debugging I did the latest Bunny is being correctly checked for collision, showing 0 when nothing is around, however their direction changes erratically as if they are colliding with something. The collision...
- Tue Jun 28, 2016 6:26 pm
- Forum: General
- Topic: Snaps and Linux distribution
- Replies: 8
- Views: 5602
Re: Snaps and Linux distribution
One thing I dislike with Love is downloading games based on old libraries of Love, they never work.
So I for one support this.
So I for one support this.
- Thu Apr 21, 2016 2:04 am
- Forum: Libraries and Tools
- Topic: [Library] tiny-ecs - Fast Simple Entity Component System
- Replies: 50
- Views: 92200
Re: [Library] tiny-ecs - Fast Simple Entity Component System
A question about Entity component systems, is it suggested that everything becomes an entity, including things like drawing the backgrounds? Home encompassing should they be?
- Wed Apr 06, 2016 1:27 am
- Forum: Libraries and Tools
- Topic: bump.lua - minimal collision detection lib
- Replies: 71
- Views: 43214
Re: bump.lua - minimal collision detection lib
A quick question about bump, what does getDictItemsInCellrect do? It seems like that is how collision is handled, but its quite confusing in how it does it.
- Mon Apr 04, 2016 4:11 am
- Forum: Libraries and Tools
- Topic: [library] gamera - A camera system for LÖVE - v1.0.1 is out
- Replies: 64
- Views: 95610
Re: [library] gamera - A camera system for LÖVE - v1.0.1 is out
Thanks again for the great advice. After profiling the code it does seem like bump has a ton more overhead, but I cant seem to understand why. --Create Map wholeMap = {} wholeMap[10000] = 0 rowIndex = 0 columnIndex = 0 for index=1, #mymap.layers[1].data do if columnIndex == 40 then columnIndex=0 row...
- Sat Apr 02, 2016 4:18 am
- Forum: Libraries and Tools
- Topic: [library] gamera - A camera system for LÖVE - v1.0.1 is out
- Replies: 64
- Views: 95610
Re: [library] gamera - A camera system for LÖVE - v1.0.1 is out
I've got bump drawing the visible parts of my level, though it aint pretty. :ultrahappy: --Create Map function createMap(bumpWorldRef) wholeMap = {} wholeMap[10000] = 0 rowIndex = 0 columnIndex = 0 for index=1, #mymap.layers[1].data do if columnIndex == 40 then columnIndex=0 rowIndex=rowIndex+1 end ...
- Tue Mar 29, 2016 6:48 pm
- Forum: Libraries and Tools
- Topic: [library] gamera - A camera system for LÖVE - v1.0.1 is out
- Replies: 64
- Views: 95610
Re: [library] gamera - A camera system for LÖVE - v1.0.1 is out
Wow thanks again for the help, using bump seems like a cool way of deciding what to draw. I'm going to have to try it and see what kind of performance I can get out of it.
- Sun Mar 27, 2016 8:17 pm
- Forum: Libraries and Tools
- Topic: [library] gamera - A camera system for LÖVE - v1.0.1 is out
- Replies: 64
- Views: 95610
Re: [library] gamera - A camera system for LÖVE - v1.0.1 is out
I've got a question, I cant seem to get the cam:draw(function(l,t,w,h) to properly filter non-visible elements. First problem is it gives me an error if I pass in numbers manually, like cam:draw(function(0,0,800,600); main.lua:46: <name> or '...' expected near '200'. Then if I pass in a variable wit...
- Sat Mar 26, 2016 8:04 pm
- Forum: Libraries and Tools
- Topic: [library] gamera - A camera system for LÖVE - v1.0.1 is out
- Replies: 64
- Views: 95610
Re: [library] gamera - A camera system for LÖVE - v1.0.1 is out
Awesome, that will work perfectly. Thanks for the help.