Skip to content

Commit 76833ea

Browse files
committed
Bump v1.1.2
Updates dist
1 parent 8cbd2b3 commit 76833ea

File tree

5 files changed

+47
-15
lines changed

5 files changed

+47
-15
lines changed

dist/labyrinthos.js

+22-6
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ var TileMap = exports["default"] = /*#__PURE__*/function () {
263263
this.data = this.initializeDataArray();
264264
// ASCII representations for tiles 0-10
265265
// TODO: Is there a better default set of ASCII characters we can use?
266-
this.defaultRogueLike = ['-', '#', '+', '0', '<', '>', '$', '#', '@', '&', '?'];
266+
this.defaultRogueLike = ['-', '#', '+', '0', '<', '>', '$', '', '@', '&', '?'];
267267
this.seedRandom();
268268
}
269269
_createClass(TileMap, [{
@@ -585,6 +585,22 @@ function init3DArray(width, height, depth) {
585585
return arr;
586586
}
587587

588+
/* default roguelike `TileSet` mappings
589+
{
590+
"void": 0,
591+
"wall": 1,
592+
"floor": 2,
593+
"door": 3,
594+
"special_door": 4,
595+
"enter": 5,
596+
"exit": 6,
597+
"entity": 7,
598+
"block": 8,
599+
"bush": 9,
600+
"grass": 10
601+
}
602+
*/
603+
588604
},{"./util/generateTiledJSON.js":25,"./util/mersenne.js":26,"./util/noise.js":27}],6:[function(require,module,exports){
589605
"use strict";
590606

@@ -1435,8 +1451,8 @@ var BeattieSchoberth = exports.BeattieSchoberth = /*#__PURE__*/function () {
14351451
}();
14361452
var TILE = {
14371453
VOID: 0,
1438-
FLOOR: 1,
1439-
WALL: 2,
1454+
WALL: 1,
1455+
FLOOR: 2,
14401456
DOOR: 3,
14411457
SPECIAL_DOOR: 4,
14421458
ENTER: 5,
@@ -1904,8 +1920,8 @@ var EXIT = 'exit';
19041920
var DIRECTIONS = ['n', 'e', 's', 'w'];
19051921
var TILE = {
19061922
VOID: 0,
1907-
FLOOR: 1,
1908-
WALL: 2,
1923+
WALL: 1,
1924+
FLOOR: 2,
19091925
DOOR: 3,
19101926
SPECIAL_DOOR: 4,
19111927
ENTER: 5,
@@ -2500,7 +2516,7 @@ function ALGORITHM_METROIDVANIA(tileMap, options) {
25002516
var generator = new Metroidvania({
25012517
roomWidth: roomSizeWidth,
25022518
roomHeight: roomSizeHeight,
2503-
maxFails: 8000,
2519+
maxFails: 25000,
25042520
width: numRoomsWide,
25052521
// Max number of zones wide
25062522
height: numRoomsWide,

dist/labyrinthos.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/labyrinthos.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/browser/labyrinthos.js

+22-6
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ var TileMap = exports["default"] = /*#__PURE__*/function () {
263263
this.data = this.initializeDataArray();
264264
// ASCII representations for tiles 0-10
265265
// TODO: Is there a better default set of ASCII characters we can use?
266-
this.defaultRogueLike = ['-', '#', '+', '0', '<', '>', '$', '#', '@', '&', '?'];
266+
this.defaultRogueLike = ['-', '#', '+', '0', '<', '>', '$', '', '@', '&', '?'];
267267
this.seedRandom();
268268
}
269269
_createClass(TileMap, [{
@@ -585,6 +585,22 @@ function init3DArray(width, height, depth) {
585585
return arr;
586586
}
587587

588+
/* default roguelike `TileSet` mappings
589+
{
590+
"void": 0,
591+
"wall": 1,
592+
"floor": 2,
593+
"door": 3,
594+
"special_door": 4,
595+
"enter": 5,
596+
"exit": 6,
597+
"entity": 7,
598+
"block": 8,
599+
"bush": 9,
600+
"grass": 10
601+
}
602+
*/
603+
588604
},{"./util/generateTiledJSON.js":25,"./util/mersenne.js":26,"./util/noise.js":27}],6:[function(require,module,exports){
589605
"use strict";
590606

@@ -1435,8 +1451,8 @@ var BeattieSchoberth = exports.BeattieSchoberth = /*#__PURE__*/function () {
14351451
}();
14361452
var TILE = {
14371453
VOID: 0,
1438-
FLOOR: 1,
1439-
WALL: 2,
1454+
WALL: 1,
1455+
FLOOR: 2,
14401456
DOOR: 3,
14411457
SPECIAL_DOOR: 4,
14421458
ENTER: 5,
@@ -1904,8 +1920,8 @@ var EXIT = 'exit';
19041920
var DIRECTIONS = ['n', 'e', 's', 'w'];
19051921
var TILE = {
19061922
VOID: 0,
1907-
FLOOR: 1,
1908-
WALL: 2,
1923+
WALL: 1,
1924+
FLOOR: 2,
19091925
DOOR: 3,
19101926
SPECIAL_DOOR: 4,
19111927
ENTER: 5,
@@ -2500,7 +2516,7 @@ function ALGORITHM_METROIDVANIA(tileMap, options) {
25002516
var generator = new Metroidvania({
25012517
roomWidth: roomSizeWidth,
25022518
roomHeight: roomSizeHeight,
2503-
maxFails: 8000,
2519+
maxFails: 25000,
25042520
width: numRoomsWide,
25052521
// Max number of zones wide
25062522
height: numRoomsWide,

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "labyrinthos",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "A JavaScript library for procedural generation of maps, mazes, and biomes, supporting various algorithms and terrain types.",
55
"main": "./lib/labyrinthos.js",
66
"type": "module",

0 commit comments

Comments
 (0)