Page 1 of 1

Need Help...

Posted: Sat Jul 20, 2013 5:31 am
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.

Re: Need Help...

Posted: Sat Jul 20, 2013 6:58 am
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

Re: Need Help...

Posted: Sat Jul 20, 2013 12:29 pm
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).

Re: Need Help...

Posted: Sat Jul 20, 2013 4:26 pm
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.

Re: Need Help...

Posted: Sun Jul 21, 2013 10:10 am
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.

Re: Need Help...

Posted: Sun Jul 21, 2013 10:15 am
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.