Work on text

This commit is contained in:
sam-astro 2022-01-14 09:28:01 -05:00 committed by GitHub
parent 69afbf0be8
commit ec729dfa48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}