Esempio n. 1
0
 public EntityPlayer(Texture2D playerTexture, int spriteId, Texture2D shadowTexture, int shadowOffset)
     : base()
 {
     PositionComponent = new PositionComponent(new Vector2(200, 200));
     RenderComponent = new RenderComponent(playerTexture, new Vector2(0, spriteId), shadowTexture, shadowOffset, Color.White);
     ShooterComponent = new ShooterComponent();
     ControlComponent = new ControlComponent(this);
 }
Esempio n. 2
0
 public EntityWeapon(Vector2 position)
 {
     Weapon = new WeaponDefinition();
     PositionComponent = new PositionComponent(position);
     RenderComponent = new RenderComponent(Game1.Weapon, new Vector2((int)Weapon.Type,0), Game1.Shadow, 57, Weapon.FormattedColor, false);
     HoverComponent = new HoverComponent(this);
     Console.WriteLine("Generated " + Weapon.FormattedName);
 }