#pragma once #include "ofMain.h" #include "ofxSprite.h" #include "ofxGui.h" #include "ofxFensterManager.h" #include "music.h" #include "Asterisk.h" #include "Puppet.h" #include "Animal.h" #include "Tag.h"; /* this library? https://github.com/micknoise/Maximilian Maximilian is an audio synthesis and signal processing library written in C++. It's cross-platform compatible with MacOS, Windows, Linux and IOS systems. The main features are: - sample playback, recording and looping - read from WAV and OGG files. - a selection of oscillators and filters - enveloping - multichannel mixing for 1, 2, 4 and 8 channel setups - controller mapping functions - effects including delay, distortion, chorus, flanging - granular synthesis, including time and pitch stretching - atom synthesis - realtime music information retrieval functions: spectrum analysis, spectral features, octave analysis, and MFCCs - example projects for Windows and MacOS, using command line and OpenFrameworks environments transitions break clap movements practice mode ramdisk for movies */ #define GAME_STARTINGINTRO 1 #define GAME_INTRO 2 #define GAME_ENDINGINTRO 3 #define GAME_READY 4 #define GAME_STARTINGADVERT 5 #define GAME_ADVERT 6 #define GAME_ENDINGADVERT 7 #define GAME_STARTPLAYING 8 #define GAME_PRACTICE 9 #define GAME_PLAYING 10 #define GAME_ENDPLAYING 11 class guiWindow; class testApp : public ofxFensterListener{ public: void setup(); void update(); void draw(); void exit(); void keyPressedEvent(ofKeyEventArgs &args); void keyPressed(int key, ofxFenster* win); void keyPressed (int key); void keyReleased(int key); void mouseMoved(int x, int y ); void mouseDragged(int x, int y, int button); void mousePressed(int x, int y, int button); void mouseReleased(int x, int y, int button); void windowResized(int w, int h); void dragEvent(ofDragInfo dragInfo); void gotMessage(ofMessage msg); void drawBackgroundLayers(); void activateGame(); void activatePractice(); void switchAnimals(); ofVideoPlayer intro; ofVideoPlayer advert; ofSoundPlayer backgroundmusic; ofVideoPlayer background; ofImage vignette; vector songs; song practiceSong; vector penguins; vector raccoons; //vector > animals; //vector playanimals; vector* playanimal; vector tags; vector logos; puppetSprite banner; puppetSprite wirebirds; Billboard* lyricspanel; Puppet testpenguin; int currentlevel; Asterisk game; bool showFPS; bool showVis; bool fullscreenoutput; int currentsong,nextsong,gamestate,segmentStartTime; float fadelength; guiWindow *guiWin; ofxPanel gui; ofxIntSlider tS; ofxParameterthreshStart; ofxIntSlider tE; ofxParameter threshEnd; ofxIntSlider ts; ofxParameter timescale; ofxIntSlider kT; ofxParameter keyThresh; ofxToggle showWire; }; class guiWindow: public ofxFensterListener{ public: ~guiWindow(); testApp *parent; void setup(); void setParent(testApp *p); void draw(); void dragEvent(ofDragInfo dragInfo,ofxFenster* win); void windowMoved(int x, int y); string levelnames[11]={ "STARTINGINTRO", "INTRO", "ENDINGINTRO", "READY", "STARTINGADVERT", "ADVERT", "ENDINGADVERT", "STARTPLAYING", "PRACTICE", "PLAYING", "ENDPLAYING" }; };