Search found 31 matches

by benhumphreys
Sat Jan 19, 2013 6:34 am
Forum: Support and Development
Topic: Some assistance with Dynamic spawning of entities?
Replies: 2
Views: 2478

Re: Some assistance with Dynamic spawning of entities?

I don't know what 1944 is, but it seems you have a scrolling shooter. I looked briefly at your code and it seems you have library-like class called Entities that handles live entities. There's even a comment on lines 9 and 10 in main.lua that says: --format for creating entities is as follows: --nam...
by benhumphreys
Sat Jan 19, 2013 4:20 am
Forum: Support and Development
Topic: AI Behavior Communication
Replies: 2
Views: 2493

AI Behavior Communication

I'm making a game where there are a some small animals that communicate their state to each other. For instance one will communicate to others that it is feeding, or that it is running away. Then others within a certain range will change their behavio(u)r accordingly. In the real world this communic...
by benhumphreys
Mon Jan 14, 2013 7:41 am
Forum: Support and Development
Topic: HardonCollider Issues with Tiles
Replies: 6
Views: 3252

Re: HardonCollider Issues with Tiles

I've had this same problem with HardonCollider before. It's a little tricky to explain, but I think it's a combination of your player box's velocity and the resulting minimum translation vector (MTV). In one timestep your character moving right, into a box, tries to move so it is within the box. It'...
by benhumphreys
Mon Jan 07, 2013 1:22 pm
Forum: Support and Development
Topic: Synchronised audio example
Replies: 0
Views: 1997

Synchronised audio example

I put my money where my mouth is and tried some very simple music synchronisation with Löve. It seems that with no effort, stuff syncs pretty well. Even with a (very) artificial stress test that reduces the framerate to 20fps or so. I am hoping to expand this to make some procedural music in a game....
by benhumphreys
Thu Jan 03, 2013 1:25 pm
Forum: Libraries and Tools
Topic: Sliding Average snippet
Replies: 0
Views: 1973

Sliding Average snippet

I made a simple module that lets you make a sliding average within a certain limit. sliding.lua snippet I made it to be able to average the number of clicks/button presses in a window of a certain number of seconds. So every time in your update() step, you save the number of clicks that happened sin...
by benhumphreys
Thu Dec 20, 2012 11:55 pm
Forum: Support and Development
Topic: Speed penalty for using love.physics over a simpler Lua lib?
Replies: 3
Views: 2653

Re: Speed penalty for using love.physics over a simpler Lua

Why love.physics might be a bad idea for a small game with a simple set of objects, is that the programming overhead of setting up, using, and understanding love.physics is kind of large. Unless you're actively seeking to learn everything there is to learn about love, your time is better spent actu...
by benhumphreys
Wed Dec 19, 2012 7:31 am
Forum: Libraries and Tools
Topic: [library] gamera - A camera system for LÖVE - v1.0.1 is out
Replies: 64
Views: 95869

Re: [library] gamera - A camera system for LÖVE - v0.8

Superb as always :D I like the :getVisible() function!
by benhumphreys
Wed Dec 19, 2012 7:25 am
Forum: Support and Development
Topic: Can you help with Collision Callbacks
Replies: 2
Views: 2913

Re: Can you help with Collision Callbacks

Please re-read the physics tutorials on the Wiki. In your code, please note that getUserData() will return you a custom string that you should have set somewhere. So it will not equal the fixture object. Here is something I use in my own code: -- In setup: pillar = {} pillar.b = lp.newBody(world, 60...
by benhumphreys
Wed Dec 19, 2012 7:18 am
Forum: Support and Development
Topic: Speed penalty for using love.physics over a simpler Lua lib?
Replies: 3
Views: 2653

Speed penalty for using love.physics over a simpler Lua lib?

I'm doing platformer collision stuff again, and I'm torn between using love.physics and HardonCollider. My main worry is from the warning on the Wiki that says love.physics is not lightweight, and not even remotely simple to use. It's a ten-ton hammer designed for heavy-lifting (er...hammer...liftin...
by benhumphreys
Fri Dec 07, 2012 8:58 am
Forum: Support and Development
Topic: Complex and Synchronised Sound in Löve
Replies: 1
Views: 1973

Complex and Synchronised Sound in Löve

Does anyone have any experience trying to do some more advanced sound stuff in Löve? In particular: Sync multiple audio tracks? I've been listening to the Fez soundtrack again, and I love the way different layers of music fade in and out, generating unique background music. Is this kind of synchroni...