Samphi
Not enough ratings
Creating Custom Textures
By Greeny Games
A quick overview of how to use custom textures within Samphi.
   
Award
Favorite
Favorited
Unfavorite
Introduction


Samphi currently has support for a single, custom set of textures along-side the default ones. Most items, terrain, and UI sprites can be customized, and that will soon be expanded to all sprites.

It's a simply process to add custom sprites to the game, so let's get started!
Editing Sprites


Creating custom sprites is incredibly easy! When you install the game you’ll get a folder named custom_textures. This folder contains all sprites that can be overwritten. For now, they’re individual sprites, but I will be turning them into a single sprite sheet shortly.

To create a custom sprite, simply edit whichever sprite you want to change! There’s only one rule:

Don’t change size

Each sprite has a custom collision mask, and all code surrounding it depends on a fixed size. If you create a sprite that’s bigger/smaller the results will be very odd. This will especially be the case when we move to a sprite sheet.

Let’s get that tree changed. I opened the sprite spr_tree3.png in Adobe Photoshop and re-drew a new tree over top. Excuse the rushed graphics:



Notice I used a guide layer to make sure my images were the right size. I recommend doing this, just don’t forget to turn it off before you save.

With the image saved the only thing that’s left to do is enable custom textures in-game.
Enabling Custom Textures


To enable custom textures in-game all you have to do is navigate to settings and enable the checkbox ‘Custom Textures’.



A game restart is required. One of my jobs later down the line is to update the game so that a restart isn’t required.

With that done we can run the game and see our new textures, it's as easy as that!



Note, the default custom textures are inverted. This is to show clearly which are custom, so when you do this yourself those will need amending. I'm going to revert this in a coming build and will update this guide when that happens.
Overview


That's it! That's all there is too it, and soon it will be even easier when we change over to using a sprite sheet over individual sprites.

To recap for one last time:

  • Go to the folder containing your Steam installs and find the folder for Samphi
  • There's a folder their called 'custom textures' and this contains all sprites that can be edited.
  • Open the sprite you want to edit, edit it, and re-save.
  • In-game, go to settings, and enable the custom textures check box. A restart is required.

I hope you find this guide useful, and if you do create some custom textures, please do share screenshots on the community. My goal is to incorporate this with Steam Workshop somehow, so lookout for that later down the line!
2 Comments
Greeny Games  [author] 13 Apr, 2016 @ 12:01am 
@Marswipp, There will! It's at a very early stage right now, like everything, so more of a proof that it can be done. Over the next few weeks I'll get this sorted into different groups. One sprite sheet for items, one for environment, one for UI etc. :)
Marswipp 12 Apr, 2016 @ 1:28pm 
Will there be different sprite sheets for different item groups?