mirror of
https://github.com/sam-astro/Z-Sharp.git
synced 2025-12-11 16:22:12 +00:00
Work on text
This commit is contained in:
parent
69afbf0be8
commit
ec729dfa48
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user