Advertisement
papyhardcore

Untitled

Feb 19th, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ig.module(
  2.         'game.entities.BulletPlayer'
  3.         )
  4.         .requires(
  5.                 'impact.entity'
  6.                 )
  7.         .defines(function() {
  8.  
  9.             EntityBulletPlayer = ig.Entity.extend({
  10.                 size: {x: 7, y: 12},
  11.                 collides: ig.Entity.COLLIDES.PASSIVE,
  12.                 animSheet: new ig.AnimationSheet('media/bullet_player.png', 7, 12),
  13.                
  14.                 init: function(x, y, settings) {
  15.                     this.parent(x, y, settings);
  16.                     this.addAnim('anim', 1, [0]);
  17.                 },
  18.                 update: function() {
  19.  
  20.                     this.vel.x = 0;
  21.                     this.vel.y = -400;
  22.  
  23.  
  24.  
  25.                     this.parent();
  26.  
  27.                 }
  28.  
  29.  
  30.  
  31.  
  32.             });
  33.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement