Add the Lexy tileset and make it the default, finally!

This commit is contained in:
Eevee (Evelyn Woods) committed 2020-09-24 19:20:29 -06:00
1 parent 19fd4273f1
commit c231e7fc53
19 files changed
+13 -10

No files matched your search

+13 -10
View File
@@ -1879,34 +1879,37 @@ class Conductor {
async function main() {
let local = !! location.host.match(/localhost/);
let query = new URLSearchParams(location.search);
// Pick a tileset
// These alternative ones only exist locally for me at the moment, since
// they're part of the commercial games!
// These alternative ones only work locally for me for testing purposes, since they're part of
// the commercial games!
let tilesheet = new Image();
let tilesize;
let tilelayout;
if (query.get('tileset') === 'ms') {
if (local && query.get('tileset') === 'ms') {
tilesheet.src = 'tileset-ms.png';
tilesize = 32;
tilelayout = CC2_TILESET_LAYOUT;
}
else if (query.get('tileset') === 'steam') {
else if (local && query.get('tileset') === 'steam') {
tilesheet.src = 'tileset-steam.png';
tilesize = 32;
tilelayout = CC2_TILESET_LAYOUT;
}
else if (query.get('tileset') === 'lexy') {
tilesheet.src = 'tileset-lexy.png';
tilesize = 32;
tilelayout = LL_TILESET_LAYOUT;
}
else {
else if (query.get('tileset') === 'tworld') {
tilesheet.src = 'tileset-tworld.png';
tilesize = 48;
tilelayout = TILE_WORLD_TILESET_LAYOUT;
}
else {
// Default to Lexy's Labyrinth tileset
tilesheet.src = 'tileset-lexy.png';
tilesize = 32;
tilelayout = LL_TILESET_LAYOUT;
}
// TODO would be fabulous to not wait on this before creating conductor
await tilesheet.decode();
let tileset = new Tileset(tilesheet, tilelayout, tilesize, tilesize);
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.