fix more errata
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
52665f4b1a
commit
e94b59fcd2
|
@ -22,7 +22,7 @@ Let's put something in between them.
|
|||
|
||||
We have to ask ourselves: how is it that we want the game to react when we press the buttons? We want the correct paddle to move up or down. That seems like a good abstraction for a Message.
|
||||
|
||||
Create a file: **PongFE/Messages/PaddleMoveMessage.ts**
|
||||
Create a file: **PongFE/Messages/PaddleMoveMessage.cs**
|
||||
|
||||
```cs
|
||||
using Encompass;
|
||||
|
|
|
@ -51,7 +51,7 @@ namespace PongFE.Components
|
|||
|
||||
And let's add it to our paddle Entity.
|
||||
|
||||
In **PongFEGame.ts**
|
||||
In **PongFEGame.cs**
|
||||
|
||||
```cs
|
||||
...
|
||||
|
@ -93,7 +93,7 @@ Now let's tell our InputEngine to use it, and why don't we go ahead and make the
|
|||
SendMessage(
|
||||
new MotionMessage(
|
||||
playerInputEntity,
|
||||
new System.Numerics.Vector2(0, paddleSpeed * (float)dt)
|
||||
new System.Numerics.Vector2(0, -paddleSpeed * (float)dt)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue