Giter Club home page Giter Club logo

snake-multiplayer's Introduction

snake-multiplayer

This game originated from a school project. Finally, it became a great multiplayer snake that could even be played globally. Apart from that, it features solids, server commands :), an alternative gamemode and a hip retro design. Give it a try!

Instructions

Import or clone the source into Eclipse (or your fav IDE) and make sure you have at least Java 7 installed. Alternatively, hurried people can just download the two JAR's under releases. First start the server, then head over to the client. Press SPACE to start playing and control your snake with WASD or the arrow keys. Share the client JAR with anyone in your LAN and it will detect and join your server automatically. If you for any reasons need a specific server IP input, uncomment the line InetAddress address = InetAddress.getByName(JOptionPane.showInputDialog("Enter server IP")); and comment out InetAddress address = client.discoverHost(54001, 5000); in this file. Recompile the client and enjoy! If you prefer being a 'global player' (insert laugh here), make sure to open the ports 54000 (TCP) and 54001 (UDP) at your router.

Server commands

freeze;[id]				// freezes player [id]
slowdown;[id];[steps]	// slows player [id] down by [steps] (default: 1)
kamikaze;[id]			// ignores direction changes of player [id]
ban;[ip]				// bans [ip]
unban;[ip]				// unbans [ip]
score;[id];[score]		// sets score of player [id] to [score]
speed;[tick]			// changes game update speed to [tick] ms (default: 100)
gamemode;[mode]			// changes game mode to [mode] (default: 0)
addsolid;[x];[y]		// adds solid at [x], [y]
remsolid;[x];[y]		// removes solid at [x], [y]
clearsolids				// removes all solids

Gamemodes

0	classic snake game
1	dead players become solids (recommended :D)

Third-party

snake-multiplayer's People

Contributors

deermichel avatar

Watchers

Hesham Mekky avatar James Cloos 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.