public Terrain(Game game) : base(game) { parent = (Game1)game; be = new BasicEffect(parent.GraphicsDevice); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
public RPS(Game g) : base(g) { game = (Game1)g; win_width = game.Window.ClientBounds.Width; win_height = game.Window.ClientBounds.Height; rock = game.Content.Load<Texture2D>(@"MiniGameImages/Rock3"); paper = game.Content.Load<Texture2D>(@"MiniGameImages/Paper"); scissors = game.Content.Load<Texture2D>(@"MiniGameImages/Scissor"); back = game.Content.Load<Texture2D>(@"MiniGameImages/74956"); //set default values for player and computer game choice textures p = game.Content.Load<Texture2D>(@"MiniGameImages/Paper"); c = paper = game.Content.Load<Texture2D>(@"MiniGameImages/Paper"); sf = game.Content.Load<SpriteFont>("fonts/SpriteFont1"); sf1 = game.Content.Load<SpriteFont>("fonts/font"); sf2 = game.Content.Load<SpriteFont>("fonts/score"); }
public Matching(Game g) : base(g) { game = (Game1)g; win_width = game.Window.ClientBounds.Width; win_height = game.Window.ClientBounds.Height; alertTex = game.Content.Load<Texture2D>(@"MiniGameImages/Alert"); balloonTex = game.Content.Load<Texture2D>(@"MiniGameImages/Balloonboy"); cameraTex = game.Content.Load<Texture2D>(@"MiniGameImages/Camera"); coneTex = game.Content.Load<Texture2D>(@"MiniGameImages/Cone"); diceTex = game.Content.Load<Texture2D>(@"MiniGameImages/Dice"); floppyTex = game.Content.Load<Texture2D>(@"MiniGameImages/Floppy"); globeTex = game.Content.Load<Texture2D>(@"MiniGameImages/Globe"); mammathTex = game.Content.Load<Texture2D>(@"MiniGameImages/Mammath2"); paintTex = game.Content.Load<Texture2D>(@"MiniGameImages/Paint"); treeTex = game.Content.Load<Texture2D>(@"MiniGameImages/Tree"); coverTex = game.Content.Load<Texture2D>(@"MiniGameImages/Cover copy"); texList.Add(tex11 = coverTex); texList.Add(tex21 = coverTex); texList.Add(tex31 = coverTex); texList.Add(tex41 = coverTex); texList.Add(tex12 = coverTex); texList.Add(tex22 = coverTex); texList.Add(tex32 = coverTex); texList.Add(tex42 = coverTex); texList.Add(tex13 = coverTex); texList.Add(tex23 = coverTex); texList.Add(tex33 = coverTex); texList.Add(tex43 = coverTex); t[0] = alertTex; t[1] = paintTex; t[2] = cameraTex; t[3] = mammathTex; t[4] = floppyTex; t[5] = globeTex; for (int i = 0; i < 12; i++) { boxToSet[i] = coverTex; } setBoard(); sf = game.Content.Load<SpriteFont>("fonts/font"); sfWin = game.Content.Load<SpriteFont>("fonts/SpriteFont1"); }
public TextInterface(Game game) : base(game) { parent = (Game1)game; // Associate Game1 with parent logo = game.Content.Load<Texture2D>(@"hippotastic"); }
public Cards(Game g) : base(g) { game = (Game1)g; win_width = game.Window.ClientBounds.Width; win_height = game.Window.ClientBounds.Height; btn = game.Content.Load<Texture2D>(@"MiniGameImages/redChip"); //cardList.Add(back = game.Content.Load<Texture2D>(@"MiniGameImages/cards/back")); background = game.Content.Load<Texture2D>(@"MiniGameImages/felt"); cardList.Add(twoS = game.Content.Load<Texture2D>(@"MiniGameImages/cards/s2")); cardList.Add(twoH = game.Content.Load<Texture2D>(@"MiniGameImages/cards/h2")); cardList.Add(twoC = game.Content.Load<Texture2D>(@"MiniGameImages/cards/c2")); cardList.Add(twoD = game.Content.Load<Texture2D>(@"MiniGameImages/cards/d2")); cardList.Add(threeD = game.Content.Load<Texture2D>(@"MiniGameImages/cards/d3")); cardList.Add(threeC = game.Content.Load<Texture2D>(@"MiniGameImages/cards/c3")); cardList.Add(threeH = game.Content.Load<Texture2D>(@"MiniGameImages/cards/h3")); cardList.Add(threeS = game.Content.Load<Texture2D>(@"MiniGameImages/cards/s3")); cardList.Add(fourS = game.Content.Load<Texture2D>(@"MiniGameImages/cards/s4")); cardList.Add(fourH = game.Content.Load<Texture2D>(@"MiniGameImages/cards/h4")); cardList.Add(fourC = game.Content.Load<Texture2D>(@"MiniGameImages/cards/c4")); cardList.Add(fourD = game.Content.Load<Texture2D>(@"MiniGameImages/cards/d4")); cardList.Add(fiveD = game.Content.Load<Texture2D>(@"MiniGameImages/cards/d5")); cardList.Add(fiveH = game.Content.Load<Texture2D>(@"MiniGameImages/cards/h5")); cardList.Add(fiveC = game.Content.Load<Texture2D>(@"MiniGameImages/cards/c5")); cardList.Add(fiveS = game.Content.Load<Texture2D>(@"MiniGameImages/cards/s5")); cardList.Add(sixS = game.Content.Load<Texture2D>(@"MiniGameImages/cards/s6")); cardList.Add(sixC = game.Content.Load<Texture2D>(@"MiniGameImages/cards/c6")); cardList.Add(sixH = game.Content.Load<Texture2D>(@"MiniGameImages/cards/h6")); cardList.Add(sixD = game.Content.Load<Texture2D>(@"MiniGameImages/cards/d6")); cardList.Add(sevenD = game.Content.Load<Texture2D>(@"MiniGameImages/cards/d7")); cardList.Add(sevenH = game.Content.Load<Texture2D>(@"MiniGameImages/cards/h7")); cardList.Add(sevenC = game.Content.Load<Texture2D>(@"MiniGameImages/cards/c7")); cardList.Add(sevenS = game.Content.Load<Texture2D>(@"MiniGameImages/cards/s7")); cardList.Add(eightS = game.Content.Load<Texture2D>(@"MiniGameImages/cards/s8")); cardList.Add(eightH = game.Content.Load<Texture2D>(@"MiniGameImages/cards/h8")); cardList.Add(eightC = game.Content.Load<Texture2D>(@"MiniGameImages/cards/c8")); cardList.Add(eightD = game.Content.Load<Texture2D>(@"MiniGameImages/cards/d8")); cardList.Add(nineD = game.Content.Load<Texture2D>(@"MiniGameImages/cards/d9")); cardList.Add(nineC = game.Content.Load<Texture2D>(@"MiniGameImages/cards/c9")); cardList.Add(nineH = game.Content.Load<Texture2D>(@"MiniGameImages/cards/h9")); cardList.Add(nineS = game.Content.Load<Texture2D>(@"MiniGameImages/cards/s9")); cardList.Add(tenS = game.Content.Load<Texture2D>(@"MiniGameImages/cards/s10")); cardList.Add(tenH = game.Content.Load<Texture2D>(@"MiniGameImages/cards/h10")); cardList.Add(tenC = game.Content.Load<Texture2D>(@"MiniGameImages/cards/c10")); cardList.Add(tenD = game.Content.Load<Texture2D>(@"MiniGameImages/cards/d10")); cardList.Add(jackD = game.Content.Load<Texture2D>(@"MiniGameImages/cards/dj")); cardList.Add(jackC = game.Content.Load<Texture2D>(@"MiniGameImages/cards/cj")); cardList.Add(jackH = game.Content.Load<Texture2D>(@"MiniGameImages/cards/hj")); cardList.Add(jackS = game.Content.Load<Texture2D>(@"MiniGameImages/cards/sj")); cardList.Add(queenS = game.Content.Load<Texture2D>(@"MiniGameImages/cards/sq")); cardList.Add(queenC = game.Content.Load<Texture2D>(@"MiniGameImages/cards/cq")); cardList.Add(queenH = game.Content.Load<Texture2D>(@"MiniGameImages/cards/hq")); cardList.Add(queenD = game.Content.Load<Texture2D>(@"MiniGameImages/cards/dq")); cardList.Add(kingD = game.Content.Load<Texture2D>(@"MiniGameImages/cards/dk")); cardList.Add(kingH = game.Content.Load<Texture2D>(@"MiniGameImages/cards/hk")); cardList.Add(kingC = game.Content.Load<Texture2D>(@"MiniGameImages/cards/ck")); cardList.Add(kingS = game.Content.Load<Texture2D>(@"MiniGameImages/cards/sk")); cardList.Add(aceC = game.Content.Load<Texture2D>(@"MiniGameImages/cards/c1")); cardList.Add(aceS = game.Content.Load<Texture2D>(@"MiniGameImages/cards/s1")); cardList.Add(aceH = game.Content.Load<Texture2D>(@"MiniGameImages/cards/h1")); cardList.Add(aceD = game.Content.Load<Texture2D>(@"MiniGameImages/cards/d1")); sf = game.Content.Load<SpriteFont>("fonts/font"); sfScore = game.Content.Load<SpriteFont>("fonts/cards"); sfScore2 = game.Content.Load<SpriteFont>("fonts/score"); title = game.Content.Load<SpriteFont>("fonts/SpriteFont1"); }
public Hippo(Game game) : base(game) { parent = (Game1)game; }
public SpriteManager(Game game) : base(game) { parent = (Game1)game; }
public GameInfo(Game1 g) : base(g) { game = (Game1)g; }
public Camera(Game game) : base(game) { parentgame = (Game1)game; Initialize(); }