Search found 4 matches
- Sun Dec 19, 2010 8:08 pm
- Forum: Support and Development
- Topic: physics - Air Resistance/Friction
- Replies: 4
- Views: 2805
Re: physics - Air Resistance/Friction
Ya, it works but horizontally and vertically. And it look funny when Player slowly fall after jump. How do this just in horizontal?
- Sun Dec 19, 2010 2:07 pm
- Forum: Support and Development
- Topic: physics - Air Resistance/Friction
- Replies: 4
- Views: 2805
physics - Air Resistance/Friction
I got a problem with physics module. There are not air resistance O.o I'm thinking how do this by another way, but it have to be depends on delta time. For every objects, program perform it: local sx, sy = body:getLinearVelocity() sx = sx * self.worldAirResistance*dt body:setLinearVelocity( sx, sy )...
- Sat Nov 20, 2010 11:25 am
- Forum: General
- Topic: Release resource
- Replies: 3
- Views: 1879
Re: Release resource
But when My program have a structure like that:
Something like that. shouldn't I take care about Menu resources? and for others any modules that I will have?
Code: Select all
Game have a modules:
1.Menu
2.Game
When Menu has left for a Game module, Menu resources need to be free.
- Sat Nov 20, 2010 10:17 am
- Forum: General
- Topic: Release resource
- Replies: 3
- Views: 1879
Release resource
Hi
I have simple question. How to release a resource?
My idea is:
It's good? I think, it doesn't release a memory.
I have simple question. How to release a resource?
My idea is:
Code: Select all
image = love.graphics.newImage("some_nice_image.jpg")
...
image = nil