Mercurial > games > semicongine
comparison examples/E04_input.nim @ 535:21c276c0a968
fix: stuff, add working pong
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 06 Feb 2023 23:32:45 +0700 |
parents | 5d457f7bb624 |
children | fdd80220b5ff |
comparison
equal
deleted
inserted
replaced
534:e1b60a09d7dc | 535:21c276c0a968 |
---|---|
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 ) |