Hot fixes
This commit is contained in:
parent
8ab6f3d434
commit
3ec0069f75
3 changed files with 8 additions and 2 deletions
|
@ -93,7 +93,7 @@ namespace ZoFo.GameCore.GameManagers.CollisionManager
|
|||
}
|
||||
else
|
||||
{
|
||||
entity.position.X += entity.velocity.Y;
|
||||
entity.position.Y += entity.velocity.Y;
|
||||
newRect.Y = tryingRectY.Y;//значение по X для нового РЕК приравниваем к значению испытуемого РЕК
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Microsoft.Xna.Framework.Input;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using ZoFo.GameCore.GameManagers;
|
||||
|
@ -39,11 +40,15 @@ public class Player : LivingEntity
|
|||
float t;
|
||||
public void MovementLogic()
|
||||
{
|
||||
velocity.X = (float)Math.Sin(t);
|
||||
//velocity.X = 3+(float)Math.Sin(t);
|
||||
t++;
|
||||
if (InputPlayerRotation.X > 0.9)
|
||||
{
|
||||
}
|
||||
if (Keyboard.GetState().IsKeyDown(Keys.D)) velocity.X = 5;
|
||||
if (Keyboard.GetState().IsKeyDown(Keys.A)) velocity.X = -5;
|
||||
if (Keyboard.GetState().IsKeyDown(Keys.S)) velocity.Y = 5;
|
||||
if (Keyboard.GetState().IsKeyDown(Keys.W)) velocity.Y = -5;
|
||||
}
|
||||
public void HandleNewInput(UpdateInput updateInput)
|
||||
{
|
||||
|
|
|
@ -99,6 +99,7 @@ namespace ZoFo.GameCore
|
|||
|
||||
AppManager.Instance.server.RegisterGameObject(new EntittyForAnimationTests(new Vector2(40, 40)));
|
||||
AppManager.Instance.server.RegisterGameObject(new Player(new Vector2(140, 140)));
|
||||
AppManager.Instance.server.RegisterGameObject(new Player(new Vector2(140, 140)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Reference in a new issue