Search found 8 matches

by sashwoopwoop
Sun Jul 06, 2014 3:41 pm
Forum: Support and Development
Topic: String representation of an image
Replies: 5
Views: 3071

Re: String representation of an image

Bumping this because slime has just told me on IRC how to turn an ImageData's string representation back into an ImageData instance. You can make use of the FFI library which allows you to call external C functions. We are making use of FFI's copy() method : local ffi = require("ffi") loca...
by sashwoopwoop
Fri Jul 04, 2014 9:03 am
Forum: General
Topic: Game structure and maintaining local scope
Replies: 6
Views: 3847

Re: Game structure and maintaining local scope

Robin wrote:This is more a S&D thread.
"General: General discussion about LÖVE, Lua, game development, puns, and unicorns."
by sashwoopwoop
Thu Jul 03, 2014 8:27 pm
Forum: General
Topic: Game structure and maintaining local scope
Replies: 6
Views: 3847

Re: Game structure and maintaining local scope

Hey, first of all I think posting this in General is fine. :) I took a look at your code and it looks nice and clean, your OOP approach is totally fine. Here's a couple of things I would change: I would move enemy / mob creation to the game class I would make `enemies` a local variable in game I wou...
by sashwoopwoop
Thu Jul 03, 2014 3:46 pm
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1791
Views: 1510242

Re: What's everyone working on? (tigsource inspired)

What kind of test case did you have sashwoopwoop? Very simple test case indeed. only like 10 out of 256 tiles were walkeable. But it won't get very complicated, so I guess / hope I won't run into performance issues there. :) I'm pretty impressed by this guy's "Trace" algorithm: http://s7....
by sashwoopwoop
Thu Jul 03, 2014 11:59 am
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1791
Views: 1510242

Re: What's everyone working on? (tigsource inspired)

There's an A*Star for Lua out there. But the problem I encountered myself at the time was that it uses a lot of processing cycles for each instance so having a lot of moving pathfinding entities kept pausing the code. So I had to modify it to use coroutines, which allowed the pathfinding code to ru...
by sashwoopwoop
Tue Jul 01, 2014 8:09 pm
Forum: General
Topic: If you were to create a programming language...
Replies: 42
Views: 21861

Re: If you were to create a programming language...

Kingdaro wrote:I love Lua's simplicity, so I wouldn't really change anything about it. The only thing I truly want is assignment operators. This is annoying:

Code: Select all

self.longVariable = self.longVariable + 1
This is less annoying:

Code: Select all

self.longVariable += 1
And zero-based table indizes. Please.
by sashwoopwoop
Tue Jul 01, 2014 10:54 am
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1791
Views: 1510242

Re: What's everyone working on? (tigsource inspired)

Thanks guys :) I'm currently struggling with the path finding and visitor movement. But it's slowly getting there. I want it to be a 6 month project, let's see how far I can get :)
by sashwoopwoop
Mon Jun 30, 2014 12:42 pm
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1791
Views: 1510242

Re: What's everyone working on? (tigsource inspired)

Working on a business management game, will probably be a mall management in the style of rollercoaster tycoon / transport tycoon :)

Image