The start of a guide for components/systems for Artisans.

Josh Callebaut 2015-04-11 19:12:00 -07:00
parent 3bb9c5853e
commit 936f214faf

@ -0,0 +1,19 @@
#Component Authoring Guide
Contained within will be some tips and tricks as well as solutions for common "gotchas" that might afflict the inexperienced Artisan.
##General Tips
###Spells
Describe how to efficiently make a spell here.
###Abilities
Describe how to make an ability.
###AI
####Casting Spells
* Enemies consist of very rudimentary intelligence. Spell-based enemies (such as Shaman,) employ the component 'ai.AutoCasts' for their spell repertoire, which automatically cycles through all their available spells and attempts to cast them if they are off cooldown.
* Note that the actual logic (who they are casting on, when to cast,) is locked in the individual function defined inside the spell.
###Spawning
* If your Thang spawns another Thang (such as shooting or summoning,) you must include a "requiredThangTypes" in the config schema, as this preloads the assets required.
* If spawning in a location, be sure to check to see if the position to spawn is actually 'clear' of obstacles.
##Common Gotchas
* When creating a programmable action (such as bash or summon,) it needs to be added to the programming.Plans PlannableMethods array.