I'm a newbie in lua and Love but I have worked my way building a simple top down physics simulation, involving balls and immovable rectangles. I'm not a newbie in programming, I have used Box2d and SDL before but wanted something quicker and easier, so don't be afraid to get technical. I want to experiment with game ai and I am building a framework for that (don't ask me how physics crept into that, they just did somehow
![Razz :P](./images/smilies/ms-razz.png)
- I decided to build a simple motion controller for my balls. I can use the setPosition() of the bodies to simply warp in from A to B but I want something better: I want a function acting as a motion controller, that accelerates the ball when it is away from the destination and then steadily slows it down to reach the spot. I eventually aim to combine that with the A* pathfinding TLpath library to effectively get around obstacles. Here's the problem: This controller function is recursive as it has to constantly refresh the body speed or forces applied to the body until a threshold is reached. It has to run in parallel with the physics simulation and has to share data with it so it can get the new positions of the body. Is this the "correct" way to go about it and if so, are lua threads suited for this purpose? I made a thread out of the function (with coroutine.create and resume) but it seems that it doesn't run in parallel with the rest...Do I also have to declare the rest as a thread? Putting a yield in there or explicitly running world:update() makes it sequential...I want it parallel goddammit
![Smile :)](./images/smilies/ms-smile.png)
- Can I debug with breakpoints while testing with love?
- Is there a way to save the game state without a lot of fuss? Simply freeze the memory on a file and then reload it like hibernate on windows? I don't really care about save game filesize
- I noticed that Love has a problem drawing some png images... I made a 32x32 arrow png but love wouldn't show it. I went on to load love-ball.png and it was fine with it. I edited love-ball.png to an arrow and ta dah, it was drawn fine. Strange
![Huuh... :huh:](./images/smilies/ms-huh.png)
- Last but not least: Is Love still actively developed? It seems things are a little slow...It would be a shame for such a pretty little framework to go dead
Thanks for bearing with me