Skip to content
hugeen edited this page Oct 25, 2012 · 14 revisions

Structure

Create a file for the Skill component: /game/components/skills/skill_name.js

Add it to components loading file: /game/components.js

Your file should look like this:

define([
    'Underscore',
    'Crafty'
], function(_, Crafty) {
    
    Crafty.c("SkillName", {
        init : function() {
            this.cast = function() {

            }
        }
    });

});

Add it to the Skill Manager

Work in progress

Clone this wiki locally