Giter Club home page Giter Club logo

pokewars's Introduction

Pokéwars

Description:

Pokéwars is a realtime online multiplayer game made using sprites from Pokemon Leaf Green and Fire Red.

This project was made using python3.7, pygame and the sockets module to handle incoming connections.

The player must navigate randomly generated maps, gathering weapons and power-ups from long grass and deep pools, and destroy enemy players.

The game supports 7 native maps, each using a range of difference sprites and terrains from Pokémon.

The Map class in map_generation.py has generate_map(),save() and load() functions, which can be used to generate and save new maps by passing in a list of sprites.

The game maps used can be changed by editing maps[] in config.py. Any newly generated maps should be added here.

Further Game Details

On connection player must enter name, and is then assigned a colour based on their assigned connection ID.

Players can find new weapons and power ups (currently 'bike' and 'mushroom' only) by searching in grass and water.

Navigating through grass and water reduces the players movement speed.

Bikes 2x the players speed.

Mushrooms 2x the players size - providing temporary immunity to death and the ability to trample other players via contact.

Game statistics are shown in the menu/leaderboard (Z).

Host is considered to be first person connected to the server.

Controls

Movement: Arrow Keys

Shoot: Spacebar

Strafe: S

Menu/Leaderboard: Z

Show Grid: X

Change Map (Host only): C

Requirements

  • python3.7

  • pygame

How to run

Change HOST and PORT in config.py to reflect your setup.

Ideally place server.py, config.py and leaderboard.py on a server. Create a new database from the leaderboard file. Multiple instances can then be launched from anywhere with many players playing simultaneously.

Another option is to download and use Hamachi to simulate your LAN.

Only the host player must run server.py. Other players need only run main.py.

LICENSE

Not for commercial use. Please credit me if you intend to use code from this game.

Screenshots

ss1 ss2 ss3

pokewars's People

Contributors

dotlorenzo avatar

Watchers

 avatar  avatar

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.