summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-01-01 01:38:11 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:12:55 +0100
commitf55843621918f9b28ed03111b535d934508f9a38 (patch)
tree3d6c75e3b9607c397e794a18c89af7fca9053787
parent443438629b1c6a3386aeef5b0ab33593d21a7e24 (diff)
downloadrichard-iii-f55843621918f9b28ed03111b535d934508f9a38.tar.gz
Split into separate module.
-rw-r--r--README5
-rw-r--r--play.html4
-rw-r--r--play.js8
-rw-r--r--title.sql3
4 files changed, 14 insertions, 6 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..eea9360
--- /dev/null
+++ b/README
@@ -0,0 +1,5 @@
+This game is implemented with the generous permission of Columbia Games.
+
+Rules and art assets are Copyright 2009 Columbia Games and Jerry Taylor.
+
+Source code to this digital implementation is Copyright 2021-2022 Tor Andersson.
diff --git a/play.html b/play.html
index cc14c49..ad1a364 100644
--- a/play.html
+++ b/play.html
@@ -68,7 +68,7 @@
<div class="role_vp" id="lancaster_vp"></div>
<div class="role_user">-</div>
</div>
- <div class="role_info"><div class="small_card card_back" id="lancaster_card"></div></div>
+ <div class="role_info"><div class="show card card_back" id="lancaster_card"></div></div>
</div>
<div class="role two">
<div class="role_name">
@@ -76,7 +76,7 @@
<div class="role_vp" id="york_vp"></div>
<div class="role_user">-</div>
</div>
- <div class="role_info"><div class="small_card card_back" id="york_card"></div></div>
+ <div class="role_info"><div class="show card card_back" id="york_card"></div></div>
</div>
<div id="turn_info">-</div>
</div>
diff --git a/play.js b/play.js
index b12f235..3280e0f 100644
--- a/play.js
+++ b/play.js
@@ -634,13 +634,13 @@ function update_cards() {
}
if (!game.l_card)
- document.getElementById("lancaster_card").className = "small_card card_back";
+ document.getElementById("lancaster_card").className = "show card card_back";
else
- document.getElementById("lancaster_card").className = "small_card " + CARDS[game.l_card].image;
+ document.getElementById("lancaster_card").className = "show card " + CARDS[game.l_card].image;
if (!game.y_card)
- document.getElementById("york_card").className = "small_card card_back";
+ document.getElementById("york_card").className = "show card card_back";
else
- document.getElementById("york_card").className = "small_card " + CARDS[game.y_card].image;
+ document.getElementById("york_card").className = "show card " + CARDS[game.y_card].image;
}
function update_battle() {
diff --git a/title.sql b/title.sql
new file mode 100644
index 0000000..7232372
--- /dev/null
+++ b/title.sql
@@ -0,0 +1,3 @@
+insert or replace into titles ( title_id, title_name, bgg ) values ( 'richard-iii', 'Richard III', 25277 );
+insert or replace into roles values ( 'richard-iii', 'York' );
+insert or replace into roles values ( 'richard-iii', 'Lancaster' );