Skip to content

"Who Wants to Be a Millionaire?" style game made with Processing.

License

Notifications You must be signed in to change notification settings

ricardoreais/guess-the-country

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guess the country

"Who Wants to Be a Millionaire?" style game made with Processing. Short and fun game to compete with friends.

screenshot 1

screenshot 2

Click here for more in-game screenshots

Code Example

The game main engine is the random generator, which allows multiple combinations of the same game by generating random wrong answers, random wrong answers positions and also a random image.

void generator() // Generates a completly new set of answers
{
  currentCountry = countries[rLandscapes.get(clicker)]; // New country
  currentCountryPosition = rLandscapes.get(clicker); //New country position
  rCountries.clear(); //Erases random array of numbers
  rPositions.clear(); //Erases random array of positions
  randomCountries(); //List with random countries (i.e. country index)
  randomPositions(); //List with random positions (position A, position B, position C & position D)
  if(flagMode1)  
    generateFlags(); //Generate new flags
  else if(flagMode2)
    generateAnswers(); //Generate new answers
}

Getting Started

Prerequisites

You will need to download processing version 3.x.

Click here to download Processing

Opening the project

Once you have to Processing editor on the left upper corner, click on File>open...>guessTheCountry.pde

This will open the game project.

Running the game

You can run the game by clicking the "Play" button on the processing IDE.

Deployment

Export the application and make an executable file. On the left upper corner, click on File>Export application...

Built With

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

"Who Wants to Be a Millionaire?" style game made with Processing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published