Page 1 of 3

Completely new; Looking for mentor

Posted: Sat Mar 30, 2013 2:56 pm
by Nanopls
I was told to post here to get help from someone from a different forum I browse.

I am taking my first programming class next semester, and was looking for some ways to get a head start. Someone suggested using love2d to make a game as an interactive introduction to programming. Basically just looking for someone to help me or answer any questions I might have along the way.

If this is in the wrong subforum, I guess a mod can move it. Sorry in advance if that is the case.

Re: Completely new; Looking for mentor

Posted: Sat Mar 30, 2013 3:07 pm
by Faren
I got ya bro.

Re: Completely new; Looking for mentor

Posted: Sat Mar 30, 2013 3:10 pm
by Nanopls
Faren wrote:I got ya bro.
T-Thanks, man.

Re: Completely new; Looking for mentor

Posted: Sat Mar 30, 2013 3:22 pm
by Faren
Ok my friend.

https://www.love2d.org/wiki/Main_Page

This is your new bible.

Watch this, and code, yourself exactly what he codes.

watch?v=6ZBAxKoJEec&list=PL924F20B05A624D91

Some of it isn't perfect. But we can get to that later.

If you came here to learn how to code, you came to the right place.

Re: Completely new; Looking for mentor

Posted: Sat Mar 30, 2013 3:34 pm
by Nanopls
Faren wrote:Ok my friend.

https://www.love2d.org/wiki/Main_Page

This is your new bible.

Watch this, and code, yourself exactly what he codes.

watch?v=6ZBAxKoJEec&list=PL924F20B05A624D91

Some of it isn't perfect. But we can get to that later.

If you came here to learn how to code, you came to the right place.
You wouldn't happen to know if there is like a text version of most of the stuff he is teaching here would you? I much prefer text lessons to video lessons, but its not a big deal if you don't know of anything.

Re: Completely new; Looking for mentor

Posted: Sat Mar 30, 2013 3:42 pm
by Faren
Yes, check the description in his videos.

Re: Completely new; Looking for mentor

Posted: Sat Mar 30, 2013 4:28 pm
by Nanopls
In the 5th part of his video, he sets the X position of his cloud as xCloud. What in Lua designates 'xCloud' as the X postion of his cloud?

Is it that when he sets 'xCloud = 0' in the load function, this sets the variable xCloud as a value 0, then whenever he replaces another value with 'xCloud' it automatically sets it as 0?

I'm just a bit confused on how the variable definition works I suppose.

Re: Completely new; Looking for mentor

Posted: Sat Mar 30, 2013 5:13 pm
by Faren
Well, he should really be setting the x position of cloud to -300, or similar. It's just to make it offscreen. Not important. But to add to the flow of design. Like I said, he does many things badly, but we can get to that later. Because the principle of what he is doing is correct.

Re: Completely new; Looking for mentor

Posted: Sat Mar 30, 2013 5:30 pm
by Nanopls
Well I am on video 13 now, and while I think I might understand the principle behind what he is doing, it all seems unclear to me because I don't know anything about Lua. Especially the whole entities bit. I know what the entities are and how they appear in the game, but I don't understand how the base and all the different functions interact with your different entities.

Re: Completely new; Looking for mentor

Posted: Sat Mar 30, 2013 5:37 pm
by Faren
I'm sorry nanoples, but iI'vbe posted a detailed reply twice, but the admin have kindly deleted it for whatever reason.