Mercurial > games > semicongine
comparison tests/test_font.nim @ 1137:a4aa9f374d44
did: more renaming
| author | sam <sam@basx.dev> |
|---|---|
| date | Tue, 04 Jun 2024 20:51:22 +0700 |
| parents | 71315636ba82 |
| children | 02e1d2658ff5 |
comparison
equal
deleted
inserted
replaced
| 1136:71315636ba82 | 1137:a4aa9f374d44 |
|---|---|
| 32 mixer[].SetLevel(0.5) | 32 mixer[].SetLevel(0.5) |
| 33 | 33 |
| 34 while engine.UpdateInputs() and not KeyIsDown(Escape): | 34 while engine.UpdateInputs() and not KeyIsDown(Escape): |
| 35 var t = cpuTime() | 35 var t = cpuTime() |
| 36 main_text.color = NewVec4f(sin(t) * 0.5 + 0.5, 0.15, 0.15, 1) | 36 main_text.color = NewVec4f(sin(t) * 0.5 + 0.5, 0.15, 0.15, 1) |
| 37 if WindowWasResized(): | |
| 38 var winSize = engine.GetWindow().size | |
| 39 | 37 |
| 40 # add character | 38 # add character |
| 41 if main_text.text.len < main_text.maxLen - 1: | 39 if main_text.text.len < main_text.maxLen - 1: |
| 42 for c in [Key.A, Key.B, Key.C, Key.D, Key.E, Key.F, Key.G, Key.H, Key.I, | 40 for c in [Key.A, Key.B, Key.C, Key.D, Key.E, Key.F, Key.G, Key.H, Key.I, |
| 43 Key.J, Key.K, Key.L, Key.M, Key.N, Key.O, Key.P, Key.Q, Key.R, Key.S, | 41 Key.J, Key.K, Key.L, Key.M, Key.N, Key.O, Key.P, Key.Q, Key.R, Key.S, |
