Search found 192 matches

by trubblegum
Sun Apr 01, 2012 3:29 pm
Forum: General
Topic: Text adventures & state machines (a newb approaches!)
Replies: 16
Views: 12348

Re: Text adventures & state machines (a newb approaches!)

Please don't redefine love.keypressed every update.
by trubblegum
Sat Mar 31, 2012 11:07 am
Forum: Support and Development
Topic: Animate variables at equal speeds
Replies: 11
Views: 5707

Re: Animate variables at equal speeds

People seem to set a lot of store by this "bragging rights".
My take is that - beyond gaining experience with the language - the only real benefit in writing your own lib is that you can optimize it for your own specific requirements.
by trubblegum
Sat Mar 31, 2012 12:39 am
Forum: General
Topic: Text adventures & state machines (a newb approaches!)
Replies: 16
Views: 12348

Re: Text adventures & state machines (a newb approaches!)

Hell, that confused me .. I think from now on, I might always feel a little bit bad if I don't call setPixel() from a coroutine .. but I'm not sure :cry: PS : if you're new to coding, you might like to know that you should put your states in something called a "table", and that each state ...
by trubblegum
Fri Mar 30, 2012 11:49 pm
Forum: Support and Development
Topic: Animate variables at equal speeds
Replies: 11
Views: 5707

Re: Animate variables at equal speeds

I don't like using libraries too much..i prefer doing things myself. (with some help from the forums in some cases..lol) I don't really know why..feels like cheating. lol Don't let that feeling hold you back. Using libraries means less bugs, which makes your games more stable, and means a higher de...
by trubblegum
Fri Mar 30, 2012 11:12 pm
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 169
Views: 168710

Re: Gspöt - formerly Yet another stateful GUI

They're very different breeds .. you would have to base your choice on what style of programming you prefer. For sheer ease of use with simple interfaces, quickie probably has the goods. It also has the benefit of a developer who has more experience with Lua than I do. It is very procedure-oriented,...
by trubblegum
Fri Mar 30, 2012 9:10 am
Forum: General
Topic: 2012 Märch Showcase
Replies: 52
Views: 16586

Re: 2012 Märch Showcase

Over on bgg the requirements in this area tend to go along the lines : - a thread dedicated to your project in the projects section, with description, screencap, and attachment in OP (helps prevent spamming of project-specific comments in the comp thread) - a post in the submission thread with a lin...
by trubblegum
Fri Mar 30, 2012 8:59 am
Forum: Support and Development
Topic: [solved, stupid programmer me]<eof> error - string.gmatch()
Replies: 4
Views: 4067

Re: <eof> error - using string.gmatch()

It's probably not a good idea to override the global string lib with local string. It may not actually be causing problems, but it is generally considered bad practice. Also : str:gmatch('%w+') Unfortunately, you're not even getting that far, because what should be function definitions are actually ...
by trubblegum
Thu Mar 29, 2012 9:25 pm
Forum: Support and Development
Topic: Better collision than BoundingBox
Replies: 8
Views: 3644

Re: Better collision than BoundingBox

If you're using simple bounding box collision, that's pretty much what you're stuck with, unless you can rotate your boxes, in which case it's no longer a simple bounding box method. You could define a slope as a gradient (slope = {0, 32} or whatever) along the x axis of a tile, and check your playe...
by trubblegum
Thu Mar 29, 2012 8:37 pm
Forum: Support and Development
Topic: Animate variables at equal speeds
Replies: 11
Views: 5707

Re: Animate variables at equal speeds

Pretty good analogy.
Something like :

Code: Select all

step = (final - initial) / (dt / duration)
by trubblegum
Thu Mar 29, 2012 7:02 pm
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 169
Views: 168710

Re: Gspöt - formerly Yet another stateful GUI

Big commit today .. lots of optimization, granularization, and all kinds of other stuff that ends with "-ation" :shock: - circle shapes, checkbox and feedback elements - cascading element styling - type operators - improved drawing and boundary checking etc I'll get to updating the docs ASAP