Esempio n. 1
0
 public Player(Game game, Camera2D cam)
 {
     this.game = game;
     this.creature = new WheeledCreature(game);
     userInterface = new UserInterface(game);
     this.cam = cam;
     userInput = new UserInput(this);
 }
Esempio n. 2
0
        public Player(Game game, Character character, Camera2D cam, KryptonEngine krypton)
        {
            this.game = game;
            this.krypton = krypton;
            this.character = character;
            this.creature = new WheeledCreature(game);
            userInterface = new UserInterface(game);
            this.cam = cam;
            userInput = new UserInput(this);

            wards = new List<Ward>();

            light = new Krypton.Lights.Light2D()
            {
                Texture = Krypton.LightTextureBuilder.CreatePointLight(this.game.GraphicsDevice, 512),
                Range = ConvertUnits.ToSimUnits(1200),
                Intensity = float.MaxValue,
                Position = Vector2.Zero,

            };
            krypton.Lights.Add(light);
        }