Posted by Shawn on Sat 19 Apr 19:22
report abuse | download | new post
- using System.Collections.Generic;
- using Microsoft.Xna.Framework;
- using Microsoft.Xna.Framework.Graphics;
- namespace SimonXNA
- {
- class PlayBoard
- {
- List<Rectangle> ColoredRectangles;
- List<Color> ColorList;
- public void Initialize()
- {
- }
- public void Update()
- {
- }
- public void Draw(SpriteBatch sb, Texture2D squares)
- {
- int colorIndex = 0;
- foreach (Rectangle r in ColoredRectangles)
- {
- sb.Draw(squares, r, ColorList[colorIndex]);
- colorIndex++;
- }
- }
- }
- }
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.