How do I…
One task a page: the code, then what you get. Every snippet runs in the empty starter.
Units & buildings
- Add a unit type
- Add a building
- Build a building: the process, start to finish
- Break a building to pieces when it is destroyed
- Add resources, supply and tech
- Add a race
- Give my game heroes
- Give a hero an innate
- Give heroes spells
- Give heroes callings
- Bring in a model and make it a unit
Abilities & effects
- Add an ability or a spell
- Make an effect of my own
- Show an effect
- Time an attack and its effects to the animation: the blow at a frame, effects and sounds at others
- Add the classic RTS rules: tomes, mana burn, runes, waygates, rocks, handicap
Items & shops
Rules & code
- Change how something behaves: which way to pick, in the order to try them
- Add an order
- Add a system
- Change a rule with a hook
- Turn one of the engine's rules off
- Keep a score
- Make a mod
Maps & editor
- Make a map and load it in code
- Reuse a group of things: prefabs
- Make an editor panel
- Search in my panel
- See units behind trees
- Pick what is drawn far away
Grass & bushes
Grass has a section of its own: the overview, every setting and a cookbook of recipes.
- Make a meadow
- Give a patch its own grass
- Hide units in tall grass
- Set grass on fire
- Stop a fire spreading
- Burn grass with an ability
- Cut or crush grass
- Make grass grow back
- Make grass follow the wind
- Leave trails in grass
- Grow grass on ground tiles
- Make bushes of my own
- Let trees burn
Missions & story
- Make a mission
- Make a cinematic
- Add a scene: menus, credits, a cinematic before the game
UI & HUD
- Add a HUD part, or replace one
- Change the plate over a unit
- Float a number over a unit
- Add a ping
- Add sounds and music