Search found 57 matches
- Thu Jun 12, 2014 6:29 pm
- Forum: Libraries and Tools
- Topic: Controllers.lua
- Replies: 4
- Views: 3522
Controllers.lua
Hi! GitHub : https://github.com/Felix-Du/Controllers.lua Download : https://raw.githubusercontent.com/Felix-Du/Controllers.lua/master/controllers.lua ReadMe : https://github.com/Felix-Du/Controllers.lua/blob/master/README.md So, this is a small project I've worked on, and I'm at this point where it ...
- Sun Feb 16, 2014 10:22 am
- Forum: Support and Development
- Topic: config.lua is being ignored
- Replies: 12
- Views: 8518
Re: config.lua is being ignored
His version is 0.9.0:
somebodyelse wrote:Code: Select all
function love.conf(t) t.identity = nil -- The name of the save directory (string) t.version = "0.9.0" -- The LÖVE version this game was made for (string) [etc.]
- Wed Feb 12, 2014 8:12 pm
- Forum: Support and Development
- Topic: How do you read from a file?
- Replies: 9
- Views: 5221
Re: How do you read from a file?
Ok, sure, if you don't plan on putting a level editor or custom levels or anything like that, it's a fine option.Azhukar wrote:No.
- Wed Feb 12, 2014 7:38 pm
- Forum: Support and Development
- Topic: Limiting FPS in 0.9.0
- Replies: 17
- Views: 6275
Re: Limiting FPS in 0.9.0
Try this:
Code: Select all
local fps = 1/30
function love.update(dt)
if (dt < fps) then
love.timer.sleep(fps-dt)
end
end
- Wed Feb 05, 2014 7:03 pm
- Forum: Support and Development
- Topic: How do you read from a file?
- Replies: 9
- Views: 5221
Re: How do you read from a file?
You can directly load lua files and use those as data storage. main.lua local level1 = love.filesystem.load("level1.lua")() print(level1[2][1]) --prints 2 level1.lua: local leveldata = { {1,1,1,1}, {2,0,0,1}, {1,1,1,1}, } return leveldata Bad idea. If the user download the file from an un...
- Mon Oct 21, 2013 9:01 am
- Forum: Support and Development
- Topic: Love2D Gradients
- Replies: 5
- Views: 4924
Re: Love2D Gradients
Yeah, the wiki method is way better than shaders here: It's faster and more reliable.
And to do a circular gradient, you can generate an image that look like a "ball" with imagedata:mapPixel(), then draw it where you want.
And to do a circular gradient, you can generate an image that look like a "ball" with imagedata:mapPixel(), then draw it where you want.
- Sat Oct 12, 2013 9:18 pm
- Forum: Support and Development
- Topic: FPS Question
- Replies: 31
- Views: 9512
Re: FPS Question
But selecting good algorithms before implementing things has nothing to do with optimizaiton. It has to do with a f-ing common sense. Well, yeah, I agree. While spritebatching boosts up your rendering and it's a common practice to use it, LuaJIT is a big time tradeoff stuff, You mean the fact that ...
- Sat Oct 12, 2013 7:37 pm
- Forum: Support and Development
- Topic: FPS Question
- Replies: 31
- Views: 9512
Re: FPS Question
His point was that the FPS you gain when optimizing aren't worth being done at the beginning of the development. Having a fun, polished but slow game is better than half a tech demo that run fast but not very polished and fun. If you really want to optimize, then you can use things like LuaJIT or Sp...
- Sat Aug 10, 2013 4:42 pm
- Forum: Support and Development
- Topic: How do I delete all contents of a table at once?
- Replies: 7
- Views: 4596
Re: How do I delete all contents of a table at once?
Code: Select all
thetable = {}
- Tue Aug 06, 2013 8:43 am
- Forum: Libraries and Tools
- Topic: Vapor - LÖVE Distribution Client
- Replies: 162
- Views: 63663
Re: Vapor - LÖVE Distribution Client
Cool.
The main window need a scrollbar. And progress bars for downloads!
The main window need a scrollbar. And progress bars for downloads!