Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycrow101 committed Sep 27, 2020
0 parents commit 7ff83d8
Show file tree
Hide file tree
Showing 5 changed files with 766 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Half-Life sprite plugin for GIMP
GIMP plugin that allows you to import and export sprites from a Half-Life game.
<img src="https://github.com/Psycrow101/GIMP-hl-sprite-plugin/blob/master/img/1.png" width="70%"/>

## Requirements
1. [GIMP](https://www.gimp.org/), recommended GIMP version >= 2.10.
2. GIMP's python module gimpfu.

## Installation
Download and extract the `file-spr` folder to GIMP's `plug-ins` folder:
**Windows**: `C:\Users\<USERNAME>\AppData\Roaming\GIMP\2.10\plug-ins`
**Linux**: `/home/<USERNAME>/.config/GIMP/2.10/plug-ins`
**macOS**: `/Users/<USERNAME>/Library/Application Support/GIMP/2.10/plug-ins`

*If you can’t locate the `plug-ins` folder, open GIMP and go to Edit > Preferences > Folders > Plug-Ins and use one of the listed folders.*

## Usage
To import `.spr` file into GIMP, go to File > Open.

To export image as `.spr` file from GIMP, go to File > Export As then enter the file name with `*.spr` extension and click *Export*.
In the dialog box that appears, you can configure the exported sprite.

<img src="https://github.com/Psycrow101/GIMP-hl-sprite-plugin/blob/master/img/2.png" width="50%"/>

In this version of the plugin, export of frame groups is supported only if you have previously imported a sprite containing frame groups and have not changed the color indexing mode. Otherwise, the layer groups will be merged.

## See also
[GIMP plugin for converting an image to Half-Life alphatest mode](https://github.com/Psycrow101/GIMP-hl-alphatest-plugin)
Loading

0 comments on commit 7ff83d8

Please sign in to comment.