Code Monkey home page Code Monkey logo

sus-game's Introduction

sus-game

DESCRIPTION
1st-place STEMSprint 2021 hackathon submission. A pygame to learn about sustainable waste management!

In the near future, a dude has to whack incoming domestic Garbage into the right bin. When Garbage is not recycled or handled properly, the waste piles up around him. The non-recyclable Garbage is whacked into the black bin where it slowly accumulates and will one day take over the world. Thus, it is important to reduce the spawn of this type of Garbage. The recyclable Garbage can be whacked into their respective bin types, which allows the dude to continue whacking Garbage forever. The dude continues his journey of whacking away Garbage to be recycled, while the impending doom of world-domination of non-recyclable Garbage harbours deep in his thoughts.

INSTALLATION
pip3 install pygame

CONTROLS
N key - changes bat direction to NORTH (CONTAINERS BIN)
E key - changes bat direction to EAST (MIXED PAPERS BIN)
S key - changes bat direction to SOUTH (LANDFILL BIN)
W key - changes bat direction to WEST (COMPOST BIN)
SPACE BAR - hit the bat, which also RESETS the direction

NOTE: default bat direction is north, and resets to north with each bat swing. The player must set a new direction before each swing of the bat.

Garbage of different types will spawn and fly towards the player. The player must choose a direction and swing the bat to hit the garbage into its corresponding bin.

The garbage and their corresponding bins are as follows:

image

CREDITS
Brian Fu https://github.com/brianfu
Amy Cao https://github.com/amiicao

LICENSE
MIT

sus-game's People

Contributors

amiicao avatar brianfu avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

brianfu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.