hotfixes
This commit is contained in:
parent
a6544a20f2
commit
6afd91b0b7
4 changed files with 4 additions and 4 deletions
|
@ -95,7 +95,7 @@ namespace ZoFo.GameCore
|
||||||
if ((update as UpdateGameObjectCreated).GameObjectType == "EntittyForAnimationTests")
|
if ((update as UpdateGameObjectCreated).GameObjectType == "EntittyForAnimationTests")
|
||||||
gameObjects.Add(new EntittyForAnimationTests(new Vector2(100, 100)));
|
gameObjects.Add(new EntittyForAnimationTests(new Vector2(100, 100)));
|
||||||
if ((update as UpdateGameObjectCreated).GameObjectType == "Player")
|
if ((update as UpdateGameObjectCreated).GameObjectType == "Player")
|
||||||
gameObjects.Add(new Player(new Vector2(100, 100)));
|
gameObjects.Add(new Player(new Vector2(500, 100)));
|
||||||
|
|
||||||
(gameObjects.Last() as Entity).SetIdByClient((update as UpdateGameObjectCreated).IdEntity);
|
(gameObjects.Last() as Entity).SetIdByClient((update as UpdateGameObjectCreated).IdEntity);
|
||||||
//var a = Assembly.GetAssembly(typeof(GameObject));
|
//var a = Assembly.GetAssembly(typeof(GameObject));
|
||||||
|
|
|
@ -26,7 +26,7 @@ public class Player : LivingEntity
|
||||||
//InputWeaponRotation = new Vector2(0, 0);
|
//InputWeaponRotation = new Vector2(0, 0);
|
||||||
//InputPlayerRotation = new Vector2(0, 0);
|
//InputPlayerRotation = new Vector2(0, 0);
|
||||||
|
|
||||||
collisionComponent.stopRectangle = new Rectangle(0, 0, 10, 10);
|
collisionComponent.stopRectangle = new Rectangle(0, 0, 100, 100);
|
||||||
graphicsComponent.ObjectDrawRectangle = new Rectangle(0,0,100,100);
|
graphicsComponent.ObjectDrawRectangle = new Rectangle(0,0,100,100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,7 @@ public abstract class GameObject
|
||||||
}
|
}
|
||||||
public void DrawDebugRectangle(SpriteBatch spriteBatch, Rectangle _rectangle, Nullable<Color> color = null)
|
public void DrawDebugRectangle(SpriteBatch spriteBatch, Rectangle _rectangle, Nullable<Color> color = null)
|
||||||
{
|
{
|
||||||
if (color is null) color = new Color(1, 0, 0, 0.25f);
|
if (color is null) color = new Color(1, 0, 0, 0.1f);
|
||||||
if (color.Value.A == 255) color = new Color(color.Value, 0.25f);
|
if (color.Value.A == 255) color = new Color(color.Value, 0.25f);
|
||||||
spriteBatch.Draw(debugTexture,
|
spriteBatch.Draw(debugTexture,
|
||||||
new Rectangle((_rectangle.X - GraphicsComponent.CameraPosition.X) * GraphicsComponent.scaling,
|
new Rectangle((_rectangle.X - GraphicsComponent.CameraPosition.X) * GraphicsComponent.scaling,
|
||||||
|
|
|
@ -83,7 +83,7 @@ namespace ZoFo.GameCore
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Game Methods
|
#region Game Methods
|
||||||
|
public CollisionManager collisionManager;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Запуск игры в комнате
|
/// Запуск игры в комнате
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Add table
Reference in a new issue