Mercurial > games > semicongine
comparison examples/E04_input.nim @ 74:779607656b12
fix: stuff, add working pong
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 06 Feb 2023 23:32:59 +0700 |
parents | 53ccd6090116 |
children | 8ce634aa6ea6 |
comparison
equal
deleted
inserted
replaced
73:17c12b79faaa | 74:779607656b12 |
---|---|
108 rowpos[0] = 0 | 108 rowpos[0] = 0 |
109 rowpos[1] += keyDimension + keyGap * (if firstRow: 2'f32 else: 1'f32) | 109 rowpos[1] += keyDimension + keyGap * (if firstRow: 2'f32 else: 1'f32) |
110 firstRow = false | 110 firstRow = false |
111 | 111 |
112 | 112 |
113 proc globalUpdate(engine: var Engine, dt: float32) = | 113 proc globalUpdate(engine: var Engine, t, dt: float32) = |
114 uniforms.projection.value = ortho[float32]( | 114 uniforms.projection.value = ortho[float32]( |
115 0'f32, float32(engine.vulkan.frameSize.x), | 115 0'f32, float32(engine.vulkan.frameSize.x), |
116 0'f32, float32(engine.vulkan.frameSize.y), | 116 0'f32, float32(engine.vulkan.frameSize.y), |
117 0'f32, 1'f32, | 117 0'f32, 1'f32, |
118 ) | 118 ) |