Ignore:
Timestamp:
Jan 26, 2011, 6:35:55 PM (10 years ago)
Author:
sam
Message:

Use monster eyes as particles for the exploding effect.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/mash.cpp

    r294 r297  
    3030
    3131private:
    32     Game *game;
     32    Emitter *emitter;
    3333    int duh, pop;
    3434    Piece *pieces[8 * 8];
     
    5151 */
    5252
    53 Mash::Mash(Game *game)
     53Mash::Mash(Emitter *emitter)
    5454  : data(new MashData()),
    5555    nextmash(NULL)
    5656{
    57     data->game = game;
    58     Ticker::Ref(game);
     57    data->emitter = emitter;
     58    Ticker::Ref(emitter);
    5959    data->duh = Sampler::Register(WAV_DUH);
    6060    data->pop = Sampler::Register(WAV_POP);
     
    156156    Sampler::Deregister(data->duh);
    157157    Sampler::Deregister(data->pop);
    158     Ticker::Unref(data->game);
     158    Ticker::Unref(data->emitter);
    159159    delete data;
    160160}
Note: See TracChangeset for help on using the changeset viewer.