(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /* ========================================================================= | |
| * | |
| * Components.js | |
| * This contains all components for the tutorial (ideally, components would | |
| * each live in their own module) | |
| * | |
| * Components are just data. | |
| * | |
| * ========================================================================= */ |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| require('thorny/base')('./config/default.json')(function ($) { | |
| // Grab a copy of the entity system object | |
| var entitySystem = $('thorny entity-system'); | |
| // Make the actor template | |
| entitySystem.makeEntity($.defined('template')) | |
| .addTag('actor') | |
| .addComponent('position') | |
| .addComponent('keys') | |
| .addComponent('render-2d'); |