示例#1
0
 public Camera(Actor new_subject, InputController Input)
 {
     setSubject(new_subject);
     input = Input;
 }
示例#2
0
        public Player(String Id, String asset_name, Vector2 starting, GameManager gameManager, InputController Input)
            : base(gameManager)
        {
            asset_Name = "EimarSheet";
            speed      = 125;
            this.Input = Input;
            learnAction(new Interact());
            Location      = new Vector3(starting.X, starting.Y, 0);
            name          = Id;
            inventoryMenu = new Inventory(this, gameManager);
            ImageHeight   = 128;
            ImageWidth    = 128;

            inventoryOpen = false;
            learnAction(new FightStance());
            learnAction(new Dash());
            learnAction(new DashJump());
            learnAction(new BandageSelf(this));
            learnAction(new HighHorizontal(this));

            radius         = 20;
            currentLife    = 100;
            currentFatigue = 100;
            AddInventoryItem(new SweetWine(this));
        }