Mercurial > games > semicongine
diff examples/E10_pong.nim @ 1139:114f395b9144
did: finish refactoring and updated all tests accordingly
author | sam <sam@basx.dev> |
---|---|
date | Sat, 08 Jun 2024 14:58:25 +0700 |
parents | 71315636ba82 |
children | 5934c5615f13 |
line wrap: on
line diff
--- a/examples/E10_pong.nim Tue Jun 04 22:08:48 2024 +0700 +++ b/examples/E10_pong.nim Sat Jun 08 14:58:25 2024 +0700 @@ -23,9 +23,9 @@ var myengine = initEngine("Pong") var player = rect(color = barcolor, width = barWidth, height = barSize) - player.material = matDef.initMaterialData(name = "player material") + player.material = matDef.InitMaterialData(name = "player material") var ball = circle(color = ballcolor) - ball.material = matDef.initMaterialData(name = "player material") + ball.material = matDef.InitMaterialData(name = "player material") level = Scene(name: "scene", meshes: @[ball, player]) const