diff options
Diffstat (limited to 'README.org')
-rw-r--r-- | README.org | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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: |