public DummyPlayer(Game game, Character character, Camera2D cam) : base(game, cam) { this.cam = null; userInterface = null; userInput = null; }
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); }
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); }
protected override void Initialize() { // Make sure to initialize krpyton, unless it has been added to the Game's list of Components this.krypton.Initialize(); //Setup Camera camera = new Camera2D(GraphicsDevice); camera.Zoom = .07f; spriteBatch = new SpriteBatch(GraphicsDevice); base.Initialize(); }