Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ig.module(
- 'game.entities.BulletPlayer'
- )
- .requires(
- 'impact.entity'
- )
- .defines(function() {
- EntityBulletPlayer = ig.Entity.extend({
- size: {x: 7, y: 12},
- collides: ig.Entity.COLLIDES.PASSIVE,
- animSheet: new ig.AnimationSheet('media/bullet_player.png', 7, 12),
- init: function(x, y, settings) {
- this.parent(x, y, settings);
- this.addAnim('anim', 1, [0]);
- },
- update: function() {
- this.vel.x = 0;
- this.vel.y = -400;
- this.parent();
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement