diff options
author | kdx <kikoodx@paranoici.org> | 2023-04-17 19:44:04 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-04-17 19:44:04 +0200 |
commit | ecdf718d2dc6fd56425078804ec302ce806567a3 (patch) | |
tree | 1957f185ca7c9b2994608360a323a0889531824b | |
parent | 98c3b7c522c356d96cde61d73949ab885b47022d (diff) | |
download | px-ecdf718d2dc6fd56425078804ec302ce806567a3.tar.gz |
fancy shit
-rw-r--r-- | src/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -30,6 +30,7 @@ main(void) int x = 8, y = 8; + pxCls(0); while (!TZR_ShouldQuit()) { TZR_CycleEvents(); x -= TZR_IsKeyDown(SDL_SCANCODE_A); @@ -40,10 +41,12 @@ main(void) pxPal(); pxSpal(); pxPalt(); - pxCls(1); + for (int i = 0; i < PX_WIDTH * PX_HEIGHT; i++) + if (pxbuf[i]) + pxbuf[i] -= 1; pxRectfill(112, 112, x, y, 10); - pxRect(16, 16, x, y, 11); + pxRect(16, 16, x, y, 15); pxSpr(&spr, x, y); |