Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * BoxBot JS
- */
- function BoxBot() {
- var self = this;
- this.init = function()
- {
- console.log('BoxBot is alive inside "' + self.player.name + '"');
- // console.log(self.player);
- }
- this.fight = function()
- {
- // TODO: Make these dynamic according to properties (skill, stamina, etc.)
- setTimeout(function()
- {
- self.player.dodge('left');
- }, 1000, function()
- {
- setTimeout(function()
- {
- self.player.undodge();
- }, 650);
- });
- }
- }
- // EOF
Add Comment
Please, Sign In to add comment