public ActionMouse(Game1 game , Camera came) { this.came = came; oldms = Mouse.GetState(); ms = Mouse.GetState(); this.game = game; }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); }//*/ }
public InventoryInterface(Texture2D image,Texture2D cadre, Texture2D background , Texture2D backindows , Game1 game) : base(game) { backwind = backindows; this.game = game; tex = image; back = background; this.cadre = cadre; this.DrawOrder = 9000; Visible = false; game.Components.Add(this); decalage = new Vector2((Tools.Quick.graphics.PreferredBackBufferWidth/2 - back.Bounds.Width) / 2, ( Tools.Quick.graphics.PreferredBackBufferHeight -back.Bounds.Height ) / 2); Load("interfaceinit.conf"); fenstat = new FenetreStat(Tools.Quick.player, cadre); isi = new InventoryStockableInterface(cadre,TypeSacoche.Crochet,TypeSacoche.Potion,new Rectangle(Tools.Quick.graphics.PreferredBackBufferWidth/2 ,Tools.Quick.graphics.PreferredBackBufferHeight/2,Tools.Quick.graphics.PreferredBackBufferWidth/2 ,Tools.Quick.graphics.PreferredBackBufferHeight/2),this); }
public void save(Game1 game , Map map) { }