Need Help...

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Lozmos
Prole
Posts: 1
Joined: Sat Jul 20, 2013 5:21 am

Need Help...

Post by Lozmos »

Ok, here's my story. I do Javascripting a lot with Unity but there is a 2d game in Unity I just am not able to make using the 3d game engine. So, I tried out the game 'NotPacman' once before and I realised the game engine behind that would let me make the game I wanted which, of course, led me to Love2d. I soon learnt how do some very basic lua programming with some print words. When I try to do the advanced Lua stuff, it is quite a pain. I, mean I pretty much know how to do great javascripting, photoshop, 3d etc.., I've even made a lot of sprites needed for the game. So my question is, how do I learn to do code an advanced level and work my way up from the bottom.
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Need Help...

Post by Davidobot »

Lozmos wrote:Ok, here's my story. I do Javascripting a lot with Unity but there is a 2d game in Unity I just am not able to make using the 3d game engine. So, I tried out the game 'NotPacman' once before and I realised the game engine behind that would let me make the game I wanted which, of course, led me to Love2d. I soon learnt how do some very basic lua programming with some print words. When I try to do the advanced Lua stuff, it is quite a pain. I, mean I pretty much know how to do great javascripting, photoshop, 3d etc.., I've even made a lot of sprites needed for the game. So my question is, how do I learn to do code an advanced level and work my way up from the bottom.
You can find some pretty good tutorials on LOVE2D on YouTube, here is a channel where you can find some of them:
http://www.youtube.com/user/sockmunkeedevelopmen/videos
You can also check out the wiki:
http://www.love2d.org/wiki/Main_Page
And be sure to check out the Projects and Demos forum: viewforum.php?f=5
You can find a lot of interesting projects and look into other people's code to learn new things! Most importantly, have fun with programming! :D
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Need Help...

Post by Robin »

Lozmos wrote:So my question is, how do I learn to do code an advanced level and work my way up from the bottom.
Practice, practice and keep practising. The Lua reference manual might help you a bit, as might Programming in Lua (Note: this is the first edition, available for free online. It is written for an older version of Lua, but still remains largely relevant. The second edition is about the version of Lua LÖVE uses).
Help us help you: attach a .love.
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: Need Help...

Post by raidho36 »

Pretty much what robin says minus practice part. You should read PiL and Lua Gems, after that you'll have comprehensive Lua knowledge to abandon "improving your skill" part. Just create a game and for whatever technical question arises consult the manual.
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: Need Help...

Post by Plu »

I've found Lua to be very much like Javascript. You should be able to pick it up fairly quickly if you read the PiL (as linked above) and from there on you can just try stuff out and see how it works. The best is to just make a bunch of samples that do small parts of what you need so that you have all the basics worked out, and then try and stitch it all together.
User avatar
Daniel Eakins
Citizen
Posts: 99
Joined: Thu Jul 18, 2013 9:14 pm
Location: France

Re: Need Help...

Post by Daniel Eakins »

Checking existing codes that look like what you want to do really helps IMO. There's this set of examples on the wiki which covers tons of basic stuff: https://love2d.org/wiki/examples.love . You can check it, and then search or google the corresponding commands on the wiki or the forum for more information, etc.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 3 guests