Scripting and AI. Flirting with the Dark Side. Damián Isla, Moonshot Games. Scripting vs. Scripting. Distinguish between scripting as technology and scripting as filthy hackery . Scripting as Filthy Hackery. “Lazy devs faking it in script instead of doing it for real in code.”
Damián Isla, Moonshot Games
Distinguish between scripting as technology and scripting as filthy hackery.
“Lazy devs faking it in script instead of doing it for real in code.”
... so what we should be asking ourselves is not “how do we avoid faking it” but “what’s the best way to fake it?”
if <X> then <Y> else <Z>
if (ai.health < health_cover_threshold)
Months of dev time saved
Kill me now
We don’t like
Systems that are performance-sensitive are generally NOT the systems where designer-expressivity is important.
And vice versa.
Lua can be used to create first-class systems from the ground up.
This is where the fun lives
Emit balloons from ears whenever player hits the elephant with the frying pan
What it gets us
Final implementation (Engineer)
Final buy-off (Design)
Design makes it work well
Engineer makes it fast
Design makes sure it still works well
Doesn’t mean you don’t need to
But does mean that the architecture can evolve more fluidly and in a more design-driven way.
The technology you keep around for next time
The stuff that makes this game unique and awesome