summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-03-19 13:42:57 +0100
committerTor Andersson <tor@ccxvii.net>2024-05-30 17:19:32 +0200
commitce3c0c5a53065dce83d0b29a6a10962c489c4e40 (patch)
tree496bff345080021370e0f57e81b858568dcd6ff2
parent8e7527494695453454a8aeb097808ee9174774e2 (diff)
downloadfriedrich-ce3c0c5a53065dce83d0b29a6a10962c489c4e40.tar.gz
SKELETON
-rw-r--r--.eslintrc.js17
-rw-r--r--.exrc2
-rw-r--r--.gitignore1
-rw-r--r--about.html20
-rw-r--r--cover.1x.jpgbin0 -> 19271 bytes
-rw-r--r--cover.2x.jpgbin0 -> 62838 bytes
-rw-r--r--cover.pngbin0 -> 99811 bytes
-rw-r--r--create.html10
-rw-r--r--play.html111
-rw-r--r--thumbnail.jpgbin0 -> 11271 bytes
10 files changed, 161 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 0000000..b591bdc
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,17 @@
+module.exports = {
+ env: {
+ browser: true,
+ commonjs: true,
+ es2021: true,
+ },
+ extends: "eslint:recommended",
+ parserOptions: {
+ ecmaVersion: "latest",
+ },
+ rules: {
+ "no-constant-binary-expression": "error",
+ indent: [ "warn", "tab", { SwitchCase: 1 } ],
+ semi: [ "error", "never" ],
+ "no-unused-vars": [ "error", { "vars": "all", "args": "all", "argsIgnorePattern": "^_" } ],
+ },
+}
diff --git a/.exrc b/.exrc
new file mode 100644
index 0000000..0a54e5b
--- /dev/null
+++ b/.exrc
@@ -0,0 +1,2 @@
+set foldmethod=expr
+set foldexpr=getline(v:lnum)=~'^/\\*\ .*\\*\\/$'?'>1':'='
diff --git a/.gitignore b/.gitignore
index 8702f8f..8bc35d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
HIRES
+node_modules
diff --git a/about.html b/about.html
index e69de29..754c644 100644
--- a/about.html
+++ b/about.html
@@ -0,0 +1,20 @@
+<p>
+It is the summer of 1756. Frederick the Great faces the grim fact that half of
+Europe has formed an alliance. He is in deep sorrow: It seems to him that their
+aim is the annihilation of Prussia.
+
+<p>
+All against one. But only one will reign supreme. On a map of Old Europe,
+players manoeuvre their generals from city to city. Frederick must retain a
+part of each Prussian province, while the attacking powers savagely seek out
+their objectives.
+
+<p>
+Designer: Richard Sivél.
+<br> Copyright &copy; 2004, 2011 <a href="https://www.histogame.de/e_friedrich.html">histogame</a>.
+<br> Programming &copy; 2024 Tor Andersson.
+
+<ul>
+<li><a href="/friedrich/info/FriedrichRules.pdf">Rules</a>
+<li><a href="/friedrich/info/cards.html">Cards of Fate</a>
+</ul>
diff --git a/cover.1x.jpg b/cover.1x.jpg
new file mode 100644
index 0000000..b8bc066
--- /dev/null
+++ b/cover.1x.jpg
Binary files differ
diff --git a/cover.2x.jpg b/cover.2x.jpg
new file mode 100644
index 0000000..c3142d1
--- /dev/null
+++ b/cover.2x.jpg
Binary files differ
diff --git a/cover.png b/cover.png
new file mode 100644
index 0000000..8e2db37
--- /dev/null
+++ b/cover.png
Binary files differ
diff --git a/create.html b/create.html
index e69de29..38e0b2c 100644
--- a/create.html
+++ b/create.html
@@ -0,0 +1,10 @@
+<p>
+Player count:
+<br>
+<select name="players">
+<option value="">4 Player</option>
+<option value="3">3 Player</option>
+</select>
+
+<p>
+<label><input type="checkbox" name="seeded" value="true">Seeded Clock of Fate</label>
diff --git a/play.html b/play.html
new file mode 100644
index 0000000..7516ef9
--- /dev/null
+++ b/play.html
@@ -0,0 +1,111 @@
+<!DOCTYPE html>
+<!-- vim:set nowrap: -->
+<html lang="en">
+<head>
+<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, interactive-widget=resizes-content, viewport-fit=cover">
+<meta name="theme-color" content="#444">
+<meta charset="utf-8">
+<title>FRIEDRICH</title>
+<link rel="icon" href="favicon/favicon_frederick.png">
+<link rel="stylesheet" href="/fonts/fonts.css">
+<link rel="stylesheet" href="/common/client.css">
+<link rel="stylesheet" href="play.css">
+<script defer src="/common/client.js"></script>
+<script defer src="data.js"></script>
+<script defer src="play.js"></script>
+</head>
+<body>
+
+<header>
+ <div id="toolbar">
+ <details>
+ <summary><img src="/images/cog.svg"></summary>
+ <menu>
+ <li><a target="_blank" href="/friedrich/info/FriedrichRules.pdf">Rules</a>
+ <li><a target="_blank" href="/friedrich/info/cards.html">Cards</a>
+ </menu>
+ </details>
+ <button onclick="toggle_pieces()"><img src="/images/earth-africa-europe.svg"></button>
+ </div>
+</header>
+
+<aside>
+ <div id="roles"></div>
+ <div id="log"></div>
+</aside>
+
+<main>
+
+<div id="mapwrap">
+ <div id="map">
+ <div id="spaces"></div>
+ <div id="markers"></div>
+ <div id="pieces"></div>
+ </div>
+</div>
+
+<div id="defend_panel" class="panel hide">
+<div id="defend_header" class="panel_header">Defend</div>
+<div id="defend" class="panel_body">
+</div>
+</div>
+
+<div id="attack_panel" class="panel hide">
+<div id="attack_header" class="panel_header">Attack</div>
+<div id="attack" class="panel_body">
+</div>
+</div>
+
+<div id="hand_prussia_panel" class="panel">
+<div id="hand_prussia_header" class="panel_header">Prussia</div>
+<div id="hand_prussia" class="panel_body">
+</div>
+</div>
+
+<div id="hand_hanover_panel" class="panel">
+<div id="hand_hanover_header" class="panel_header">Hanover</div>
+<div id="hand_hanover" class="panel_body">
+</div>
+</div>
+
+<div id="hand_russia_panel" class="panel">
+<div id="hand_russia_header" class="panel_header">Russia</div>
+<div id="hand_russia" class="panel_body">
+</div>
+</div>
+
+<div id="hand_sweden_panel" class="panel">
+<div id="hand_sweden_header" class="panel_header">Sweden</div>
+<div id="hand_sweden" class="panel_body">
+</div>
+</div>
+
+<div id="hand_austria_panel" class="panel">
+<div id="hand_austria_header" class="panel_header">Austria</div>
+<div id="hand_austria" class="panel_body">
+</div>
+</div>
+
+<div id="hand_imperial_panel" class="panel">
+<div id="hand_imperial_header" class="panel_header">Imperial Army</div>
+<div id="hand_imperial" class="panel_body">
+</div>
+</div>
+
+<div id="hand_france_panel" class="panel">
+<div id="hand_france_header" class="panel_header">France</div>
+<div id="hand_france" class="panel_body">
+</div>
+</div>
+
+<div id="clock_of_fate_panel" class="panel">
+<div id="clock_of_fate_header" class="panel_header">Clock of Fate</div>
+<div id="clock_of_fate" class="panel_body">
+</div>
+</div>
+
+</main>
+
+<footer id="status"></footer>
+
+</body>
diff --git a/thumbnail.jpg b/thumbnail.jpg
new file mode 100644
index 0000000..8b2ac85
--- /dev/null
+++ b/thumbnail.jpg
Binary files differ