]> git.r.bdr.sh - rbdr/sumo/commitdiff
Pixelate the text
authorBen Beltran <redacted>
Tue, 29 May 2018 07:44:14 +0000 (02:44 -0500)
committerBen Beltran <redacted>
Tue, 26 Jun 2018 21:56:09 +0000 (16:56 -0500)
lib/systems/render_winner.js

index 53f3602865cef0db744d4bd8227a6232fff3a7a4..73f948b37be5df1d00eabbfc12c5af1abbfa5c2c 100644 (file)
@@ -97,11 +97,13 @@ export default class RenderWinnerSystem extends System {
         const message = `${winner} has won`;
         internals.winnerText = new Text(message, {
           fontFamily: 'Arial',
-          fontSize: 96,
+          fontSize: 96 * 8,
           fontWeight: 'bold',
           fill: 0xffffff,
           align: 'center'
         });
+        internals.winnerText.scale.x = 0.125;
+        internals.winnerText.scale.y = 0.125;
         internals.winnerText.position.x = Config.horizontalResolution / 2;
         internals.winnerText.position.y = Config.verticalResolution / 2;
         internals.winnerText.anchor.set(0.5);