Changeset 151


Ignore:
Timestamp:
Aug 22, 2010, 2:55:37 AM (10 years ago)
Author:
sam
Message:

Apply correct projection to the debug sprite movement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/debugsprite.cpp

    r150 r151  
    99
    1010#include <cstdio>
     11#include <cmath>
    1112
    1213#include "core.h"
     
    5152
    5253    Float2 axis = Input::GetAxis(0);
    53     data->x += 0.1f * deltams * axis.x;
     54    data->x += 0.1f * sqrtf(2.0f) * deltams * axis.x;
    5455    data->y += 0.1f * deltams * axis.y;
    5556}
Note: See TracChangeset for help on using the changeset viewer.