Server Ok but not the ball

This commit is contained in:
2022-10-25 17:26:54 +02:00
parent 7a60703eb8
commit c1ba4774fc
10 changed files with 396 additions and 301 deletions
+26
View File
@@ -0,0 +1,26 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using MonoGame.Extended;
using MonoGame.Extended.Collisions;
namespace client
{
internal class ScreenBounds : IEntity
{
public IShapeF Bounds { get; }
public ScreenBounds(RectangleF rectangleF)
{
Bounds = rectangleF;
}
public void Draw(SpriteBatch spriteBatch)
{
spriteBatch.DrawRectangle((RectangleF)Bounds, Color.White, 3);
}
public void Update(GameTime gameTime) { }
public void OnCollision(CollisionEventArgs collisionInfos) { }
}
}