diff options
author | kdx <kikoodx@paranoici.org> | 2023-02-14 13:03:06 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-02-14 13:03:38 +0100 |
commit | 3d0981f8c2c53314f823b667b6ef205a3ea58ae4 (patch) | |
tree | 162ee80a3e93c47d021b60287d71af8907bff1cf /main.c | |
parent | 52ede64716175182e8369582e3dd92f78fa2407a (diff) | |
download | tzr-3d0981f8c2c53314f823b667b6ef205a3ea58ae4.tar.gz |
notice image drawing
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -27,10 +27,12 @@ int main(int argc, char **argv) printf("%s %s\n", TZR_GetResourcePath(id0), TZR_GetResourcePath(id1)); /* Main loop. */ + int x = 0; while (!TZR_ShouldQuit()) { TZR_CycleEvents(); + x = (x + 1) % 20; TZR_DrawBegin(); - TZR_DrawImage(id0, 0, 0); + TZR_DrawImage(id0, x - 10, 0); TZR_DrawEnd(); } return 0; |