455 |
// Friction |
// Friction |
456 |
double vv=length(v); |
double vv=length(v); |
457 |
if (vv > 0) { |
if (vv > 0) { |
458 |
V2 frictionf = v * options::FrictionFactor*floor->friction(); |
V2 frictionf = v * enigma::FrictionFactor*floor->friction(); |
459 |
frictionf /= vv; |
frictionf /= vv; |
460 |
frictionf *= pow(vv, 0.8); |
frictionf *= pow(vv, 0.8); |
461 |
f -= frictionf; |
f -= frictionf; |
800 |
lua::Init(); |
lua::Init(); |
801 |
lua::Dofile("init.lua"); |
lua::Dofile("init.lua"); |
802 |
|
|
803 |
enigma::ConserveLevel = true; |
enigma::ConserveLevel = true; |
804 |
enigma::AllowTogglePlayer = true; |
enigma::AllowTogglePlayer = true; |
805 |
enigma::ShowMoves = false; |
enigma::ShowMoves = false; |
806 |
|
enigma::Brittleness = 0.5; |
807 |
|
enigma::SlopeForce = 25.0; |
808 |
|
enigma::SlopeForce2 = 25.0; |
809 |
|
enigma::FrictionFactor = 1.0; |
810 |
} |
} |
811 |
|
|
812 |
void world::Create (int w, int h) |
void world::Create (int w, int h) |