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

render text in higher resolution, for better zoom results

parent 920b3dd8
...@@ -24,9 +24,10 @@ function Snake(headTexture, segmentPool, name, colorScheme, world_size_x, world_ ...@@ -24,9 +24,10 @@ function Snake(headTexture, segmentPool, name, colorScheme, world_size_x, world_
this._headSegment.SetPosition(-100000, -100000); this._headSegment.SetPosition(-100000, -100000);
this._headSegment.AddSprites(this.Container); this._headSegment.AddSprites(this.Container);
this._nameText = new PIXI.Text(name, {fill:'white', fontSize:14, fontWeight:"bold", dropShadow:true, dropShadowBlur:1, dropShadowDistance:2}); this._nameText = new PIXI.Text(name, {fill:'white', fontSize:64, fontWeight:"bold", dropShadow:true, dropShadowBlur:3, dropShadowDistance:6});
this._nameText.updateText(); this._nameText.updateText();
this._nameSprite = new PIXI.Sprite(this._nameText.texture); this._nameSprite = new PIXI.Sprite(this._nameText.texture);
this._nameSprite.scale.set(0.2, 0.2);
this._nameSprite.anchor.set(1.2, 0.5); this._nameSprite.anchor.set(1.2, 0.5);
this.Container.addChild(this._nameSprite); this.Container.addChild(this._nameSprite);
......
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