mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-19 19:17:13 -05:00
The start of a guide for components/systems for Artisans.
parent
3bb9c5853e
commit
936f214faf
1 changed files with 19 additions and 0 deletions
19
Component-Authoring-Guide.md
Normal file
19
Component-Authoring-Guide.md
Normal file
|
@ -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.
|
Loading…
Reference in a new issue