Swapped Pacman for Parvati
This commit is contained in:
@@ -14,6 +14,6 @@ cmake --build build
|
|||||||
cd build && sudo make install
|
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 |
Binary file not shown.
|
Before Width: | Height: | Size: 772 B |
Binary file not shown.
|
After Width: | Height: | Size: 6.7 KiB |
+5
-5
@@ -118,14 +118,14 @@ int main() {
|
|||||||
SetTargetFPS(60);
|
SetTargetFPS(60);
|
||||||
|
|
||||||
//load a sprite
|
//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()) {
|
while (!WindowShouldClose()) {
|
||||||
//input
|
//input
|
||||||
if (IsKeyDown(KEY_UP)) entity.position.y -= 10.0f;
|
if (IsKeyDown(KEY_UP)) entity.position.y -= 5.0f;
|
||||||
if (IsKeyDown(KEY_DOWN)) entity.position.y += 10.0f;
|
if (IsKeyDown(KEY_DOWN)) entity.position.y += 5.0f;
|
||||||
if (IsKeyDown(KEY_LEFT)) entity.position.x -= 10.0f;
|
if (IsKeyDown(KEY_LEFT)) entity.position.x -= 5.0f;
|
||||||
if (IsKeyDown(KEY_RIGHT)) entity.position.x += 10.0f;
|
if (IsKeyDown(KEY_RIGHT)) entity.position.x += 5.0f;
|
||||||
|
|
||||||
//drawing
|
//drawing
|
||||||
BeginDrawing();
|
BeginDrawing();
|
||||||
|
|||||||
Reference in New Issue
Block a user