1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-21 16:13:55 +00:00
The-Modding-Tree/docs/!general-info.md
2020-10-01 01:35:14 -04:00

1.7 KiB

The-Modding-Tree

The main way to add content is through creating layers. You can either add a layer directly in the layers object in layers.js, or declare it separately and then do "addLayer(layername, layerdata)" (good for breaking things up into smaller files). The existing layers are just examples and can be freely deleted. sampleLayers.js has even more features and comments in it. You can use those as references and a base for your own layers.

You will also need to add layer nodes to the tree in the HTML, look for where it says "Modify the tree in the table below!"

Most of the time, you won't need to dive deep into the code to create things, but you still can if you really want to.

The Modding Tree uses break_eternity.js to store large values. This means that many numbers are Decimal objects, and must be treated differently.

Table of Contents:

  • Basic layer breakdown: Breaking down the components of a layer with minimal features.
  • Layer features: Explanations of all of the different properties that you can give a layer.
  • Upgrades: How to create upgrades for a layer.
  • Milestones: How to create milestones for a layer.
  • Challenges: How to create challenges for a layer.
  • Buyables: Create rebuyable upgrades for your layer (with the option to make them respec-able). Can be used to make Enhancers or Space Buildings.
  • Customized Tab Layouts: An optional way to give your tabs a different layout. You can even create entirely new components to use.