Ignore:
Timestamp:
Aug 29, 2010, 12:51:13 AM (10 years ago)
Author:
sam
Message:

Support tilesets larger than 512x512 and switch the coordinates system to
(0,0) at the bottom left.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/input.cpp

    r176 r186  
    4343    Uint8 *keystate = SDL_GetKeyState(NULL);
    4444    int left = keystate[SDLK_d] - (keystate[SDLK_a] | keystate[SDLK_q]);
    45     int up = keystate[SDLK_s] - (keystate[SDLK_w] | keystate[SDLK_z]);
     45    int up = (keystate[SDLK_w] | keystate[SDLK_z]) - keystate[SDLK_s] ;
     46    f.x += left;
    4647    f.y += up;
    47     f.x += left;
    4848    if (left && up)
    4949    {
Note: See TracChangeset for help on using the changeset viewer.