A web application for creating custom sprite maps by overlaying and coloring grayscale layers on a base model.
- Layer-based sprite composition
- Real-time color adjustment for each layer
- Live preview with walking animation
- Export functionality for the final sprite map
- Responsive design for desktop and mobile
- Node.js (v16 or higher)
- npm (v7 or higher)
- Clone the repository:
git clone [repository-url]
cd sprite-map-creator- Install dependencies:
npm install- Start the development server:
npm run devThe application will be available at http://localhost:3000.
Place your sprite assets in the public/assets directory:
BASE.png: Base model with walking animation framesHAIR.png: Grayscale hair layerSHIRT.png: Grayscale shirt layerPANTS.png: Grayscale pants layer
All assets should be pre-aligned and have the same dimensions.
To customize the walking animations, modify the frame configuration in src/components/PreviewCanvas.tsx. The default configuration uses 3 frames for each direction.
src/
components/
ColorSlider.tsx # Color adjustment controls
PreviewCanvas.tsx # Phaser game canvas for preview
ExportButton.tsx # Export functionality
utils/
colorUtils.ts # Color manipulation utilities
App.tsx # Main application component
main.tsx # Application entry point
- Add the new grayscale asset to
public/assets/ - Update the layers state in
App.tsx - Add the layer loading in
PreviewCanvas.tsx
MIT