Mercurial > games > semicongine
comparison tests/test_collision.nim @ 344:b83b3a1ccb05
fix: all tests
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 11 Sep 2023 21:31:22 +0700 |
parents | 05fb85ba97dd |
children | 00231e014642 |
comparison
equal
deleted
inserted
replaced
343:c9b34b41a5a2 | 344:b83b3a1ccb05 |
---|---|
1 import std/tables | |
2 | |
3 import semicongine | 1 import semicongine |
4 | 2 |
5 proc main() = | 3 proc main() = |
6 var scene = Scene(name: "main") | 4 var scene = Scene(name: "main") |
7 | 5 |
26 fragmentCode="""fragcolor = colorout;""", | 24 fragmentCode="""fragcolor = colorout;""", |
27 ) | 25 ) |
28 | 26 |
29 var engine = initEngine("Test collisions") | 27 var engine = initEngine("Test collisions") |
30 | 28 |
31 engine.initRenderer({"": shaderConfiguration}.toTable) | 29 engine.initRenderer({"": shaderConfiguration}) |
32 engine.addScene(scene) | 30 engine.addScene(scene) |
33 | 31 |
34 while engine.updateInputs() == Running and not engine.keyIsDown(Escape): | 32 while engine.updateInputs() == Running and not engine.keyIsDown(Escape): |
35 if engine.windowWasResized(): | 33 if engine.windowWasResized(): |
36 var winSize = engine.getWindow().size | 34 var winSize = engine.getWindow().size |