
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
manic-miners-map-renderer
Advanced tools
A tool for generating PNG images of 2D map tiles for the game Manic Miners. Converts tile arrays into visually appealing images with custom biome colors and patterns.
Manic Miners Map Renderer is a tool designed to generate PNG images of 2D map tiles with a brushstroke effect for the game Manic Miners. This tool converts tile arrays into visually appealing images with custom biome colors and patterns, and includes functionalities for generating thumbnails as well.
To install the dependencies, run:
npm install
To generate a PNG image from a map file:
import { generatePNGImage } from 'manic-miners-map-renderer';
const result = await generatePNGImage({
filePath: 'path/to/mapfile.dat',
outputFileName: 'output_image.png',
});
To generate images for all map files in a directory:
import { generateMapImage } from 'manic-miners-map-renderer';
const result = await generateMapImage({
type: 'both', // 'png', 'thumbnail', or 'both'
directoryPath: 'path/to/map/files',
progressCallback: progress => {
console.log(`Processed ${progress.processedCount} of ${progress.totalCount}`);
},
});
Ensure you have a .env.local
file with the following configuration:
MMT_CATALOG_DIR=path/to/your/map/files
resetdist
: Removes the dist
directory.build
: Compiles the TypeScript code.start
: Compiles the TypeScript code and starts the application.canvas
: Used for rendering the map tiles.chardet
: For detecting the character encoding of map files.dotenv
: For loading environment variables.sharp
: For image processing.@types/chardet
: Type definitions for chardet
.@types/dotenv
: Type definitions for dotenv
.@types/node
: Type definitions for Node.js.Waleed Judah
MIT
FAQs
A tool for generating PNG images of 2D map tiles for the game Manic Miners. Converts tile arrays into visually appealing images with custom biome colors and patterns.
We found that manic-miners-map-renderer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.