mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2025-06-29 19:05:26 +08:00
Replaced SDLApp code in Game, no longer extends it
This commit is contained in:
@ -26,7 +26,7 @@ namespace Strawberry
|
||||
for (var a in riders)
|
||||
{
|
||||
a.MoveExactX(amount);
|
||||
a.Pushed += Point.UnitX * amount;
|
||||
a.MovedByGeometry += Point.UnitX * amount;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -47,7 +47,7 @@ namespace Strawberry
|
||||
{
|
||||
let move = (Top + amount) - a.Bottom;
|
||||
a.MoveExactY(move);
|
||||
a.Pushed += Point.UnitY * move;
|
||||
a.MovedByGeometry += Point.UnitY * move;
|
||||
}
|
||||
}
|
||||
Y += amount;
|
||||
@ -59,7 +59,7 @@ namespace Strawberry
|
||||
for (var a in riders)
|
||||
{
|
||||
a.MoveExactY(amount);
|
||||
a.Pushed += Point.UnitY * amount;
|
||||
a.MovedByGeometry += Point.UnitY * amount;
|
||||
}
|
||||
|
||||
Collidable = true;
|
||||
|
@ -45,13 +45,13 @@ namespace Strawberry
|
||||
else
|
||||
move = Left - a.Right;
|
||||
a.MoveExactX(move, scope => a.Squish, this);
|
||||
a.Pushed += Point.UnitX * move;
|
||||
a.MovedByGeometry += Point.UnitX * move;
|
||||
}
|
||||
else if (riders.Contains(a))
|
||||
{
|
||||
//Carry
|
||||
a.MoveExactX(amount);
|
||||
a.Pushed += Point.UnitX * amount;
|
||||
a.MovedByGeometry += Point.UnitX * amount;
|
||||
}
|
||||
}
|
||||
|
||||
@ -81,13 +81,13 @@ namespace Strawberry
|
||||
else
|
||||
move = Top - a.Bottom;
|
||||
a.MoveExactY(move, scope => a.Squish, this);
|
||||
a.Pushed += Point.UnitY * move;
|
||||
a.MovedByGeometry += Point.UnitY * move;
|
||||
}
|
||||
else if (riders.Contains(a))
|
||||
{
|
||||
//Carry
|
||||
a.MoveExactY(amount);
|
||||
a.Pushed += Point.UnitY * amount;
|
||||
a.MovedByGeometry += Point.UnitY * amount;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user