示例#1
0
        public Entity(InGameState Game, LineModel model, Vector2 position)
        {
            this.Game = Game;

            this.model = model;
            this.position = position;
        }
示例#2
0
        public Player(InGameState Game)
            : base(Game, new LineModel(Player.PlayerVectors), new Vector2(400, 300))
        {
            FlameModel = new LineModel(Player.PlayerFlameVectors);

            Vector2[] hitboxModel =
            {
                new Vector2(0, -27),
                new Vector2(15, 17),
                new Vector2(-15, 17),
            };
            hitbox = new PolygonHitbox(this, hitboxModel);

            //start the player off as in the "dead" state
            canRespawn = true;
            Alive = false;
            DrawFlame = false;
            Model.ModelColor = Color.Black;
        }