Example #1
0
        public virtual void LoadContent(World world, string AssetName, Vector2 position, float Scale, KryptonEngine krypton)
        {
            base.LoadContent(world, AssetName, position, Scale);
            light = new Krypton.Lights.Light2D()
            {
                Texture = Krypton.LightTextureBuilder.CreatePointLight(Game.GraphicsDevice, 512),
                Range = ConvertUnits.ToSimUnits(500),
                Intensity = float.MaxValue,
                Position = Vector2.Zero,

            };
            krypton.Lights.Add(light);
        }
Example #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);
        }
Example #3
0
 public void OpenProperties(Krypton.Lights.Light2D light)
 {
     splitContainer3.Panel2Collapsed = false;
     propertyGrid1.SelectedObject    = light;
 }