Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

Oh, and where do I need to put my own files to require? My script is gonna get real cluttered if I don't break it up.

(+1)

`require` works, just use it like you would anywhere else. Take a look at the Basic Gorillas sample app for information on how to require.

Thank you, I never would have guessed it was a GTK method. :D

for others who missed it:
$gtk.require "<path from dragon_root and filename>.rb"

Could the extension name change to optional in the require? It looks very strange to have a filename extension.

Eventually those require features will be there. But we are doing some research on auto resolution (so you don’t have to put any require statements at all). 

(1 edit) (+1)

IMHO, standardizing a /lib (or similar) and having it auto-require "/lib/*/*.rb" would make for the simplest interface.

For reusable libraries,

"../lib/"

with a

set :require_all_libs true

or manually calling the library name. Assume we copy/paste or otherwise import ../libs into /libs via a command when it's time to package.