Swapped Pacman for Parvati

This commit is contained in:
2026-05-01 12:10:17 +10:00
parent 3827a46c8c
commit 72e2d51cb7
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -14,6 +14,6 @@ cmake --build build
cd build && sudo make install
```
## Asset Sources
## Asset Credits
https://www.spriters-resource.com/arcade/pacman/asset/52631/
"Parvati" by LogicMonkey.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 772 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

+5 -5
View File
@@ -118,14 +118,14 @@ int main() {
SetTargetFPS(60);
//load a sprite
Entity entity = loadEntity("assets/pacman.png", (Rectangle){0,0,16,16});
Entity entity = loadEntity("assets/parvati.png", (Rectangle){0,0,32,32});
while (!WindowShouldClose()) {
//input
if (IsKeyDown(KEY_UP)) entity.position.y -= 10.0f;
if (IsKeyDown(KEY_DOWN)) entity.position.y += 10.0f;
if (IsKeyDown(KEY_LEFT)) entity.position.x -= 10.0f;
if (IsKeyDown(KEY_RIGHT)) entity.position.x += 10.0f;
if (IsKeyDown(KEY_UP)) entity.position.y -= 5.0f;
if (IsKeyDown(KEY_DOWN)) entity.position.y += 5.0f;
if (IsKeyDown(KEY_LEFT)) entity.position.x -= 5.0f;
if (IsKeyDown(KEY_RIGHT)) entity.position.x += 5.0f;
//drawing
BeginDrawing();