Ejemplo n.º 1
0
        public Schilder(Game game)
            : base(game)
        {
            // Available images, can easily add or remove drawings here.
            string[] names = new string[] { "turtle", "peacock", "bear" };

            // Load a random drawing:
            DrawingAssets   = new DrawingContainer(names[SeriousGameLib.PersistentStorage.LastSchilderDrawingIndex++ % names.Length]);

            PaintBrush      = new PaintBrush(this);
            SmartCanvas     = new SmartCanvas(this);
            ColorSelector   = new ColorSelector(this);
            TrophyScreen    = new TrophyScreen(this);

            AudioFactory.AddSoundEffect("schildertheme", "Schilder/Audio/Schilder");
            AudioFactory.AddSoundEffect("paint", "Schilder/Audio/paint");

            AudioFactory.PlayOnce("schildertheme",true);

            //AddGameObject(new Wallpaper(this));
            AddGameObject(SmartCanvas);
            AddGameObject(ColorSelector);
            AddGameObject(PaintBrush);

            AddGameObject(TrophyScreen);

            game.IsMouseVisible = false;
        }
Ejemplo n.º 2
0
        public Fotograaf(Game game)
            : base(game)
        {
            Flash        = new Flash(this);
            Camera       = new Camera(this);
            Cat          = new Cat(this);
            Wallpaper    = new Wallpaper(this);
            MapEditor    = new MapEditor(this);
            Hud          = new FotograafHud(this);
            TrophyScreen = new TrophyScreen(this);

            AddGameObject(Wallpaper);
            //AddGameObject(new FPSCounter(this));
            AddGameObject(Cat);
            AddGameObject(Flash);
            AddGameObject(Camera);
            AddGameObject(MapEditor);
            AddGameObject(Hud);
            AddGameObject(TrophyScreen);

            _bufferIndex   = 0;
            _renderBuffers = new RenderTarget2D[10];

            AudioFactory.AddSoundEffect("photoClick", "Fotograaf/Songs/camera-click4");
            AudioFactory.AddSoundEffect("zoom", "Fotograaf/Songs/camera-focus");
            AudioFactory.AddSoundEffect("fotograaftheme", "Fotograaf/Songs/background");

            AudioFactory.PlayOnce("fotograaftheme", true);

            game.IsMouseVisible = false;
        }
Ejemplo n.º 3
0
        public override void Initialize()
        {
            base.Initialize();

            TrophyScreen = new TrophyScreen(this);
        }