• This repository has been archived on 13/Nov/2020
  • Stars
    star
    470
  • Rank 93,129 (Top 2 %)
  • Language
    JavaScript
  • License
    BSD 2-Clause "Sim...
  • Created over 12 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DEFUNCT: HTML5 and Node.js multiplayer browser game from 2013

Cobalt Calibur 3.x

Cobalt Calibur 3.x Screenshot

Cobalt Calibur 3 is a rather old (2012) browser-based sandbox game. The backend is written in Node.js (originally Node.js v0.8!). Data is pushed using WebSockets. The frontend uses the HTML5 Canvas tag to handle drawing of the map, and the map is sized when the page loads to fit the size of the users screen. It also uses some HTML5 audio for sound effects.

Example Server: cobaltcalibur.net

How To Play

Movement is done with the WASD and arrow keys. Pressing 1-6 will attempt to build the specified tile. Pressing F will attempt to harvest / mine / chop / collect the tile in front of the player. As you harvest materials, your inventory in the upper right will increase. As you place tiles, the inventory will decrease. Unlike other building games (e.g. Minecraft), you don't keep the items you created in inventory, just the raw materials.

Synthetic Tiles:

  1. Wooden Wall (4 wood)
  2. Wooden Floor (2 wood)
  3. Stone Wall (4 stone)
  4. Stone Floor (2 stone)
  5. Wooden Door (12 wood)
  6. Glass Window (4 sand)

Placing synthetic tiles will cause the corruption to slowly be pushed away. Doors will block enemies but will not block players.

Naturally Occurring Tiles

  • Trees: Mine to receive 2 wood, becomes stump
  • Stump: Mine to receive 1 wood, becomes grass
  • Grass: Walk on it. Randomly becomes tree
  • Dirt: Walk on it. Randomly becomes grass
  • Big Ore: Mine to receive 2 ore, becomes small ore
  • Small Ore: Mine to receive 1 ore, becomes rubble
  • Big Stone: Mine to receive 2 stone, becomes small stone
  • Small Stone: Mine to receive 1 stone, becomes rubble
  • Rubble: Mine to receive 1 stone, becomes dirt
  • Water: Makes sand from adjacent ground

Every morning, grass can grow a tree, dirt can grow grass. Dirt and grass adjacent to water will become sand. When there is an earthquake (every few days), it will deposit more stone and ore into the world (and possibly damage buildings).

When the server starts, NPCs can spawn on naturally occurring tiles. They then walk around, (currently) never dying.

Game Mechanics

Walking in the corruption has a chance of hurting the player. Standing adjacent to an enemy will hurt the player. Enemies have very simple AI, they move towards the player. There are day and night cycles, but they don't affect gameplay much. There are occasional earthquakes, and they change the landscape. Health slowly gets restored.

Installation

$ npm install

Running Game Server

You'll want to specify the port number as the first argument to the script:

$ ./server.js 8000

You can also run it using Docker:

$ docker build -t cobalt-calibur .
$ docker run -p 8000:8000 -d cobalt-calibur

More Repositories

1

neoinvoice

DEFUNCT: PHP/MySQL: Multi-Tenant Invoice Web App
PHP
387
star
2

vimrc

Opinionated VIM Configuration
Vim Script
321
star
3

consumer-centric-api-design

Book on HTTP API Design, LaTeX, Creative Commons
TeX
320
star
4

node-wireless

DEFUNCT: Node.js: WiFi Connection Management
JavaScript
213
star
5

distributed-node

Optional Companion Files for Distributed Systems with Node.js
JavaScript
184
star
6

spidermonkey

DEFUNCT: PHP Web Spider from 2011
PHP
99
star
7

node-arpad

An implementation of the ELO Rating System
JavaScript
96
star
8

i3-i3status-dmenu-configurator

Online Colorscheme Configurator for i3, i3status, dmenu
JavaScript
58
star
9

node-roguelike

Generate Top-Down 2D Dungeon Maps
JavaScript
51
star
10

game-of-life

JavaScript implementation of Conway's Game of Life but with Game Elements
JavaScript
50
star
11

mobile-game-skeleton

Cordova Skeleton Project, used for creating Strategic Game of Life
Objective-C
47
star
12

consul-haproxy-example

HAProxy load balancing Node.js apps discovered via Consul
JavaScript
44
star
13

sleekmvc-app

DEFUNCT: Sample Application using the SleekMVC Framework
PHP
33
star
14

whisper

This project has evolved into Radar Chat.
JavaScript
19
star
15

sleekmvc

DEFUNCT: Lightweight & Beginner Friendly PHP MVC Framework
PHP
18
star
16

mig

The Universal Database Migration Runner. Distributed as precompiled binaries.
Go
16
star
17

node-autotile

JavaScript Autotile Generator
JavaScript
14
star
18

node-grille

Google Spreadsheets CMS
JavaScript
12
star
19

node-news-daemon

Node.js app based on the book Daemon by Daniel Suarez
JavaScript
11
star
20

backbone-book

Code Samples for Instant Backbone.js Application Development
JavaScript
11
star
21

robot-onslaught

Entry into the PubNub 2014 Competition
JavaScript
10
star
22

node-gacha

Item drop distribution for Roguelikes
JavaScript
9
star
23

php-social-network-bot

DEFUNCT: AJAX social network bot I cobbled together in 2009
JavaScript
6
star
24

dotfiles

Configuration files for Linux and OS X
Shell
5
star
25

Cobalt-Calibur-2

DEFUNCT: PHP/MySQL AJAX Game Engine from 2006
PHP
5
star
26

facebook-squirrelify

DEFUNCT: This is a silly image editing Facebook app I built in 2009
PHP
5
star
27

plot-designer

Plot Designer: Drag and Drop Story Design
JavaScript
4
star
28

node-docs-pdf

Generate PDF docs from online Node.js documentation
JavaScript
4
star
29

php-and-redis-example

Example PHP and REDIS project for the Ann Arbor PHP MySQL Meetup
PHP
4
star
30

dumbpubsub

Allows non-evented apps to subscribe to Node.js events over HTTP
JavaScript
3
star
31

node-discovery

100 line Service Discovery example
JavaScript
3
star
32

nucleocide-gtk

BSM Simple Dark (GTK2) + Dorian (GTK3) Theme
CSS
3
star
33

node-rpc-playground

Benchmarking Node.js RPC Patterns
JavaScript
3
star
34

php-eve-crawler

DEFUNCT: PHP App for crawling EVE kill-mail websites and creating heatmaps. 2009
PHP
3
star
35

node-nextplayer

Redis backed Round-Robin player turn control
JavaScript
3
star
36

node-word-generator

Generate pseudo-English words
JavaScript
2
star
37

take-home-test-node-trie

Teaching a friend how to implement Tries in JS
JavaScript
2
star
38

php-wordpress-thomashunter-theme

Wordpress theme for ThomasHunter.name
PHP
2
star
39

tlhunter

GitHub Profile
2
star
40

take-home-test-httpd-logs

Real-time statistics from httpd log files
JavaScript
2
star
41

gqrx-bookmarks

Bookmarks for GQRX: Community Broadcast CB, Family Radio, etc.
JavaScript
2
star
42

interview-questions

JavaScript, Node, Web-related questions, one per file, open ended
JavaScript
2
star
43

http-euchre

1
star
44

php-batman

Batman Comic Generator
PHP
1
star
45

presentations

Presentations by Thomas Hunter II
JavaScript
1
star
46

rust-transactional-dictionary

Rust
1
star
47

obsceneart

DEFUNCT: PHP/CodeIgniter Project from 2011
PHP
1
star
48

acdbrn

DEFUNCT: Open Source PHP Content Management System from 2005
JavaScript
1
star
49

wifi-jiggle

Much like a toilet, sometimes those WiFi cards just need to have their handle jiggled
C
1
star
50

node-zipkin-lite

Node.js module supporting a subset of Zipkin features
JavaScript
1
star
51

ponzir

Anonymous Reputation-Based Distributed Worker Network
JavaScript
1
star
52

Cobalt-Calibur-1

DEFUNCT: Perl CLI game I made in 2004
Perl
1
star
53

fastify

Fast and low overhead web framework, for Node.js
JavaScript
1
star
54

serve-sab

Fork of the "serve" package, modified to always set headers required to support SharedArrayBuffers. Used in the book Multithreaded JavaScript.
JavaScript
1
star