Search found 10 matches

by noatom
Sat Feb 23, 2013 6:44 pm
Forum: Support and Development
Topic: Basic lua question
Replies: 2
Views: 1898

Basic lua question

If I have this: t[2] = { "apple", "pear", "banana" } how should I acces pear? t[2][2] or t[2].pear? Could I do this: t[2][2] = { "inception" } ? And most importantly,what would happen if i'd run a loop to go through t? what would it output when it got to t[2]?...
by noatom
Sat Feb 23, 2013 6:04 pm
Forum: Support and Development
Topic: Why use ipairs and not just #?
Replies: 8
Views: 5536

Re: Why use ipairs and not just #?

what about:

Code: Select all

t = { apple="green", orange="orange", banana="yellow" }
for k,v in pairs(t) do print(k,v) end
is there an alternative to pairs? like above?
by noatom
Sat Feb 23, 2013 4:50 pm
Forum: Support and Development
Topic: Why use ipairs and not just #?
Replies: 8
Views: 5536

Why use ipairs and not just #?

So ipairs is mostly used like this:
for i,v in ipairs(t) do print(i,v) end

Why not just do this?
for i,#t do print(i,v) end
by noatom
Thu Feb 21, 2013 4:11 pm
Forum: Support and Development
Topic: Can someone help with an example sidescroller?
Replies: 1
Views: 1347

Can someone help with an example sidescroller?

I have no ideea how to do it.How do I create the map for a sidescroller? And then how do I create physics for the ground etc...

Can someone give me an example that loads a tmx file and then creates physics too?
by noatom
Wed Feb 20, 2013 8:55 pm
Forum: Support and Development
Topic: TiledMaps questions for sidescroller
Replies: 1
Views: 1400

TiledMaps questions for sidescroller

So I'm planning to make a sidescroller,and obviously,I can't hardcode an entire level,so I need a level editor.I found the leve editor,the only problem is that I can't find a tutorial or something where it shows: -how to load the map -how to draw it -how to create the physics for the objects in that...
by noatom
Wed Feb 20, 2013 5:16 pm
Forum: Support and Development
Topic: Help with basic collision detection
Replies: 1
Views: 1373

Help with basic collision detection

So if I have 2 of these:
Image

What shape should I use for collision detection? I don't want a rectangle because it's way too restrictive...

Also,is there a tutorial on how to implement that shape?
by noatom
Mon Feb 18, 2013 5:51 pm
Forum: Support and Development
Topic: Confused by Getting started
Replies: 5
Views: 2687

Re: Confused by Getting started

ubuntu
by noatom
Mon Feb 18, 2013 5:29 pm
Forum: Support and Development
Topic: Confused by Getting started
Replies: 5
Views: 2687

Confused by Getting started

So,I created the lua script like it says: https://love2d.org/wiki/Getting_Started

But how do I turn it into a love file?!
by noatom
Sun Feb 17, 2013 10:31 pm
Forum: General
Topic: Newcomer question
Replies: 5
Views: 2662

Re: Newcomer question

Is there a tutorial like this: http://www.youtube.com/watch?v=pe0YoyHiOAg but for linux? i mean you know,here it creates the exe for windows...

Also: Why the examples provided on the website don't support fullscreen?

And does love2d have resolution independence?
by noatom
Sun Feb 17, 2013 9:54 pm
Forum: General
Topic: Newcomer question
Replies: 5
Views: 2662

Newcomer question

So,I just discovered this engine.Untill now I programmed only with directx.And,I have some questions: Can you make the same project launch a game on both linux and windows? I mean can you just take the project,run linux/window,compile and voila,you're in game? And are there any logos that will appea...