mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-09-06 08:20:15 +02:00
TPlunger ready. TEdgeManager v1.
This commit is contained in:
parent
1ea247e185
commit
9bd064bf15
28 changed files with 866 additions and 118 deletions
|
@ -20,7 +20,7 @@ TBall::TBall(TPinballTable* table) : TPinballComponent(table, -1, false)
|
|||
CollisionComp = nullptr;
|
||||
EdgeCollisionCount = 0;
|
||||
TimeDelta = 0.0;
|
||||
Unknown17F = 1;
|
||||
FieldFlag = 1;
|
||||
CollisionFlag = 0;
|
||||
Speed = 0.0;
|
||||
Acceleration.Y = 0.0;
|
||||
|
@ -83,8 +83,8 @@ void TBall::Repaint()
|
|||
RenderSprite,
|
||||
bmp,
|
||||
zDepth,
|
||||
bmp->Width / 2 - pos2D[0],
|
||||
bmp->Height / 2 - pos2D[1]);
|
||||
pos2D[0] - bmp->Width / 2,
|
||||
pos2D[1] - bmp->Height / 2);
|
||||
}
|
||||
|
||||
void TBall::not_again(TEdgeSegment* edge)
|
||||
|
@ -117,7 +117,7 @@ int TBall::Message(int code, float value)
|
|||
Position.Y = 0.0;
|
||||
UnknownBaseFlag2 = 0;
|
||||
CollisionFlag = 0;
|
||||
Unknown17F = 1;
|
||||
FieldFlag = 1;
|
||||
Acceleration.Y = 0.0;
|
||||
Position.Z = Offset;
|
||||
Acceleration.X = 0.0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue