Search found 407 matches
- Fri Feb 13, 2015 12:54 am
- Forum: Support and Development
- Topic: My image is bleeding out hardly. Need an aid.
- Replies: 5
- Views: 4517
Re: My image is bleeding out hardly. Need an aid.
At least from what I tried in the past, if you draw lines on where its int value, it actually does not always draw them, but if you offset if by 0.5 it is more likely to draw lines. I am not too sure about images though That only applies to lines and points. The int value of a pixel only points to ...
- Sat Feb 07, 2015 9:51 pm
- Forum: General
- Topic: A very quick question about Lua and variable reassignment
- Replies: 12
- Views: 7203
Re: A very quick question about Lua and variable reassignmen
Just return the desired variable in the function.
Code: Select all
x = 5
print(x) --5
x = setvar(x)
print(x) --10
function setvar(z)
z = 10
return z
end
- Thu Feb 05, 2015 4:40 pm
- Forum: Libraries and Tools
- Topic: Loveballs, A love2d Softbody lib
- Replies: 73
- Views: 42535
Re: Loveballs, A love2d Softbody lib
I'm sure you have to add math.dist yourself, see this wiki page: [wiki]General_math[/wiki]
- Tue Feb 03, 2015 10:58 am
- Forum: Support and Development
- Topic: Function Help.
- Replies: 4
- Views: 2371
Re: Function Help.
End your bullet.lua file with
and then in main.lua do
Code: Select all
return bullet
Code: Select all
local bullet = require 'bullet'
- Thu Jan 29, 2015 8:35 pm
- Forum: Support and Development
- Topic: LÖVE sometimes causes kernel panic on Mac OS X 10.8.5
- Replies: 4
- Views: 2136
Re: LÖVE sometimes causes kernel panic on Mac OS X 10.8.5
I am using LÖVE 0.9.1 already.
I didn't upgrade to OS X 10.9 because that was before LÖVE could run on it. And after that, I just never bothered. The only thing I'm worried about is it messing up software, but if you say it's safe to upgrade, then I'll try that.
I didn't upgrade to OS X 10.9 because that was before LÖVE could run on it. And after that, I just never bothered. The only thing I'm worried about is it messing up software, but if you say it's safe to upgrade, then I'll try that.
- Thu Jan 29, 2015 5:40 am
- Forum: General
- Topic: Help me please, I'm noob :S
- Replies: 9
- Views: 4247
Re: Help me please, I'm noob :S
This:
is checking if the square is at exactly -100. This probably never happens. Change it to:Byakko wrote:Code: Select all
if x = -100 then x = 900 end if y = -100 then y = 700 end
Code: Select all
if x < -100 then
x = 900
end
if y < -100 then
y = 700
end
- Thu Jan 29, 2015 4:41 am
- Forum: Support and Development
- Topic: LÖVE sometimes causes kernel panic on Mac OS X 10.8.5
- Replies: 4
- Views: 2136
LÖVE sometimes causes kernel panic on Mac OS X 10.8.5
I've had this happen only twice, so it seems to be very rare, but I've had LÖVE cause a kernel panic on switching fullscreen. Both times I didn't use the love.window functions to go fullscreen, but the 'lower left-upper right arrow'-button Mac applications show in the top right corner of the window....
- Sun Jan 25, 2015 9:17 pm
- Forum: Support and Development
- Topic: [solved] drawing with transparency
- Replies: 6
- Views: 5658
Re: drawing with transparency
The problem is indeed the transparency. When you scale the png, LÖVE interpolates all the colour channels, including alpha. So you get a blend of transparency, but the colour of the underlying pixels is black (so some pixel's colour value is 0,0,0,255). The solution lies in your image editor, make a...
- Mon Jan 19, 2015 6:21 pm
- Forum: General
- Topic: Joke/pun thread
- Replies: 40
- Views: 33531
Re: Joke/pun thread
There are 10 types of people: Those who understand binary number and those who don't. Ah, I was just about to post that. Well then, let's do the other classic instead: Why do programmers celebrate Halloween on Christmas Day and vice versa? Because 25 DEC = 31 OCT! (who uses octal nowadays anymore?)
- Sun Jan 18, 2015 9:38 pm
- Forum: Support and Development
- Topic: Question (urgent!) - a simple 2D game
- Replies: 1
- Views: 1705
Re: Question (urgent!) - a simple 2D game
Use dt.
Code: Select all
function love.update(dt)
units[1].pos = {
units[1].pos[1] + (units[1].moveDir[1] * (35 * dt)),
units[1].pos[2] + (units[1].moveDir[2] * (35 * dt))
}
end