Search found 18 matches

by weitnow
Thu Aug 24, 2017 5:20 pm
Forum: General
Topic: I dont get what __index does :(
Replies: 5
Views: 4081

Re: I dont get what __index does :(

thank you grump....your answer is much appreciated....i think i understand now. I like lua a lot...especially with love2d....but the funny thing is, I originally choose lua because of it's simplicity (since i am a beginning hobby programmer, with not a lot expirience). eventhough i get slowly the co...
by weitnow
Thu Aug 24, 2017 4:13 pm
Forum: General
Topic: I dont get what __index does :(
Replies: 5
Views: 4081

Re: I dont get what __index does :(

Thank you raidho36 for your qualified answer.... Until now i always used metamethods like this: tableA = {} tableB= {} setmetatable(tableA, tableB) tableB.__index = {x = 10} print(tableA.x) which of course prints 10....tableA has no x but the metamethod __index a was invoked whiched caused it to pri...
by weitnow
Thu Aug 24, 2017 1:14 pm
Forum: General
Topic: I dont get what __index does :(
Replies: 5
Views: 4081

I dont get what __index does :(

hello together I try to improve in lua. Therefore i am looking at some sourcecode and try to understand, how it works. Right now I don't understand the sourcecode of: http://hump.readthedocs.io/en/latest/camera.html at the beginning of the code it has: local camera = {} camera.__index = camera i do ...
by weitnow
Thu Aug 17, 2017 8:06 am
Forum: General
Topic: Try out my course: Lua Programming and Game Development with LÖVE
Replies: 4
Views: 8211

Re: Try out my course: Lua Programming and Game Development with LÖVE

Nice...i just purchased it and will start with the course today :)


edit: Your course looks good, question: will there be a more advanced course in the future? game with more complex game-logic, more oop-technics, entity-system etc?
by weitnow
Mon Jul 24, 2017 7:52 am
Forum: General
Topic: I god a bold question, can somebody enhance my code and/or give me hints to code better?
Replies: 6
Views: 4731

Re: I god a bold question, can somebody enhance my code and/or give me hints to code better?

hello together I found a good tutorial for my problem. I realized, that my previous code was somehow badly organized. The main problem was, that when the project grows, the code will become messy. I found a good tutorial: https://www.youtube.com/channel/UCSs-Hz8pP4PcKRQCdHuAxAg There is a video abou...
by weitnow
Fri Jul 21, 2017 4:53 pm
Forum: General
Topic: I god a bold question, can somebody enhance my code and/or give me hints to code better?
Replies: 6
Views: 4731

Re: I god a bold question, can somebody enhance my code and/or give me hints to code better?

Thank you ivan...I apreciate the time you took to help me. I have the feeling, I start understandig how I should do it. I will try your concept and will post my updated code. Have a great day :)
by weitnow
Fri Jul 21, 2017 2:49 pm
Forum: General
Topic: I god a bold question, can somebody enhance my code and/or give me hints to code better?
Replies: 6
Views: 4731

Re: I god a bold question, can somebody enhance my code and/or give me hints to code better?

Hello CaptainMaeistrom, hello ivan Thank you both for your response :) @CaptainMaeistrom: Hm, i guess i am looking for general advice. I try to split up my code in diffrent lua-files. If the project grows, that is still manageble. But to be honest, i have no Idea, how to split up the code in the bes...
by weitnow
Fri Jul 21, 2017 1:49 pm
Forum: General
Topic: I god a bold question, can somebody enhance my code and/or give me hints to code better?
Replies: 6
Views: 4731

I god a bold question, can somebody enhance my code and/or give me hints to code better?

Hello together My name is christian. I am swiss, so forgive me my bad englisch. I got a bold question. Since I am a kid, it was my dream to code a own game. I have no education in computer-science/programming. I just started to teach myself python some months ago, then changed to java/libgdx. It bec...
by weitnow
Thu Feb 02, 2017 8:04 pm
Forum: Games and Creations
Topic: Metanet Hunter CD (IT'S ON STEAM)
Replies: 21
Views: 22434

Re: Metanet Hunter CD (IT'S ON STEAM)

Ah sorry, dident see that...in this case i'll purchase there. Is there any particular reason why on steam is only the windows version available?
by weitnow
Thu Feb 02, 2017 6:12 pm
Forum: Games and Creations
Topic: Metanet Hunter CD (IT'S ON STEAM)
Replies: 21
Views: 22434

Re: Metanet Hunter CD (IT'S ON STEAM)

I would like to buy it...is there any plan to provide linux or at least osx-support? I have no windows :(

PS: Game looks good, nice work.