Search found 8 matches

by bitinn
Sun May 29, 2016 5:11 pm
Forum: Support and Development
Topic: Does love.filesystem.load violates App Store rules?
Replies: 3
Views: 2068

Does love.filesystem.load violates App Store rules?

I google around and the answer seem to diverge: does Apple allow dynamically loading a lua file or not? I use it really for static map data and animation frame data (eg. export from Tiled Map Editor). PS: from what I heard Apple's rule regarding lua loading changes over the year... as long as they a...
by bitinn
Wed Apr 27, 2016 8:19 am
Forum: Support and Development
Topic: Is it possible to pass custom property from conf.lua to main.lua
Replies: 2
Views: 1595

Re: Is it possible to pass custom property from conf.lua to main.lua

Ah thx, with require('conf') we can do what we want with this:

Code: Select all

-- in conf.lua
local conf = {}
conf.args = args

function love.conf (t)
  -- other config
  conf.t = t
end

return conf

-- in main.lua
local conf = require('conf')
by bitinn
Wed Apr 27, 2016 7:48 am
Forum: Support and Development
Topic: Does anyone notice when using LOVE with Git Bash on windows, print() doesn't get flush to console?
Replies: 2
Views: 1693

Does anyone notice when using LOVE with Git Bash on windows, print() doesn't get flush to console?

I notice it seems to buffer the print, and only stdout in batch until it reaches certain number of lines, or until you quit the game. Something as described here: http://superuser.com/questions/1029490/git-bash-delayed-output What could be the cause for that? On OS X I don't get this issue. (I use g...
by bitinn
Wed Apr 27, 2016 7:27 am
Forum: Support and Development
Topic: Is it possible to pass custom property from conf.lua to main.lua
Replies: 2
Views: 1595

Is it possible to pass custom property from conf.lua to main.lua

Furthermore, can we access t during love.load?

Obviously we can have a global variable, but that seems like an overkill if I just want to parse some command line arguments at conf.lua stage and pass it onto main.lua
by bitinn
Sun Apr 10, 2016 10:06 am
Forum: Support and Development
Topic: Best way to draw a rounded-corner square image with borders?
Replies: 4
Views: 2942

Best way to draw a rounded-corner square image with borders?

What's the best approach to drawing a square image with borders and rounded-corners. To give an example, from this: Screen Shot 2016-04-10 at 6.02.25 PM.png To this: Screen Shot 2016-04-10 at 6.02.34 PM.png My first thought are line mode rectangle with radius on top of the image, but what about the ...