Skip to content
This repository was archived by the owner on Mar 31, 2020. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Various Vipers | saving the earth

(Python Discord code jam 5 submission)

The climate change is a real danger to our planet, and if we don't help reduce the pollution, it will be destroyed. Your task is to save the earth!

This game is about you - completing tasks that will decrease the pollution. Try to do as many tasks as you can, while it is still not too late.

See /docs for more documentation.

Requirements

Requires python 3.7+ (with pip)

Setup (for development)

To prepare for development, run commands (from this directory):

$ pip install pipenv
$ pipenv install --dev
$ pipenv run precommit

Setup

To run the game, you will need to install all the dependencies (in Pipfile).

Run commands (from this directory):

$ pip install pipenv
$ pipenv install

Start Game

To start the game, simply run:

$ pipenv run start

Notes

  • The game will eat ~550 MB of RAM to hold cached images of sun and tiles.

361 images of sun (for each angle of rotation)

20 images for each tile on map (scaled by 2.5% each time)

  • The sun looks "laggy" when spinning slowly, because it only rotates at a full 1 degree angle each time (instead of a smoothed floating point value angle).

How to play

The global temperature is drastically increasing. Your mission is to save the Earth through completing tasks - saving the forests and mountains ice, building solar panels and decreasing the pollution.

Controls

A D or left arrow key and right arrow key - to move on the surface of the Earth

ESC - to pause the game

Mouse click - to start a task

Tasks

Every task is represented with a tile colored in the red spectrum.


There are indicators on the sides of the screen which guide you where are the tasks.


With completing each task you decrease the global temperature. There are three different types of tasks.

  1. Cursor maze - to begin you hover over starting position displayed as a square with image on it. After that the maze reveals itself and you should follow the path to the end point without touching the walls.


  1. Rock, paper, scissors (but with trashcans) - some things are a question of luck. You have 1/3 chance of winning this task. It is a win if your choice and the computer are the same trashcan.


  1. Tic tac toe - you are playing against the computer. If you make a tie it still counts as a win.


Options

All user settings are saved. But if you terminate the game with the X button of the pygame window, the user settings are going to be the last saved.

Sound and music volume sliders and mute buttons.


Show fps and boost fps checkers.


Show fps displays a number of the fps in the top right corner. Boost fps removes some animations in the game to increase the performance.

Troubleshooting

  1. ERROR: Could not find a version that matches black

Your Pipenv lock file might be corrupt, try running command:

$ pipenv lock --pre --clear

Credits

"The Snow Queen" by Kevin MacLeod (https://incompetech.com) License: CC BY (http://creativecommons.org/licenses/by/4.0/)

License: CC0 1.0 Universal (https://creativecommons.org/publicdomain/zero/1.0/)

Development from Various Vipers

Horiwix#4181 Skilldeliver#0515