Search found 103 matches

by YGOFreak1997
Wed Aug 08, 2012 11:29 am
Forum: Support and Development
Topic: Searching German Teacher
Replies: 11
Views: 4000

Re: Searching German Teacher

What has a metatable to do with OOP? I thought metatables only are uselful if you want to add tables together, for example... What? Metatables are the very essence of OOP in Lua, because they allow for prototyping: local t_proto = {x = 3} local t_sub = setmetatable({y = 5}, {__index = t_proto}) pri...
by YGOFreak1997
Wed Aug 08, 2012 9:03 am
Forum: Support and Development
Topic: Searching German Teacher
Replies: 11
Views: 4000

Re: Searching German Teacher

Was meinst du genau mit "OOP"? Nur die Objekte? Also das mit den Metatabellen? Dazu gäbe es auf YouTube etwaige Tutorials (Suchtwort: Lua metatables), die helfen könnten. Auch Google kann dir helfen. Oder woran scheitert's überhaupt? ^^ Ich hab das noch gar nicht probiert und würde quasi ...
by YGOFreak1997
Wed Aug 08, 2012 9:01 am
Forum: Support and Development
Topic: Searching German Teacher
Replies: 11
Views: 4000

Re: Searching German Teacher

What has a metatable to do with OOP? I thought metatables only are uselful if you want to add tables together, for example...
by YGOFreak1997
Tue Aug 07, 2012 9:53 pm
Forum: Support and Development
Topic: Searching German Teacher
Replies: 11
Views: 4000

Searching German Teacher

Hi Guys! Short Note for english users: This article is written in german, because i search, how i wrote in the head, a german "teacher". Hallo! Mein Name ist Bastian Hodapp und ich suche hier einen deutschen "Lehrer", der mir (zumindest ansatzweise) Objektorientiertes Programmier...
by YGOFreak1997
Mon Aug 06, 2012 9:20 pm
Forum: Support and Development
Topic: Generating random float variables
Replies: 7
Views: 7686

Re: Generating random float variables

Okay, that's right but that was just an example ^^ Anyway, my code works too, doesn't it?
by YGOFreak1997
Mon Aug 06, 2012 4:49 pm
Forum: Support and Development
Topic: Generating random float variables
Replies: 7
Views: 7686

Re: Generating random float variables

shootingRate = math.random() + math.random(1, 5) I'm not exactly sure what you're trying to do with this. According to the Lua manual, math.random expects integer arguments, so the second call would only return 1 or 2. With the first "math.random", i create a random float between 0 and 1 ...
by YGOFreak1997
Tue Jul 31, 2012 7:57 am
Forum: Support and Development
Topic: Generating random float variables
Replies: 7
Views: 7686

Generating random float variables

Hello Guys! I would like to know how to generate random float variables (just like the title says ^^). But not just that, i want to be able to choose how much decimal places it has. Is that possible in lua/LÖVE? I already have a litte piece of code to do this, just like: shootingRate = math.random()...
by YGOFreak1997
Wed Jul 25, 2012 10:33 am
Forum: General
Topic: does any one know when the new love verion is coming
Replies: 19
Views: 6240

Re: does any one know when the new love verion is coming

One of the features that would make LÖVE perfect for me is Video (.mp4 or such things) rendering. That would be sooo awesome...
by YGOFreak1997
Sun Jun 17, 2012 10:08 pm
Forum: Games and Creations
Topic: Octopussy's Revenge
Replies: 26
Views: 13809

Re: Octopussy's Revenge

How I already said, I will try to write the code more orderly in my next game. But I'm too lazy to rewrite my whole code, not mentioned that I am absolute noob with OOP... Well,this project can be a good start, considering you already master the logic of the game, you'll just have to redesign to fi...
by YGOFreak1997
Sun Jun 17, 2012 6:12 pm
Forum: Games and Creations
Topic: Octopussy's Revenge
Replies: 26
Views: 13809

Re: Octopussy's Revenge

This game is amazing! Glad to see you got the sine gun working nicely. Where did you get the music from? The music is from the awesome YouTuber "Bunnymajs" ^^ Link to Channel -------------------------------------------------------------- Pretty solid game. I liked the music too. Here is o...