Search found 8 matches
- Sun Jul 06, 2014 3:41 pm
- Forum: Support and Development
- Topic: String representation of an image
- Replies: 5
- Views: 3198
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...
- Fri Jul 04, 2014 9:03 am
- Forum: General
- Topic: Game structure and maintaining local scope
- Replies: 6
- Views: 3936
Re: Game structure and maintaining local scope
"General: General discussion about LÖVE, Lua, game development, puns, and unicorns."Robin wrote:This is more a S&D thread.
- Thu Jul 03, 2014 8:27 pm
- Forum: General
- Topic: Game structure and maintaining local scope
- Replies: 6
- Views: 3936
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...
- Thu Jul 03, 2014 3:46 pm
- Forum: General
- Topic: What's everyone working on? (tigsource inspired)
- Replies: 1799
- Views: 1635498
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....
- Thu Jul 03, 2014 11:59 am
- Forum: General
- Topic: What's everyone working on? (tigsource inspired)
- Replies: 1799
- Views: 1635498
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...
- Tue Jul 01, 2014 8:09 pm
- Forum: General
- Topic: If you were to create a programming language...
- Replies: 42
- Views: 23067
Re: If you were to create a programming language...
And zero-based table indizes. Please.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:This is less annoying:Code: Select all
self.longVariable = self.longVariable + 1
Code: Select all
self.longVariable += 1
- Tue Jul 01, 2014 10:54 am
- Forum: General
- Topic: What's everyone working on? (tigsource inspired)
- Replies: 1799
- Views: 1635498
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
- Mon Jun 30, 2014 12:42 pm
- Forum: General
- Topic: What's everyone working on? (tigsource inspired)
- Replies: 1799
- Views: 1635498
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