Changeset 292


Ignore:
Timestamp:
Jan 26, 2011, 1:50:07 PM (8 years ago)
Author:
sam
Message:

Minor particles tuning, before they're properly added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/board.cpp

    r290 r292  
    7070    data->whip = Sampler::Register(WAV_WHIP);
    7171
    72     data->emitter = new Emitter(data->tiles, Float3(0, -0.0004, 0));
     72    data->emitter = new Emitter(data->tiles, Float3(0, -0.0003, 0));
    7373    Ticker::Ref(data->emitter);
    7474
     
    110110    /* Temporary test: add a few particles */
    111111    for(int n = 0; n < 10; n++)
    112         data->emitter->AddParticle(110 + 20 * (rand() % 7),
    113                Float3(rand() % 500, rand() % 500, 20),
    114                Float3(1.e-3f * (rand() % 500 - 250),
    115                       1.e-3f * (rand() % 500 - 250), 0));
     112    {
     113        int id = 110 + 20 * (rand() % 7);
     114        Float3 pos(rand() % 500, rand() % 500, 20);
     115        Float3 vel(1.e-3f * (rand() % 100 - 50),
     116                   1.e-3f * (rand() % 50 + 50), 0);
     117        data->emitter->AddParticle(id, pos, vel);
     118    }
    116119
    117120    Int2 mouse = Input::GetMousePos();
Note: See TracChangeset for help on using the changeset viewer.