comparison tests/test_font.nim @ 893:a0826956dc5c

did: small refactoring
author Sam <sam@basx.dev>
date Sat, 10 Feb 2024 15:54:25 +0700
parents 48e946f9b192
children 36b907544820
comparison
equal deleted inserted replaced
892:f2d7529b49ca 893:a0826956dc5c
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)