Conventions¶
These are some tips and standards to follow when writing a game with Prism.
Naming¶
Prism follows PascalCase for classes and camelCase for most other things.
Actors, components, and cells should just be nouns, e.g.:
KoboldArcher
orHealthPotion
Health
orCollider
Wall
orLava
Actions should be verbs:
Attack
orMove
Everything else should have its type associated:
DeathSystem
SpellTarget
Modifying level state¶
Action:perform()
should be the primary way to modify level state, i.e. actors and cells. This
makes it easier to keep track of how the state is changing.