Search found 267 matches

by Larsii30
Tue May 21, 2013 6:21 pm
Forum: Support and Development
Topic: Detect if spacebar is pushed?
Replies: 4
Views: 1595

Re: Detect if spacebar is pushed?

OT : I really won't to be the bad guy but ... https://love2d.org/forums/viewtopic.php?f=4&t=33904 https://love2d.org/forums/viewtopic.php?f=4&t=33903 https://love2d.org/forums/viewtopic.php?f=4&t=33901 https://love2d.org/forums/viewtopic.php?f=4&t=33898 Four topics since yesterday was pretty much ov...
by Larsii30
Tue May 21, 2013 5:39 pm
Forum: Support and Development
Topic: Detect if spacebar is pushed?
Replies: 4
Views: 1595

Re: Detect if spacebar is pushed?

there's one obvious way you don't tried yet. key == " " Please try to read the tutorials in the wiki and learn some lua, because some day - if you ask such basic things over and over again - nobody will anwser because he know you don't really tried to learn and understand the matter. Nobody really l...
by Larsii30
Tue May 21, 2013 4:03 pm
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1701
Views: 488789

Re: What's everyone working on? (tigsource inspired)

adnzzzzZ wrote:
Looks cool. What is the band called in the background. They are awesome ! :)
by Larsii30
Tue May 21, 2013 3:48 pm
Forum: Support and Development
Topic: for every 20 pixel draw picture?
Replies: 2
Views: 677

Re: for every 20 pixel draw picture?

every 20 - 30 pixels.. You could use one or two for loops. function love.draw() for y = 1, love.graphics.getHeight() / 20 do for x = 1, love.graphics.getWidth() / 20 do love.graphics.rectangle( "fill", 20 * x, 20 * y, 5, 5 ) end end end but this does not look like space at all :D Maybe you want to s...
by Larsii30
Mon May 20, 2013 9:57 pm
Forum: Support and Development
Topic: How to use multiple lua files?
Replies: 9
Views: 6728

Re: How to use multiple lua files?

Let's say you have a directory on your desktop with this in it : - main.lua - other.lua The "other.lua" only contains the variable text = "Hello World". now to load the "other.lua" you simple use require( "other" ). This should be done on top of your main.lua or inside the love.load() now you can ac...
by Larsii30
Mon May 20, 2013 9:26 pm
Forum: Support and Development
Topic: How to get text input and displaying it?
Replies: 4
Views: 1963

Re: How to get text input and displaying it?

ups sorry , had to correct myself.

Code: Select all


local input = ""

function love.keypressed(key)
     if key and key:match( '^[%w%s]$' ) then input = input..key end
end

by Larsii30
Mon May 20, 2013 9:21 pm
Forum: Support and Development
Topic: How to get text input and displaying it?
Replies: 4
Views: 1963

Re: How to get text input and displaying it?

You could use lua's match function. ( you can find it here: http://lua-users.org/wiki/StringLibraryTutorial ) basically do something like this : local input = "" function love.keypressed(key) if key and key:match( '^[%w%s]$' ) then input = input..key end end Then simply draw the string where you wan...
by Larsii30
Sun May 19, 2013 10:23 pm
Forum: Support and Development
Topic: Game programming help?
Replies: 6
Views: 1298

Re: Game programming help?

Much text. I got some short answers : - The Love2D wiki is your best friend, you can find there good tutorials, librarys, the documentation etc. -> use it https://www.love2d.org/wiki/Main_Page Question [1] : http://nova-fusion.com/2011/04/19/cameras-in-love2d-part-1-the-basics/ Question [2] & [3]: W...
by Larsii30
Fri Apr 19, 2013 4:51 pm
Forum: Games and Creations
Topic: Plazma Being
Replies: 121
Views: 27618

Re: Plazma Being

great news !
You deserve it .
by Larsii30
Tue Mar 19, 2013 4:56 pm
Forum: Games and Creations
Topic: Aztec Curse(A Super Crate Box like game)
Replies: 6
Views: 2299

Re: Super LÖVE box

Pretty cool :)
Extend it & keep on going !