comparison tests/test_font.nim @ 432:2b373a03cf64

did: small refactoring
author Sam <sam@basx.dev>
date Sat, 10 Feb 2024 15:54:25 +0700
parents 740d2f0d1264
children 36b907544820
comparison
equal deleted inserted replaced
431:e13b75bff00c 432:2b373a03cf64
20 F2: Center 20 F2: Center
21 F3: Right 21 F3: Right
22 Vertical alignment: 22 Vertical alignment:
23 F4: Top 23 F4: Top
24 F5: Center 24 F5: Center
25 F6: Bottom""", scale = 0.0002, position = newVec2f(0, 0), horizontalAlignment = Left, verticalAlignment = Top) 25 F6: Bottom""", scale = 0.0002, position = newVec2f(-0.9, -0.9), horizontalAlignment = Left, verticalAlignment = Top)
26 scene.add main_text 26 scene.add main_text
27 scene.add help_text 27 scene.add help_text
28 engine.loadScene(scene) 28 engine.loadScene(scene)
29 mixer[].loadSound("key", "key.ogg") 29 mixer[].loadSound("key", "key.ogg")
30 mixer[].setLevel(0.5) 30 mixer[].setLevel(0.5)