コード例 #1
0
ファイル: Ward.cs プロジェクト: DanielWieder/Dota-2d
        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);
        }
コード例 #2
0
ファイル: Player.cs プロジェクト: DanielWieder/Dota-2d
        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);
        }
コード例 #3
0
 public void OpenProperties(Krypton.Lights.Light2D light)
 {
     splitContainer3.Panel2Collapsed = false;
     propertyGrid1.SelectedObject    = light;
 }