Commit c12283e4 authored by Hubert Denkmair's avatar Hubert Denkmair
Browse files

better place the name tags

parent 85271204
......@@ -75,7 +75,7 @@ function Snake(headTexture, bodyTexture, name, colorScheme, world_size_x, world_
this._nameText = new PIXI.Text(name, {fill:'white'});
this._nameText.updateText();
this._nameSprite = new PIXI.Sprite(this._nameText.texture);
this._nameSprite.anchor.set(1.5);
this._nameSprite.anchor.set(1.0, 0.5);
this._headSprite = new PIXI.Sprite(headTexture);
this._headSprite.anchor.set(0.5);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment