Effect
Three dozen ready-made effects from the game: an explosion, smoke, sparks, a trail. Pretty and entirely harmless
mediumYou need: What a world processor is, A colour as one number
effect explosion 10 10 4 %ffaaff 0| Field | What is in it |
|---|---|
| first | which effect |
| second and third | the point in tiles |
| fourth | size or rotation — whichever this effect understands |
| fifth | the colour |
| sixth | extra data: for blockFall that is the falling block |
An effect does nothing
Section titled “An effect does nothing”It is a pure picture: no damage, no push, no change to the map. An explosion drawn by
effect explosion touches nobody — explosion is for
damage, and the two are easy to confuse.
What kinds there are
Section titled “What kinds there are”| Group | Effects |
|---|---|
| warnings | warn, cross |
| construction | placeBlock, placeBlockSpark, breakBlock, breakProp, blockFall |
| shots | shootSmall, shootBig, sparkShoot, sparkShootBig |
| smoke | smokeSmall, smokeBig, smokeColor, smokeSquare, smokeSquareBig, smokeCloud, smokePuff |
| hits | hit, hitSquare, spark, sparkBig |
| explosions | explosion, sparkExplosion, crossExplosion, wave |
| other | spawn, trail, vapor, drill, drillBig, lightBlock, bubble |
Not every effect understands every field: some take a colour, some do not; some grow in size,
some rotate. What does not apply simply has no effect — as with
setmarker.
Unofficial fan project, not affiliated with Anuke. Mindustry sprites, fonts and translations © Anuke, used under GPL-3.0; Fira Code under OFL-1.1. Site code is GPL-3.0.