Mercurial > games > semicongine
diff examples/E10_pong.nim @ 1136:71315636ba82
did: refactor naming in tons of places
author | sam <sam@basx.dev> |
---|---|
date | Tue, 04 Jun 2024 16:51:50 +0700 |
parents | 2ba3f18e7cad |
children | 114f395b9144 |
line wrap: on
line diff
--- a/examples/E10_pong.nim Mon Jun 03 16:05:17 2024 +0700 +++ b/examples/E10_pong.nim Tue Jun 04 16:51:50 2024 +0700 @@ -17,7 +17,7 @@ var level: Scene - ballVelocity = newVec2f(1, 1).normalized * ballSpeed + ballVelocity = NewVec2f(1, 1).normalized * ballSpeed when isMainModule: var myengine = initEngine("Pong") @@ -88,7 +88,7 @@ # loose if ball.transform.col(3).x - ballSize/2 <= 0: ball.transform = scale(ballSize, ballSize, 1'f) * translate(30'f, 30'f, 0'f) - ballVelocity = newVec2f(1, 1).normalized * ballSpeed + ballVelocity = NewVec2f(1, 1).normalized * ballSpeed # bar if ball.transform.col(3).x - ballSize/2 <= barWidth: