More weapon and movement updates

This commit is contained in:
2021-04-11 20:43:29 +02:00
parent c989202d93
commit 15bfc8685f
8 changed files with 19 additions and 12 deletions
+4 -3
View File
@@ -11,8 +11,9 @@ namespace EvilSatellites.Objects
public class Player : AbstractGameObject
{
private Vector3 _PrevPos;
private Vector3 MaxSpeed = new Vector3(1, 1, 1);
private Vector3 Deceleration = new Vector3(0.005f, 0.005f, 0.005f);
private Vector3 MaxSpeed = new Vector3(0.2f, 0.2f, 0.2f);
public Vector3 Acceleration = new Vector3(0.008f, 0.008f, 0.008f);
private Vector3 Deceleration = new Vector3(0.0025f, 0.0025f, 0.0025f);
private ISoundEffect sfxEngine;
private ISoundEffect sfxWhine;
public IWeapon CurrentWeapon;
@@ -21,7 +22,7 @@ namespace EvilSatellites.Objects
ShouldDestroy = false;
Active = true;
Type = ObjectType.Player;
Position = new Vector3(10, 0, 0);
Position = new Vector3(0, 0, 0);
Dimensions = new Vector3(5, 5, 5);
Movement = new Vector3(0, 0, 0);
Rotation = Matrix.Identity;