PBS-KIDS/Platypus — pull request #21 by probityrules (2014-05-02 17:25:28+00:00)
Title: Render-Sprite Update

This update removes the `render-animation` and `render-image` components and provides a merged `render-sprite` component. Todd and I found that distinguishing between the need of one over the other during development wasn't always clear. I also found that rendering CreateJS bitmaps (used by `render-image`) has essentially the same performance as rendering CreateJS sprites (used by `render-animation`). This and the redundancy of most of the code between the two components seems to highlight the sense in merging these into a single sprite component for both future maintenance and simplicity on the game-maker's side of things.

Here is the list of changes in detail:
- `render-sprite` component
- accepts both `render-image` and `render-animation` definitions for ease of backwards compatibility.
- supports masks
- supports hitArea for mouse/touch input
- supports turning off event-based and/or state-based animation (both are turned on by default like `render-animation`
- entities listing `render-animation` components will use `render-sprite` and show a warning note in the console.
- entities listing `render-image` components will use `render-sprite` and show a warning note in the console.

`render-image` and `render-animation` are referenced throughout the Platypus documentation, but I have an updated version of the documentation that substitutes `render-sprite` to push if this branch is merged into the repository.