Search found 407 matches
- Tue Jul 07, 2015 7:18 pm
- Forum: Support and Development
- Topic: [Solved] Resizing Rendered Area
- Replies: 3
- Views: 1580
Re: Resizing Rendered Area
[wiki]love.graphics.scale[/wiki] should work.
- Sun Mar 29, 2015 1:51 pm
- Forum: Games and Creations
- Topic: Starship Run
- Replies: 4
- Views: 3455
Re: Starship Run
Related: https://www.love2d.org/wiki/Config_Files is confusing. It references love.conf and conf.lua at the same time but I can't edit it. What do you mean you can't edit it? conf.lua is the filename of the configuration file. love.conf is the name of the function that should be defined in that fil...
- Fri Mar 27, 2015 2:06 pm
- Forum: Support and Development
- Topic: Local Variable Availability - Multiple Callback Functions
- Replies: 8
- Views: 4857
Re: Local Variable Availability - Multiple Callback Function
Yeah, just declare the local outside any of the callbacks. Then it'll still be local to main.lua, not global, but can be accessed anywhere in that file.
Code: Select all
local var = 1
function love.draw()
love.graphics.print(var)
end
function love.keypressed(k, r)
var = var + 1
end
- Tue Mar 24, 2015 11:10 pm
- Forum: Support and Development
- Topic: Do you have the Spy?
- Replies: 5
- Views: 3426
Re: Do you have the Spy?
Just start LÖVE with no game. That's the one you mean, right?
- Sun Mar 22, 2015 11:34 pm
- Forum: Support and Development
- Topic: love.graphics.translate by whole numbers
- Replies: 3
- Views: 3000
Re: love.graphics.translate by whole numbers
Don't change the actual player's coordinates, just round them during draw.
- Thu Mar 19, 2015 8:35 am
- Forum: Support and Development
- Topic: [Solved]love.graphics.translate
- Replies: 7
- Views: 2923
Re: love.graphics.translate
It seems that for text you should use whole numbers, for drawing lines - +/- 0.5 to get sharp image. That's because lines are 1 dimensional, while pixels are 2 dimensional. If you draw a line on integer coordinates, you are effectively drawing a line in between pixels. Your screen can not display t...
- Thu Mar 19, 2015 5:51 am
- Forum: General
- Topic: Anybody developed a point-and-click adventure?
- Replies: 8
- Views: 7704
Re: Anybody developed a point-and-click adventure?
I've been thinking about it, but not done any work yet. It is completely possible of course and shouldn't be that difficult.
- Mon Mar 16, 2015 9:36 am
- Forum: Support and Development
- Topic: How do I remove drawn images & printed text?
- Replies: 21
- Views: 8712
Re: How do I remove drawn images & printed text?
Easier:arampl wrote:Code: Select all
function wait(time) love.timer.sleep(time) end
Code: Select all
local wait = love.timer.sleep
- Sat Mar 14, 2015 10:14 pm
- Forum: Support and Development
- Topic: Resetting all of Löve's callbacks?
- Replies: 14
- Views: 2891
Re: Resetting all of Löve's callbacks?
Why not do it the other way? Don't define any callbacks until the version check is passed.
- Fri Mar 13, 2015 9:17 am
- Forum: Support and Development
- Topic: Vsync not working on some computers?
- Replies: 2
- Views: 1601
Re: Vsync not working on some computers?
Yes, it depends. Some cards ignore requested vsync settings.