Crafty.c("Shot", { init: function() { this.requires('Mouse'); }, shot: function() { this.bind('Click', function() { alert('clicked'); }); } });