GithubHelp home page GithubHelp logo

alabazatam / last-colony Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adityaravishankar/last-colony

0.0 1.0 0.0 3.24 MB

Last Colony, is an RTS game with both a single player campaign mode as well as a multiplayer mode, created entirely in HTML5 and JavaScript.

JavaScript 99.89% Shell 0.11%

last-colony's Introduction

Last Colony

Last Colony is an RTS game with both a single player campaign mode as well as a multiplayer mode, created entirely in HTML5 and JavaScript.

Try the Last Colony Demo

The single player campaign includes an economy with buildings, vehicles, aircraft along with an over arching storyline told using scripted events.

The two player multiplayer uses Node.js with the WebSocket API to allow real time gameplay.

Multiplayer Server Setup

  1. Install Node and npm
  2. Install WebSocket-Node using command: npm install websocket
  3. Start server inside js folder using command: node js/server.js

Pro HTML5 Games

If you are interested in learning how to recreate this game entirely from scratch, you can find a detailed walk through in the book Pro HTML5 Games.

In the process of creating this game, we look at adding intelligent unit movement using pathfinding and steering, and combat using a combination of scripted events, and finite state machines.

We then look at adding multiplayer, covering everything from the basics of WebSocket and Node.JS, to details such as compensating for network latency while keeping the player games synchronized.

Credits

Artwork

  1. "Hard Vaccum" Artwork and Game Sprites by Daniel Cook
  2. Artwork from Open Game Art

Sounds

All sounds from Free Sound

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.