From 979ae9de1d0b47ceba368aa472f565b7d22866e9 Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Sun, 10 Jul 2022 06:41:23 -0500 Subject: [doc] readme --- README.org | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index a8f9844..e001033 100644 --- a/README.org +++ b/README.org @@ -63,7 +63,10 @@ This defines a subclass of appliation along with some state needed for the pong **** The Window & Scale & Coordinates -Wheelwork uses SDL2 to create windows and generate events. The application includes a global scale factor that affects how the game interperets coordinates inside the window. A window, for example, can be 800x600 pixels on your computer monitor, but if the application's scale factor is 2.0, then it will only have a 400x300 logical space of coordinates. If you add a sprite that is 30x30 pixels big, it will appear twice as large, but it will still logically be 30x30. +Wheelwork uses SDL2 to create windows and generate events. The application includes a global scale factor that affects how the game interperets coordinates inside the window. A window, for example, can be 800x600 pixels on your computer monitor, but if the application's scale factor is 2.0, then it will only have a 400x300 logical space of coordinates. If you add a sprite that is 30x30 pixels big, it will appear twice as large, but it will occupy 30x30 "locial pixels". + +The =0,0= coordinate is the bottom left corner fo the game window, and the top right corner is =w,h=, the width and height of the scaled screen, respectively. + **** The Boot Method @@ -136,7 +139,6 @@ More specifically, you can use the following accessor functions on them: There are a few convenience functions also defined that use the above functions under-the-hood. I'm not including them here because the API is still stabilizing. -The =0,0= coordinate is the bottom left corner fo the game window, and the top right corner is =w,h=, the width and height of the screen, respectively. The affine units are things like: -- cgit v1.2.3