Page 1 of 1

New Game

Posted: Thu Mar 22, 2012 9:24 pm
by TurtleP
Hello all,

I have recently played a game, Mari0 made in LOVE. It is open source, so when I observed the code, I felt really close to it, as it is as simple-looking with certain aspects of VB (my favorite--second favorite now) programming language. (Third is Java). So, I have decided to take up LOVE. I have a few questions.

1) I have a Main.lua, so what should I put here, loading stuffs?
2) I have various towns and a player. Should they have seperate .lua files from each other and the Main.lua?

Other than that, I am sure I will come to LOVE--this even further and your community! Many thanks with responses.

~ TurtleP

Re: New Game

Posted: Thu Mar 22, 2012 10:13 pm
by josefnpat
If you are interested learning how to program Lua, check out the references on the wiki.
If you are interested in learning love, and do not know Lua, learn lua.
If you know lua, check out my tutorial.

Ss for your questions:
1) You want to put all the callbacks in main.lua. See the wiki for more information.
2) That is entirely up to you, but I would highly suggest it, and using modules in lua.
TurtleP wrote:Other than that, I am sure I will come to LOVE--this even further and your community!
I do not understand what this means, but welcome!

Re: New Game

Posted: Fri Mar 23, 2012 1:30 am
by Jasoco
josefnpat wrote:
TurtleP wrote:Other than that, I am sure I will come to LOVE--this even further and your community!
I do not understand what this means, but welcome!
It was a pun. He was making a hilarious joke. Or is it "an hilarious joke"?

Re: New Game

Posted: Fri Mar 23, 2012 10:42 am
by Ellohir
Don't worry too much about learning lua. I didn't know it when I started with löve and didn't have a problem with it. It's really easy, if you've programmed before and know three languages it won't be hard.

What I suggest very hard is to look at the wiki. Specially some of the tutorials like Hamster Ball: https://love2d.org/wiki/Tutorial:Callback_Functions or Callback Functions: https://love2d.org/wiki/Tutorial:Callback_Functions

So, if you have a problem, first look for it in the wiki, and then post it here so we can help.

Welcome! :awesome:

Re: New Game

Posted: Fri Mar 23, 2012 10:57 am
by coffee
Welcome to Love community and forum.
Since you already know some other languages you can speed a bit your Lua learning here (http://luatut.com/crash_course.html). Tutorials in WIKI are the best way to start with this framework.

Have fun around and I wish you success in development of fine projects with LOVE framework.

Re: New Game

Posted: Fri Mar 23, 2012 1:58 pm
by Nixola
Ellohir, do you like Callback Functions tutorial so much? :P
Here's the Hamster Ball tutorial: Tutorial:Hamster_Ball

Re: New Game

Posted: Fri Mar 23, 2012 3:07 pm
by Ellohir
Oops, sorry, copied two times the same link. I should proof-read everything I post, I make lots of typos :(