From f660af1767ec6243e92f1a41c2d9636e2b88790d Mon Sep 17 00:00:00 2001 From: realtradam Date: Mon, 9 Aug 2021 08:27:22 -0400 Subject: fixed up readme --- README.mdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.mdown b/README.mdown index 6152d07..4db7221 100644 --- a/README.mdown +++ b/README.mdown @@ -21,8 +21,8 @@ Create your object as if you would create it in Ruby2D except you need to prefix ### There are also 2 helpful functions: -- `Camera.coordinate_to_worldspace(x,y)` You pass coordinates on the screen(for example where a player clicked in the window) and it will return the coordinates(in a 2d array) what the coordinates are in the world -- `Camera.coordinate_to_screenspace(x,y)` You pass in a coordinate in the world(for example an enemy in your game) and it will give you the coordinates(in a 2d array) of where on the screen this character appears. Note this function may return values that are outside of the screen if the object is not in view of the camera +- `Camera.coordinate_to_worldspace(x,y)` You pass in the coordinates on the screen(for example where a player clicked in the window) and it will return the coordinates(in an [x,y] array) what the coordinates are in the world +- `Camera.coordinate_to_screenspace(x,y)` You pass in the coordinate in the world(for example an enemy in your game) and it will give you the coordinates(in an [x,y] array) of where on the screen this character appears. Note this function may return values that are outside of the screen if the object is not in view of the camera ## How it works: -- cgit v1.2.3