Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashiq A. committed Sep 3, 2014
1 parent f1f2929 commit e9c8249
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ These are used in systems, which encapsulate all of the default behaviour (more

Hatchling currently ships with the current components:

- **DisplayComponent:** Contains a position (x/y) and appearance (character/color)
- **InputComponent:** Can respond to keyboard input and call arbitrary code.
- **BattleComponent:** Contains useful stats for combat (strength and speed, for example)
- **DisplayComponent:** Contains a position (x/y) and appearance (character/color)
- **ExperienceComponent:** Has a level, gains experience, and levels up based on a lambda function.
- **HealthComponent:** Has maximum/current health statistics, and useful functions like `is_alive?`
- **InputComponent:** Can respond to keyboard input and call arbitrary code.
- **InteractionComponent:** Indicates an entity that can interact when the player walks into it; interaction is a lambda.

Note: unlike other entity/component systems, components are actually *classes with their own functions.* This makes it easier to rebuild, reuse, and test components.

Expand Down

0 comments on commit e9c8249

Please sign in to comment.