Dumb question (no priority), but why do Lua script files use a .script extension rather than .lua? I always have to do a double-take when looking at Defold projects in Github as Lua is often not listed as being used, while the Go language is prevalent due to Defolds’ game object .go files.
2 Likes
See it as a semantic name, as opposed to describing the format of the contents.
E.g just as an .ipa
and .apk
are actually both .zip files.
It’s an easy way to separate script files with defold specific functionality in them. For one, they have the life cycle functions (init, update, etc) and they also support script properties.
8 Likes
That makes sense. Thanks!
1 Like