Search found 7 matches
- Thu Oct 14, 2010 2:40 pm
- Forum: Games and Creations
- Topic: "28 Brains Later" - Devmania 2010 OverNight contest game
- Replies: 7
- Views: 5563
Re: "28 Brains Later" - Devmania 2010 OverNight contest game
Where can I look at nLove?
- Wed Oct 13, 2010 2:16 pm
- Forum: Support and Development
- Topic: love.graphics.translate, how to use?
- Replies: 3
- Views: 4223
- Wed Oct 13, 2010 1:37 pm
- Forum: Support and Development
- Topic: love.graphics.translate, how to use?
- Replies: 3
- Views: 4223
love.graphics.translate, how to use?
Maybe someone can give an example of a function, I do like this:
But it does not work.
Code: Select all
if love.keyboard.isDown("up") then
love.graphics.translate(0,0.2)
end
- Sun Oct 10, 2010 11:06 am
- Forum: Support and Development
- Topic: Any question about lua
- Replies: 7
- Views: 6222
Re: Any question about lua
Adamantos, tnx, I almost do not know lua, and studied it from the other examples.
- Sun Oct 10, 2010 9:51 am
- Forum: Support and Development
- Topic: Any question about lua
- Replies: 7
- Views: 6222
Re: Any question about lua
Tnx, almost work
- Sun Oct 10, 2010 9:24 am
- Forum: Support and Development
- Topic: Any question about lua
- Replies: 7
- Views: 6222
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...
- Sun Oct 10, 2010 8:42 am
- Forum: Support and Development
- Topic: Any question about lua
- Replies: 7
- Views: 6222
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 ...