Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
manic-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-map-renderer demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.