1 decade ago by riemaxi
Hi guys
this is the code for one of my entities:
When using wm, the entity Xyz shows up properly in the menu, but when I add it to a layer, then only a border with the name xyz in the upper left corner is shown. No image is shown.
Of course, when I run the game, the entity is not there (or can not be seen)
Any idea?
this is the code for one of my entities:
ig.module( 'game.entities.xyz' ) .requires( 'impact.entity' ) .defines(function(){ EntityXyz = ig.Entity.extend({ size: {x:86, y:145}, init: function(x, y, settings) { // Call the parent constructor this.parent(x, y, settings); this.animSheet = new ig.AnimationSheet( 'media/xyz.png'); } }); });
When using wm, the entity Xyz shows up properly in the menu, but when I add it to a layer, then only a border with the name xyz in the upper left corner is shown. No image is shown.
Of course, when I run the game, the entity is not there (or can not be seen)
Any idea?