Skip to content

Project: A travel based game set in Europe using actual location and airport data, and real time weather.

Notifications You must be signed in to change notification settings

Gemmus/FlightGame

Repository files navigation

Flight Game Project

A travel based game project that is implemented in two phases. The game allows the user to travel in Europe with limited CO2 budget to reach weather targets and guess the secret locations. Each hidden location is presented with a riddle.

For travel destinations, an open source SQL database is utilized which contains all the available airports in the world. For the project, only the large European Airports were selected. MariaDB is used as the tool for database implementation during the design of the game. With the altitute and the longitude of the aiports, the travel distance between two airports are calculated along with the rough estimation of CO2 consumption.

The real time weather condition of the selected locations is provided by WeatherAPI.

First Phase: Prototype

Programming language: python, IDE: PyCharm.

User interaction only via IDE. All rules and information is displayed through the console of the IDE and the user provides input via the same platform using keyboard.

image
Figure 1. Example of console output: Guessing one of the right secret location and winning the game

Prototype has two versions: Fairweather_Tourist.py has no implementation of real-time weather, while Fairweather_Tourist_with_API.py has.

Second Phase: User-Friendly Interface and Real-Time Weather

Implementation of Flask Cors, HTML, CSS, JavaScript parts, map as visual and real-time weather condition:
  • Back-end: Python, SQL database, WeatherAPI, Flask Cors.
  • Front-end: HTML, CSS, JavaScript, Leaflet.
  • The user plays the game using web browser and mouse.

    image
    Figure 2. User Interface via Browser

    Scoring is based on the combinations of weather targets and secret locations.

    About

    Project: A travel based game set in Europe using actual location and airport data, and real time weather.

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published