Commit 72e50191 authored by Hubert Denkmair's avatar Hubert Denkmair
Browse files

even better name tags

parent c12283e4
......@@ -72,10 +72,10 @@ function Snake(headTexture, bodyTexture, name, colorScheme, world_size_x, world_
this.world_size_y = world_size_y;
this._segments = [];
this._nameText = new PIXI.Text(name, {fill:'white'});
this._nameText = new PIXI.Text(name, {fill:'white', fontSize:14, fontWeight:"bold", dropShadow:true, dropShadowBlur:1, dropShadowDistance:2});
this._nameSprite = new PIXI.Sprite(this._nameText.texture);
this._nameSprite.anchor.set(1.0, 0.5);
this._nameSprite.anchor.set(1.2, 0.5);
this._headSprite = new PIXI.Sprite(headTexture);
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