Skip to content

Commit

Permalink
Bump v1.1.2
Browse files Browse the repository at this point in the history
Updates dist
  • Loading branch information
Marak committed Feb 6, 2024
1 parent 8cbd2b3 commit 76833ea
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 15 deletions.
28 changes: 22 additions & 6 deletions dist/labyrinthos.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ var TileMap = exports["default"] = /*#__PURE__*/function () {
this.data = this.initializeDataArray();
// ASCII representations for tiles 0-10
// TODO: Is there a better default set of ASCII characters we can use?
this.defaultRogueLike = ['-', '#', '+', '0', '<', '>', '$', '#', '@', '&', '?'];
this.defaultRogueLike = ['-', '#', '+', '0', '<', '>', '$', '', '@', '&', '?'];
this.seedRandom();
}
_createClass(TileMap, [{
Expand Down Expand Up @@ -585,6 +585,22 @@ function init3DArray(width, height, depth) {
return arr;
}

/* default roguelike `TileSet` mappings
{
"void": 0,
"wall": 1,
"floor": 2,
"door": 3,
"special_door": 4,
"enter": 5,
"exit": 6,
"entity": 7,
"block": 8,
"bush": 9,
"grass": 10
}
*/

},{"./util/generateTiledJSON.js":25,"./util/mersenne.js":26,"./util/noise.js":27}],6:[function(require,module,exports){
"use strict";

Expand Down Expand Up @@ -1435,8 +1451,8 @@ var BeattieSchoberth = exports.BeattieSchoberth = /*#__PURE__*/function () {
}();
var TILE = {
VOID: 0,
FLOOR: 1,
WALL: 2,
WALL: 1,
FLOOR: 2,
DOOR: 3,
SPECIAL_DOOR: 4,
ENTER: 5,
Expand Down Expand Up @@ -1904,8 +1920,8 @@ var EXIT = 'exit';
var DIRECTIONS = ['n', 'e', 's', 'w'];
var TILE = {
VOID: 0,
FLOOR: 1,
WALL: 2,
WALL: 1,
FLOOR: 2,
DOOR: 3,
SPECIAL_DOOR: 4,
ENTER: 5,
Expand Down Expand Up @@ -2500,7 +2516,7 @@ function ALGORITHM_METROIDVANIA(tileMap, options) {
var generator = new Metroidvania({
roomWidth: roomSizeWidth,
roomHeight: roomSizeHeight,
maxFails: 8000,
maxFails: 25000,
width: numRoomsWide,
// Max number of zones wide
height: numRoomsWide,
Expand Down
2 changes: 1 addition & 1 deletion dist/labyrinthos.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/labyrinthos.min.js.map

Large diffs are not rendered by default.

28 changes: 22 additions & 6 deletions examples/browser/labyrinthos.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ var TileMap = exports["default"] = /*#__PURE__*/function () {
this.data = this.initializeDataArray();
// ASCII representations for tiles 0-10
// TODO: Is there a better default set of ASCII characters we can use?
this.defaultRogueLike = ['-', '#', '+', '0', '<', '>', '$', '#', '@', '&', '?'];
this.defaultRogueLike = ['-', '#', '+', '0', '<', '>', '$', '', '@', '&', '?'];
this.seedRandom();
}
_createClass(TileMap, [{
Expand Down Expand Up @@ -585,6 +585,22 @@ function init3DArray(width, height, depth) {
return arr;
}

/* default roguelike `TileSet` mappings
{
"void": 0,
"wall": 1,
"floor": 2,
"door": 3,
"special_door": 4,
"enter": 5,
"exit": 6,
"entity": 7,
"block": 8,
"bush": 9,
"grass": 10
}
*/

},{"./util/generateTiledJSON.js":25,"./util/mersenne.js":26,"./util/noise.js":27}],6:[function(require,module,exports){
"use strict";

Expand Down Expand Up @@ -1435,8 +1451,8 @@ var BeattieSchoberth = exports.BeattieSchoberth = /*#__PURE__*/function () {
}();
var TILE = {
VOID: 0,
FLOOR: 1,
WALL: 2,
WALL: 1,
FLOOR: 2,
DOOR: 3,
SPECIAL_DOOR: 4,
ENTER: 5,
Expand Down Expand Up @@ -1904,8 +1920,8 @@ var EXIT = 'exit';
var DIRECTIONS = ['n', 'e', 's', 'w'];
var TILE = {
VOID: 0,
FLOOR: 1,
WALL: 2,
WALL: 1,
FLOOR: 2,
DOOR: 3,
SPECIAL_DOOR: 4,
ENTER: 5,
Expand Down Expand Up @@ -2500,7 +2516,7 @@ function ALGORITHM_METROIDVANIA(tileMap, options) {
var generator = new Metroidvania({
roomWidth: roomSizeWidth,
roomHeight: roomSizeHeight,
maxFails: 8000,
maxFails: 25000,
width: numRoomsWide,
// Max number of zones wide
height: numRoomsWide,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "labyrinthos",
"version": "1.1.1",
"version": "1.1.2",
"description": "A JavaScript library for procedural generation of maps, mazes, and biomes, supporting various algorithms and terrain types.",
"main": "./lib/labyrinthos.js",
"type": "module",
Expand Down

0 comments on commit 76833ea

Please sign in to comment.