// selfSetup is called when the visual system is first instantiated // This will be called during a "loading" screen, so any big images or // geometry should be loaded here void CloudsVisualSystemCirclePacking::selfSetup(){ // Circle::Font.loadFont(getVisualSystemDataPath() + "Verdana14.ttf", 14, true, true, true); Circle::Font.loadFont(CloudsCryptoGetFont("Helvetica.ttf"), 14); //MA: changed ofGetWidth() to GetCanvasWidth() and ofGetHeight() to GetCanvasHeight() //cout << "SIZE = " << getCanvasWidth() << " " << getCanvasHeight() << endl; pack = CirclePacker(1.0f*getCanvasWidth(),1.0f*getCanvasHeight(), 15); if (NASDAQ){ initializeNasdaq(); } else if (BLANKS){ initializeBlanks(); } else if (HASHTAGS){ initializeHashtags(); } alph = 1.f; pack.pack(); }
int main(void) { srand(time(NULL)); dash: getWord(); if( (strstr(word, "-")) != NULL) { goto dash; } initializeBlanks(); while( ((strstr(blanks, "_")) != NULL) && (guesses > 0)) { printf("Guesses so far: %s\n", attempts); printf("%d guess%s left.\n", guesses, (guesses > 1) ? "es" : ""); printf("%s\n", blanks); getGuess(); printf("\n"); } if(guesses == 0) { printf("Too many misses. Game over. The word was %s.\n", word); return 0; } if( (strstr(blanks, "_")) == NULL) { printf("%s\n", word); printf("You won!\n"); } }
void CloudsVisualSystemCirclePacking::regenerate(){ //MA: changed ofGetWidth() to GetCanvasWidth() and ofGetHeight() to GetCanvasHeight() pack = CirclePacker(getCanvasWidth(), getCanvasHeight(), 12); if (NASDAQ){ initializeNasdaq(); } else if (BLANKS){ initializeBlanks(); } else if (HASHTAGS){ initializeHashtags(); } pack.pack(); }