Example #1
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            sb = new ScrollingBackground(this);
            this.Components.Add(sb);
        }
Example #2
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            backgound           = new ScrollingBackgound.ScrollingBackground(this);
            backgound.DrawOrder = 0;
            this.Components.Add(backgound);

            spawner = new Spawner.GhostSpawner(this);
            this.Components.Add(spawner);

            pac           = new PacMan(this);
            pac.DrawOrder = 1;
            this.Components.Add(pac);

            timer           = new Timer.Timer(this);
            timer.DrawOrder = 2;
            this.Components.Add(timer);
        }