added JS UI and carddeck

This commit is contained in:
Stefan Rupp 2020-11-30 23:16:05 +01:00
parent 7191a778be
commit 1145fc7fa0
64 changed files with 18 additions and 5 deletions

BIN
deck/b01.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/b02.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/b03.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/b04.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
deck/b05.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/b06.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
deck/b07.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
deck/b08.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
deck/b09.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
deck/b10.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
deck/b11.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
deck/b12.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
deck/b13.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
deck/back1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
deck/g01.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
deck/g02.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
deck/g03.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/g04.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
deck/g05.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
deck/g06.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/g07.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
deck/g08.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
deck/g09.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/g10.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
deck/g11.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
deck/g12.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/g13.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
deck/mask.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
deck/n1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
deck/n2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/n3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
deck/n4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
deck/r01.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
deck/r02.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/r03.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
deck/r04.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/r05.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/r06.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
deck/r07.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
deck/r08.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
deck/r09.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
deck/r10.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/r11.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
deck/r12.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
deck/r13.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
deck/y01.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
deck/y02.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
deck/y03.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
deck/y04.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/y05.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
deck/y06.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
deck/y07.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/y08.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
deck/y09.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
deck/y10.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
deck/y11.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
deck/y12.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
deck/y13.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
deck/z1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
deck/z2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
deck/z3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
deck/z4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -48,17 +48,17 @@ window.onload = function()
function addResources(loader) function addResources(loader)
{ {
loader.add("mask", "https://www.denkmair.de/wizard-pixi/deck/mask.png"); loader.add("mask", "/js-cardgame/deck/mask.png");
loader.add("back", "https://www.denkmair.de/wizard-pixi/deck/back1.jpg"); loader.add("back", "/js-cardgame/deck/back1.jpg");
for (let i = 0; i < 14; i++) { for (let i = 0; i < 14; i++) {
["r", "g", "b", "y"].forEach(function (c) { ["r", "g", "b", "y"].forEach(function (c) {
let name = c + ((i < 10) ? "0" + i : i); let name = c + ((i < 10) ? "0" + i : i);
loader.add(name, "https://www.denkmair.de/wizard-pixi/deck/" + name + ".jpg"); loader.add(name, "/js-cardgame/deck/" + name + ".jpg");
}); });
} }
for (let i = 1; i < 5; i++) { for (let i = 1; i < 5; i++) {
loader.add("z" + i, "https://www.denkmair.de/wizard-pixi/deck/z" + i + ".jpg"); loader.add("z" + i, "/js-cardgame/deck/z" + i + ".jpg");
loader.add("n" + i, "https://www.denkmair.de/wizard-pixi/deck/n" + i + ".jpg"); loader.add("n" + i, "/js-cardgame/deck/n" + i + ".jpg");
} }
} }

View File

@ -15,6 +15,19 @@ def css(req, resp, file):
with open(full_file, encoding='utf-8') as fin: with open(full_file, encoding='utf-8') as fin:
resp.content = fin.read() resp.content = fin.read()
@api.route("/js-cardgame/deck/{file}")
def css(req, resp, file):
resp.headers['Content-Type'] = 'image/jpeg'
full_file = os.path.join(
os.path.dirname(__file__),
'..',
'deck/',
file
)
with open(full_file, 'rb') as fin:
resp.content = fin.read()
@api.route("/js-cardgame/js/{file}") @api.route("/js-cardgame/js/{file}")
def css(req, resp, file): def css(req, resp, file):
resp.headers['Content-Type'] = 'application/javascript' resp.headers['Content-Type'] = 'application/javascript'