From ec729dfa489415416ecbdae5f4bb873c47ad7b4d Mon Sep 17 00:00:00 2001 From: sam-astro <77079540+sam-astro@users.noreply.github.com> Date: Fri, 14 Jan 2022 09:28:01 -0500 Subject: [PATCH] Work on text --- Slang/script.slg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Slang/script.slg b/Slang/script.slg index 52f803a..59b3538 100644 --- a/Slang/script.slg +++ b/Slang/script.slg @@ -39,7 +39,7 @@ func Start() global Sprite lPaddle = CPP.Graphics.Sprite("./square.png", lPaddlePosition, paddleScale, 0) global Sprite rPaddle = CPP.Graphics.Sprite("./square.png", rPaddlePosition, paddleScale, 0) - // global Text scoreTextOne = CPP.Graphics.Text("score", centerOfScreen, 16, 255, 255, 255) + // global Text scoreTextOne = CPP.Graphics.Text("score", "./Arial.ttf", centerOfScreen, 20, 0, 255, 255, 255) global Vec2 ballVelocity = NVec2(ballSpeed, 0) } @@ -146,6 +146,7 @@ func HandleBallBounce() scoreOne += 1 ballSpr.position = ballPos ballVelocity = NVec2(-ballSpeed, 0) + // scoreTextOne.content = scoreOne return 0 }