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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/board.cpp

    r1300 r1310  
    109109    data->whip = Sampler::Register(WAV_WHIP);
    110110
    111     data->emitter = new Emitter(data->tiles, vec3(0, -0.0006f, 0));
     111    data->emitter = new Emitter(data->tiles, vec3(0, -600.f, 0));
    112112    Ticker::Ref(data->emitter);
    113113
     
    138138}
    139139
    140 void Board::TickGame(float deltams)
    141 {
    142     Entity::TickGame(deltams);
     140void Board::TickGame(float seconds)
     141{
     142    Entity::TickGame(seconds);
    143143
    144144    ivec3 buttons = Input::GetMouseButtons();
    145145
    146146    /* Do not whip too often, the sound may become annoying */
    147     data->whipdelay -= deltams;
     147    data->whipdelay -= seconds;
    148148
    149149    /* Get rid of finished mashes */
     
    250250}
    251251
    252 void Board::TickDraw(float deltams)
    253 {
    254     Entity::TickDraw(deltams);
     252void Board::TickDraw(float seconds)
     253{
     254    Entity::TickDraw(seconds);
    255255
    256256    Scene::GetDefault()->AddTile(data->board, 0, m_position, 0, vec2(1.0f));
Note: See TracChangeset for help on using the changeset viewer.