public PadsCase(Texture2D padcase, object game, Song sound, string vector) { this.game = (PadsGraphique)game; this.padcase = padcase; this.sound = sound; place = vector; this.vector = new Vector2(this.game.gamePadsCanv.CanvasSize[0], this.game.gamePadsCanv.CanvasSize[1]); ration = this.padcase.Width / this.game.WindowsSize[0] + 0.001f; }
public PadsCase(Texture2D padcase, object game, Song sound, Vector2 vector = new Vector2()) { this.vector = vector; this.game = (PadsGraphique)game; this.padcase = padcase; this.sound = sound; ration = this.padcase.Width / this.game.gamePadsCanv.CanvasSize[0] + 0.001f; size = new Rectangle((int)vector.X, (int)vector.Y, (int)(this.game.gamePadsCanv.CanvasSize[0] * ration), (int)(this.game.gamePadsCanv.CanvasSize[1] * ration)); ration = size.Width / this.game.gamePadsCanv.CanvasSize[0] + 0.001f; }
public PadsCannevas(List <PadsCase> padsCases, object game) { this.padsCases = padsCases; this.game = (PadsGraphique)game; }
static void Main() { using (var game = new PadsGraphique()) game.Run(); }