Search found 9 matches

by Janywer
Sun Oct 27, 2013 3:33 pm
Forum: Support and Development
Topic: ST2 Build System doesn't work
Replies: 4
Views: 2707

Re: ST2 Build System doesn't work

I finally got around to testing and got the following result: With the following build system, I'm getting a clear console without any output and no love2d window pops up :(. With the first build system, I am still getting the 'depth' - error. When I type 'love' into the command bar, it opens the pi...
by Janywer
Mon Oct 21, 2013 6:16 pm
Forum: Support and Development
Topic: ST2 Build System doesn't work
Replies: 4
Views: 2707

ST2 Build System doesn't work

When I run it via "Ctrl + B" I get the following
CoG1IJl.png
CoG1IJl.png (3.18 KiB) Viewed 280 times
The first thing means '"death' couldn't be syntactically progressed at that position"

I am using the standard build system on Windows and added the love.exe path to the PATH environment variable.
by Janywer
Tue Aug 20, 2013 8:48 pm
Forum: Libraries and Tools
Topic: Vector2 Class - OOP in love2d?
Replies: 11
Views: 10374

Re: Vector2 Class - OOP in love2d?

Note: I've just updated some parts and got an execution time which is about 30% better. :D

Check the github.
by Janywer
Tue Aug 20, 2013 8:37 pm
Forum: Libraries and Tools
Topic: Vector2 Class - OOP in love2d?
Replies: 11
Views: 10374

Re: Vector2 Class - OOP in love2d?

Anyway, you might want to "unlearn" some of the stuff you know from other languages. It's not that common OO practices from the Java/C#/python/ruby-world(s) are not possible with Lua, it's just that they are often not neccessary. First class functions, proper closures, meta-tables and duc...
by Janywer
Tue Aug 20, 2013 2:08 pm
Forum: Games and Creations
Topic: PuzzleLabyrinth
Replies: 17
Views: 9333

Re: PuzzleLabyrinth

davisdude wrote:Also: You uploaded the file wrong and it shoes the pig with hearts around it. Sounds fun, though!
Considering it works perfectly fine for me, the problem is probably on your side.
by Janywer
Tue Aug 20, 2013 1:27 pm
Forum: Games and Creations
Topic: Conquer Iceland v1
Replies: 6
Views: 3130

Re: Conquer Iceland v1

Even better, use a table instead of global variables: local random = math.random local function vopnbyrjun() vopn = {} for i = 1, 22 do vopn[i] = random(1, 2) == 1 and skjoldur or exi end end That's not such a huge difference, as the environment is just a table after all. It would (no doubt) be a b...
by Janywer
Tue Aug 20, 2013 1:13 pm
Forum: Games and Creations
Topic: PuzzleLabyrinth
Replies: 17
Views: 9333

Re: PuzzleLabyrinth

Have you ever thought about auto-generated levels? What are your thoughts on it? Also, your coding style is pretty good, no need to be ashamed or anything ;p You should just think about using table[#table + 1] instead of table.insert. A little addition: You're using a bunch of if-statements where yo...
by Janywer
Tue Aug 20, 2013 1:07 pm
Forum: Games and Creations
Topic: Conquer Iceland v1
Replies: 6
Views: 3130

Re: Conquer Iceland v1

I just looked into your code a bit and erm .. It would be far more efficent, if you'd make an use out of tables/loops. Just an example: (I'm not sure what the purpose of the function is, but I'll replicate its behaviour) Your code: function vopnbyrjun() vopn1 = math.random(1, 2) vopn2 = math.random(...
by Janywer
Tue Aug 20, 2013 12:12 pm
Forum: Libraries and Tools
Topic: Vector2 Class - OOP in love2d?
Replies: 11
Views: 10374

Vector2 Class - OOP in love2d?

Hi guys, I was aware of love2D for quite some time now but never found any time (well, to be honest I was just lazy) to get into it and perhaps make a few of games with it. However, a friend showed me some awesome stuff yesterday and I finally got myself to give it a try ;) I'm usually striving to r...