From: Carl Worth Date: Sun, 7 Jun 2020 18:55:32 +0000 (-0700) Subject: Add initial shell of a game for Empathy X-Git-Url: https://git.cworth.org/git?p=empires-server;a=commitdiff_plain;h=1b8674fabbdfab627f12727cdc3616a233cd767a Add initial shell of a game for Empathy No real functionality here yet. --- diff --git a/empathy.js b/empathy.js new file mode 100644 index 0000000..12a743e --- /dev/null +++ b/empathy.js @@ -0,0 +1,17 @@ +const express = require("express"); +const Game = require("./game.js"); + +class Empathy extends Game { + constructor(id) { + super(id); + } +} + +Empathy.router = express.Router(); + +Empathy.meta = { + name: "Empathy", + identifier: "empathy", +}; + +exports.Game = Empathy; diff --git a/lmno.js b/lmno.js index d01b3e9..de95aa4 100644 --- a/lmno.js +++ b/lmno.js @@ -91,7 +91,8 @@ nunjucks.configure("templates", { const engines = { empires: require("./empires").Game, tictactoe: require("./tictactoe").Game, - scribe: require("./scribe").Game + scribe: require("./scribe").Game, + empathy: require("./empathy").Game }; class LMNO { diff --git a/templates/empathy-game.html b/templates/empathy-game.html new file mode 100644 index 0000000..d84266c --- /dev/null +++ b/templates/empathy-game.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block head %} + + + + + +{% endblock %} + +{% block page %} +

Empathy

+ +
+ +{% endblock %}