Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adityaravishankar/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.
https://github.com/adityaravishankar/last-colony
Last synced: 6 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/adityaravishankar/last-colony
- Owner: adityaravishankar
- Created: 2013-06-16T10:10:34.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-16T11:15:39.000Z (over 11 years ago)
- Last Synced: 2024-08-02T06:21:26.095Z (3 months ago)
- Language: JavaScript
- Size: 3.16 MB
- Stars: 90
- Watchers: 11
- Forks: 64
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-open-source-games - Last Colony - RTS game with both a single player campaign mode as well as a multiplayer mode, created entirely in HTML5 and JavaScript. (Native / Strategy)
README
# 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](http://www.adityaravishankar.com/projects/games/lastcolony/)
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](http://nodejs.org/) and [npm](https://npmjs.org/)
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](http://www.adityaravishankar.com/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](http://www.lostgarden.com/)
2. Artwork from [Open Game Art](opengameart.org)
* [Thief Portrait by Zeldyn](http://opengameart.org/content/thief-portrait-female)
* [Jacob Portrait by Gaspard](http://opengameart.org/content/four-post-apocalyptic-portraits)
* [Priest Portrait by Zeldyn](http://opengameart.org/content/priest-portrait-female)### Sounds
All sounds from [Free Sound](http://www.freesound.org/)