diff --git a/README.md b/README.md index 850a310..15cb21d 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/assets/Arcade - Pac-Man - Miscellaneous - General Sprites.png b/assets/Arcade - Pac-Man - Miscellaneous - General Sprites.png deleted file mode 100644 index cf01851..0000000 Binary files a/assets/Arcade - Pac-Man - Miscellaneous - General Sprites.png and /dev/null differ diff --git a/assets/pacman.png b/assets/pacman.png deleted file mode 100644 index 06eee39..0000000 Binary files a/assets/pacman.png and /dev/null differ diff --git a/assets/parvati.png b/assets/parvati.png new file mode 100644 index 0000000..4587848 Binary files /dev/null and b/assets/parvati.png differ diff --git a/source/main.c b/source/main.c index 5e782cc..1ecaed2 100644 --- a/source/main.c +++ b/source/main.c @@ -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();