New Game

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
TurtleP
Party member
Posts: 147
Joined: Thu Mar 22, 2012 9:20 pm
Contact:

New Game

Post by TurtleP » Thu Mar 22, 2012 9:24 pm

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

User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: New Game

Post by josefnpat » Thu Mar 22, 2012 10:13 pm

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!
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push

User avatar
Jasoco
Inner party member
Posts: 3653
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: New Game

Post by Jasoco » Fri Mar 23, 2012 1:30 am

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"?

User avatar
Ellohir
Party member
Posts: 235
Joined: Sat Oct 22, 2011 11:12 pm

Re: New Game

Post by Ellohir » Fri Mar 23, 2012 10:42 am

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:

coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: New Game

Post by coffee » Fri Mar 23, 2012 10:57 am

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.

User avatar
Nixola
Inner party member
Posts: 1944
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: New Game

Post by Nixola » Fri Mar 23, 2012 1:58 pm

Ellohir, do you like Callback Functions tutorial so much? :P
Here's the Hamster Ball tutorial: Tutorial:Hamster_Ball
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics

User avatar
Ellohir
Party member
Posts: 235
Joined: Sat Oct 22, 2011 11:12 pm

Re: New Game

Post by Ellohir » Fri Mar 23, 2012 3:07 pm

Oops, sorry, copied two times the same link. I should proof-read everything I post, I make lots of typos :(

Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests