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; }
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; }
public override void Initialize() { base.Initialize(); TrophyScreen = new TrophyScreen(this); }