From 0341cf319a48fc271e58891d5b9df4ca0eb65666 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Tue, 22 Sep 2020 14:37:16 -0400 Subject: [PATCH] Fix documentation example, fixes #60 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 59a9963..c221e98 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,8 @@ int main() // Object methods. logo.Draw( - screenWidth / 2 - texture.getWidth() / 2, - screenHeight / 2 - texture.getHeight() / 2); + screenWidth / 2 - logo.getWidth() / 2, + screenHeight / 2 - logo.getHeight() / 2); EndDrawing(); } @@ -167,7 +167,7 @@ There are operator overrides for objects. // raylib Vector2 position = {50, 50}; Vector2 speed = {10, 10}; -postion.x += speed.x; +position.x += speed.x; position.y += speed.y; // raylib-cpp