Skip to main content

A maze game that required users to think inside the box to win

Project description

Getting Inside The Box

This game was developed by the team Benevolent Bonobos, during the Summer Code Jam 2021 held by Python Discord.

Teams that participated in the code jam had to create a TUI based on the theme Think Inside the Box.

Youtube Link

Contents

How To Play

  1. There are 6 options in start menu:
    • Start: Play the normal levels.
    • Infinite: Never ending gameplay.
    • Tutorial: How to play.
    • Credits
    • Leaderboard
    • Quit
  2. Use arrow keys to move.
  3. On starting, a glimpse of the whole maze will be shown. After it disappears, the game will start.
  4. Player has to reach & with minimum collisions with the walls and in minimum time.
  5. Boxes:
    • The place to stop and think.
    • Will show the part of the maze associated with the box.
    • Time slows down here.
  6. Echolocation:
    • Press e to make a noise.
    • An echo will come from the direction in which player last moved.
    • The echo will get stronger the nearer the player is to the wall.
  7. Persistence:
    • It acts as a score for a player.
    • Higher is better.
    • It will decrease with time.
    • It will decrease more and more with each collision.
    • Since time slows down in a box, persistence will decrease slower inside the box.
    • It is visible in the top right corner.
  8. In the top left corner, the number of collisions made in the current level is visible.
  9. On pressing q, the game will be paused. There will be an option to play again or quit.
  10. In normal mode, a player can play 9 levels.
  11. In infinite mode, a player will have to press q for quitting.
  12. After completing all normal levels, a player, if they want, can put their name in the leaderboard which stores their score.

Requirements

  • Python 3.8.6 or greater
  • A stereo headset (for echolocation)
  • The terminal window should be sufficiently large (At least 50 x 15 characters in width and height). You should not resize the terminal during the game.

Installation

Windows

pip install maze-gitb

Linux

pip3 install maze-gitb

Contribution

1. Clone the repository

git clone https://github.com/Anand1310/summer-code-jam-2021.git
cd summer-code-jam-2021

2. Install required dependencies

Windows

pip install -r dev-requirements.txt

Linux

apt-get install openal-soft
pip3 install -r dev-requirements.txt

3. Run the game

Windows

python main.py

Linux

python3 main.py
Note:
The player should visit the tutorial for a hands-on understanding of the game.

Screenshots

First view

Box view

Box view

Without box view

Box view

Box view

Future Improvements

  • Reveal the map with animation at the start of the level.
  • Allow player to move during echo.
  • Fix bug: Hitting leaderboard in the main menu exits game. (This can be fixed with this change, we shall update the repo once the code jam finishes.)
  • Fix bug: Game background music does not start on tutorial. (This can also be fixed by this commit.)
  • Add Main menu option in pause menu. (This will do it)

About Us

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maze_gitb-1.0.2.tar.gz (5.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maze_gitb-1.0.2-py3-none-any.whl (5.9 MB view details)

Uploaded Python 3

File details

Details for the file maze_gitb-1.0.2.tar.gz.

File metadata

  • Download URL: maze_gitb-1.0.2.tar.gz
  • Upload date:
  • Size: 5.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for maze_gitb-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d0e9e8a71e402f650b760614681c1ec95b1a7f2d6dfda9d8ea78bc44f6c256ad
MD5 a1898bc229c98f73bb540167cf779ea9
BLAKE2b-256 28cc6786f92d1110be0d4ad7adb2590c3eb260ec0ad644234de2113f5d2e86a7

See more details on using hashes here.

File details

Details for the file maze_gitb-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: maze_gitb-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for maze_gitb-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91b024c0543e58ea8baf04e2cf68cf22c4746fe1b9ada529895b52fbf630a5d8
MD5 85f1e91b72085e161e9235ce68b53277
BLAKE2b-256 35bfc898916d5b1d38c187e5383883dfbc3a1a3ca365930aa720afe3e5cb93a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page