Search found 7 matches

by vadim2
Wed Oct 13, 2010 1:37 pm
Forum: Support and Development
Topic: love.graphics.translate, how to use?
Replies: 3
Views: 3887

love.graphics.translate, how to use?

Maybe someone can give an example of a function, I do like this:

Code: Select all

if love.keyboard.isDown("up") then
love.graphics.translate(0,0.2)
end
But it does not work.
by vadim2
Sun Oct 10, 2010 11:06 am
Forum: Support and Development
Topic: Any question about lua
Replies: 7
Views: 5868

Re: Any question about lua

Adamantos, tnx, I almost do not know lua, and studied it from the other examples.
by vadim2
Sun Oct 10, 2010 9:51 am
Forum: Support and Development
Topic: Any question about lua
Replies: 7
Views: 5868

Re: Any question about lua

Tnx, almost work
by vadim2
Sun Oct 10, 2010 9:24 am
Forum: Support and Development
Topic: Any question about lua
Replies: 7
Views: 5868

Re: Any question about lua

I do so: function love.load() love.graphics.setFont(16) y = {300, 280, 260} menu = {"New Game", "Score", "Exit"} text = "-->" i = 1 x = 300 x0 = 280 y0 = y.i end function love.update(dt) if love.keyboard.isDown("up") then if i>=0 then i = i - 1 end e...
by vadim2
Sun Oct 10, 2010 8:42 am
Forum: Support and Development
Topic: Any question about lua
Replies: 7
Views: 5868

Any question about lua

Hi all. Yesterday discovered love2d and now to fool around with its features (versed in them.) The question arose in Lua. There are a few constants y1, y2, ... and variable y0, which is equal to any of the constants. When you press up the variable "i" is incremented by 1 and then y0 = y.i ...