]> git.r.bdr.sh - rbdr/sumo/blobdiff - lib/systems/render_winner.js
Pixelate the text
[rbdr/sumo] / 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);