Search found 4 matches

by sabino
Sun Nov 02, 2014 3:15 pm
Forum: General
Topic: LOVE2D Lua Performance
Replies: 3
Views: 2607

LOVE2D Lua Performance

Hi! I'm new here, and I found on the Internet this website about the LOVE game engine. It seems easy and very nice, and it uses Lua for scripting. I know that languages like C++ and Go are very fast because they are compiled. Other languages such as Lua, Java and Python, are interpreted. LOVE2D expo...
by sabino
Tue Jul 01, 2014 4:16 pm
Forum: Support and Development
Topic: Using Loop to animate Sprites
Replies: 3
Views: 1078

Using Loop to animate Sprites

Hi there,
I've just learnt how to animate sprite using love.graphics.newQuad(),
I've also read how to use a loop to animate sprites,
the example is:

for i=1,8 do
love.graphics.newQuad((i-1)*32, 0, 32, 32, 256, 32)
end

What does i=1,8 mean?
Thank you :awesome: :awesome:
by sabino
Fri Jun 20, 2014 11:26 am
Forum: Support and Development
Topic: Drawing in LÖVE
Replies: 1
Views: 802

Drawing in LÖVE

Hi all, reading my LÖVE reference ebook, I've found an example to draw a circle: love.graphics.circle("fill", 200, 300, 50, 50) "fill" means that the circle is full colored; 200 is the position X 300 is the position Y 50 is the length of the radius and the 2nd "50" is t...
by sabino
Thu Jun 19, 2014 4:15 pm
Forum: Support and Development
Topic: I don't understand the using of RGB in LOVE
Replies: 6
Views: 2170

I don't understand the using of RGB in LOVE

Hi,
I've just bought an e-book titled "LOVE for Lua Game Programming".
I've read some page and I found this code as example:

love.graphics.setColor(0,0,0,225)
love.graphics.setBackgroundColor(255,153,0)

Why the first line has 4 numbers (RGB is identified by only 3 numbers)?
Thank you!