Skip to content

Civ13/SS14TilesetConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SS14 Image Converter

This project provides a PHP library for converting images specifically for the SS14 game. It includes functionality to transform images and generate corresponding JSON metadata.

Installation

To install the project, you can use Composer. Run the following command in your terminal:

composer install

Usage

To use the SS13TilesetConverter, you need to provide the input and output directories along with the base file name of the images you want to convert.

Here is an example of how to use the converter:

$options = getopt("I:O:");
if (!isset($options['I']) || !isset($options['O'])) {
    die("Usage: php script.php -I \"input_directory\" -O \"output_directory\"" . PHP_EOL);
}

$inputDir = rtrim($options['I'], DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
$outputDir = rtrim($options['O'], DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;

$converter = new Civ14\SS13TilesetConverter($baseFileName, $inputDir, $outputDir);
$converter->run();

Requirements

  • PHP 7.4 or higher
  • GD extension enabled

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

A PHP project for converting tileset images from Civ13 to the format used by SS14.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages