DST coding guidelines


simplex
 Share

Recommended Posts

These are some notes specific to U&A:

The thunder tree no longer "drops" or childspawns cloud_lightning, because I made cloud_lightning a non-networked entity. We may try setting up a networked version of it as well (which would be very simple to do) and see how it goes, but my concern is it should gobble too much bandwidth due to its quick changes in light level.

local widget_spec = pkgrequire "common.containerwidgetspecs" .kettle
is the same as

local widget_spec = pkgrequire("common.containerwidgetspecs").kettle
The former is a sleek syntax which I used in some places, but since it might be confusing I thought I'd clarify.

The way of adding recipes in code/resources/recipes.lua was changed. This is not related to DST per se, I just thought our recipe list was awfully cumbersome and long. Furthermore, it makes it easier to switch to using a single atlased texture for all of our inventory images in the future, which would be a boon to graphical performance (the same could/should be done about minimap icons, but this is unrelated to the change).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share