Ignore:
Timestamp:
Apr 29, 2012, 11:55:32 PM (9 years ago)
Author:
sam
Message:

core: tick methods now use seconds, like any sane system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/deushax/debugsprite.cpp

    r1198 r1310  
    4545}
    4646
    47 void DebugSprite::TickGame(float deltams)
     47void DebugSprite::TickGame(float seconds)
    4848{
    49     Entity::TickGame(deltams);
     49    Entity::TickGame(seconds);
    5050
    51     vec3 move = deltams * vec3(Input::GetAxis(0), 0.0f);
    52     data->pos += move * vec3(0.1f * sqrtf(2.0f), .1f, 0.1f);
     51    vec3 move = seconds * vec3(Input::GetAxis(0), 0.0f);
     52    data->pos += move * vec3(100.f * sqrtf(2.0f), 100.f, 100.f);
    5353}
    5454
    55 void DebugSprite::TickDraw(float deltams)
     55void DebugSprite::TickDraw(float seconds)
    5656{
    57     Entity::TickDraw(deltams);
     57    Entity::TickDraw(seconds);
    5858
    5959    ivec3 pos = (ivec3)data->pos;
Note: See TracChangeset for help on using the changeset viewer.