Giter Club home page Giter Club logo

cow-invaders's Introduction

COW INVADERS

A game where you play as a cow, and prevent monsters from getting to the barn. It is a modern recreation of atari's classic space invaders.

The game

  • Cow has to kill the monsters before it gets to the farmhouse
  • The cow can either shoot or headbutt to kill the monsters
  • The headbutt is a more effective way to kill (compared to early game bullets), but has a higher chance to spawn stronger enemys.
  • As your score increases, the cow will get stronger upgrades.

Monsters

There are three types of monsters:

  1. Red Monster: They are slow in their horizontal and vertical motions. They are very common.

  2. Pink Monster: They are very fast in their horizontal motion.

  3. White Monster: They are fast in both vertical and horizontal motions. They are rare.

Challenge

Try to get to score: 1000

To play

Just download the repository, and run the file main.py using python3. You must have pygame library installed. It can be installed using pip install pygame.

Future plans

AI Based

  • Automate the game with
    • Deep Reinforcement Learning
    • Proximal Policy Approximation
    • Genetic Algorithm
    • Some basic/ normal decision based algorithm (maybe) and compare the results.

Gameplay

Alt text

Alt text

Alt text

Citations

cow-invaders's People

Contributors

arjun-g-ravi avatar randomgamecoder avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

randomgamecoder

cow-invaders's Issues

Order Everything

Make files and directories to separate images, code and sound files

Wierd bug kills monster

The monsters automatically dies when it is close to the centre of the screen, when it is close to getting to the barn

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.