Search found 259 matches

by OmarShehata
Fri Mar 07, 2014 3:00 pm
Forum: Libraries and Tools
Topic: Debug draw for box2d physics World
Replies: 30
Views: 11264

Re: Debug draw for box2d physics World

You shouldn't need to do love.graphics.setColor(255, 255, 255) before every image you draw. Yes, only the ones you intend to be drawn with the same color as in the image file. Think of it this way. Always taking care to keep a default state for the system removes a lot of headaches. If you have 200...
by OmarShehata
Mon Mar 03, 2014 4:01 pm
Forum: Support and Development
Topic: Problems with "dynamic" bodies - love.physics
Replies: 6
Views: 1027

Re: Problems with "dynamic" bodies - love.physics

It's laggy because you are creating hundred and hundres of shapes a bodies in your draw loop, instead of creating the bodies inside the draw function create them in the load function. It lagged before I made the dynamic body. And what about the actual problem? They're the same problem. Dynamic or n...
by OmarShehata
Fri Feb 14, 2014 12:04 pm
Forum: Support and Development
Topic: Is love.joystick consistent? And other miscellaneous ?'s.
Replies: 8
Views: 1265

Re: Is love.joystick consistent? And other miscellaneous ?'s

Is there an easy way to figure out which number corresponds to which button? Am I missing something? Right now the numbers starting with 0 correspond to the following buttons in order: A, B, X, Y, LB, RB, LS, RS, Start, Back, Guide, Up, Down, Left, Right Which seems pretty normal and not random. So...
by OmarShehata
Sun Feb 09, 2014 9:38 pm
Forum: Support and Development
Topic: Calling Mac users for a quick test!
Replies: 5
Views: 684

Re: Calling Mac users for a quick test!

Have you tested it fused or are we just talking theoretically? I wanted to know if it will actually create the directory or give me "Permission denied". Yeah, I tested it unfused and it gave me "module 'lfs' not found", then I tested it with the "--fused" command line option and it gave me "main.lu...
by OmarShehata
Sun Feb 09, 2014 1:46 am
Forum: Support and Development
Topic: Calling Mac users for a quick test!
Replies: 5
Views: 684

Re: Calling Mac users for a quick test!

It works, but only when the game is fused to love.app (it becomes fused when the .love is in the love.app/Contents/Resources/ folder, or if you pass --fused as a command-line option via the terminal.) LÖVE's custom search path for Lua-C dynamic libraries only looks directly outside the game's save ...
by OmarShehata
Sun Feb 09, 2014 1:24 am
Forum: Support and Development
Topic: Calling Mac users for a quick test!
Replies: 5
Views: 684

Calling Mac users for a quick test!

I've been making a lot of threads about this lately but I reaaally want this to work. I've attached a .love, all it does is place lfs.so in your save directory, then attempt to require it and use it to create a directory called TestDir . For testing purposes, and since there's no console to print st...
by OmarShehata
Fri Feb 07, 2014 2:55 pm
Forum: Support and Development
Topic: require lfs.so on OS X?
Replies: 2
Views: 572

Re: require lfs.so on OS X?

bartbes wrote:(Note that you can easily extract there from the .love by doing a write/read combo.)
Oh! That's a neat idea! As always, thanks a lot bartbes!
by OmarShehata
Fri Feb 07, 2014 2:08 pm
Forum: Support and Development
Topic: require lfs.so on OS X?
Replies: 2
Views: 572

require lfs.so on OS X?

So instead of having to go through the trouble of building LuaFileSystem from the source for Mac, I managed to find a ready built lfs.so file here https://github.com/twlevelup/lu-lua/blob/master/vendor/lib/lua/5.1/lfs.so So far so good..now where do I put it? With a windows lfs.dll I can throw it in...
by OmarShehata
Thu Feb 06, 2014 12:35 pm
Forum: Support and Development
Topic: os.execute("mkdir Dir") not working on Mac
Replies: 9
Views: 1277

Re: os.execute("mkdir Dir") not working on Mac

May I suggest creating a symbolink link to the folder in question, probably when the game installs, as an alternative? That way you can use love.filesystem and at the same time your users have it easy. I am liking this idea. But how would I go about doing that? I'm guessing the installer would have...
by OmarShehata
Wed Feb 05, 2014 10:29 pm
Forum: Support and Development
Topic: os.execute("mkdir Dir") not working on Mac
Replies: 9
Views: 1277

Re: os.execute("mkdir Dir") not working on Mac

I know os.execute is highly system dependent, but all it does is run a command as if you typed it in the terminal/cmd right? So if the exact same command works when I type it in the terminal on Mac, it should theoretically work from Lua as well, if I understand correctly. And Nixola, I could very we...