Mercurial > games > semicongine
diff examples/E10_pong.nim @ 625:c48ceb622b27
fix: buffer update with staging buffer not correctly working
author | Sam <sam@basx.dev> |
---|---|
date | Sat, 29 Apr 2023 05:40:11 -0700 |
parents | 3f13de7d8ec4 |
children | 0644308904da |
line wrap: on
line diff
--- a/examples/E10_pong.nim Sat Apr 29 18:29:19 2023 +0700 +++ b/examples/E10_pong.nim Sat Apr 29 05:40:11 2023 -0700 @@ -21,7 +21,7 @@ level = newEntity("Level") var playerbarmesh = rect(color=barcolor) var playerbar = newEntity("playerbar", playerbarmesh) - # playerbar.transform = scale3d(barWidth, barSize, 1'f) * translate3d(0.5'f, 0'f, 0'f) + playerbar.transform = scale3d(barWidth, barSize, 1'f) * translate3d(0.5'f, 0'f, 0'f) var player = newEntity("player", playerbar) player.transform = translate3d(0'f, 0.3'f, 0'f) level.add player