This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ixe:mapmaking:custom [2024/12/09 15:59] – expounded Karsten75 | ixe:mapmaking:custom [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
* image (typically a JPEG or PNG file) - how the unit looks | * image (typically a JPEG or PNG file) - how the unit looks | ||
* description (JSON file) - what components and behaviors go with the unit | * description (JSON file) - what components and behaviors go with the unit | ||
- | * behavior ([[IRPL]]file - what the unit does (if the unit is decorative, this is optional). In some instances, a pre-defined behavior may be all that is needed. These pre-defined behaviors can be described by a [[controller]] - a controller can be specified in the JSON, making the script [[IRPL]] file unnecessary. | + | * behavior ([[ixe: |
A more complex unit can have multiple components, where each component is named in the base or root JSON, and each component can be made up the same as the root or base component. | A more complex unit can have multiple components, where each component is named in the base or root JSON, and each component can be made up the same as the root or base component. | ||
Line 10: | Line 10: | ||
===== Unit Image ===== | ===== Unit Image ===== | ||
- | The unit image is an image file, at time of writing | + | The unit image is an image file, at time of writing we do not yet have a list of what image formats are supported |
You want a program that can make pixel art png files, including deleting pixels so you can have non-rectangular shapes. | You want a program that can make pixel art png files, including deleting pixels so you can have non-rectangular shapes. | ||
Line 22: | Line 22: | ||
{ | { | ||
" | " | ||
- | " | + | " |
- | " | + | " |
" | " | ||
" | " | ||
- | " | + | |
- | " | + | " |
+ | " | ||
+ | " | ||
+ | " | ||
+ | | ||
" | " | ||
- | ], | + | |
- | + | " | |
- | " | + | { |
- | { | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | " |
- | " | + | } |
- | } | + | ], |
- | ], | + | |
} | } | ||
</ | </ | ||
Line 49: | Line 52: | ||
- " | - " | ||
- " | - " | ||
- | - " | + | - " |
+ | - " | ||
+ | - " | ||
+ | - " | ||
+ | - " | ||
All that remains is to add the parts; below the " | All that remains is to add the parts; below the " | ||
Line 61: | Line 68: | ||
<tabbox Lathe> | <tabbox Lathe> | ||
< | < | ||
+ | |||
+ | <tabbox Freeze Cannon> | ||
+ | < | ||
<tabbox Sentinel Cannon> | <tabbox Sentinel Cannon> | ||
Line 70: | Line 80: | ||
<tabbox Sanddropper> | <tabbox Sanddropper> | ||
< | < | ||
+ | |||
+ | <tabbox Maker> | ||
+ | < | ||
</ | </ | ||
Save the file name as what you want your ship to be named in code (make sure to use the extension .json) and place that file with the image from the first step. | Save the file name as what you want your ship to be named in code (make sure to use the extension .json) and place that file with the image from the first step. | ||
+ | |||
+ | ===== Global JSON ===== | ||
+ | To add a global script to your map - one that will run without the need of a unit - you need to add a global.json file to the root of your project with the following content | ||
+ | |||
+ | <file json global.json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | {" | ||
+ | ] | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== Scripting ===== | ||
===== Final Touches ===== | ===== Final Touches ===== | ||
Line 81: | Line 108: | ||
And with that, congratulations! | And with that, congratulations! | ||
+ | |||
+ | |||
+ | To see how all of the base game ships are constructed, | ||