Giter Club home page Giter Club logo

spritepackloader's Introduction

⚰️ SpritePackLoader has been discontinued ⚰️

The project's repository is archived as part of the GitHub Archive Program. SpritePackLoader's code and the documentation will no longer be updated. See more information in the latest RogueLibs blog post. Feel free to fork the repository to continue working on the project.

SpritePackLoader

Installing SpritePackLoader

Follow the instructions on RogueLibs' site.

Installing SpritePacks

  1. Install BepInEx, RogueLibs and SpritePackLoader (obviously);
  2. Download your .spritepack file that you want to use;
  3. Put it in /BepInEx/spritepacks directory (create one if it doesn't exist);
  4. Launch the game!

Creating an Item SpritePack

  1. Create a separate folder where you'll put all of your assets.
  2. Create a subfolder called ITEMS inside of that folder.
  3. Get your item sprite encoded in PNG or JPEG, and put it in ITEMS.
  4. Make sure that the file's name matches the item's internal name. (e.g. Blindenizer.png)
  5. Put the contents of your folder with assets into a .zip file.
  6. Rename the .zip file to have a .spritepack extension.
  7. Publish your spritepack!

The instructions for adding any other sprites are the same, just with a different subfolder:

  • ITEMS - items and abilities;
  • OBJECTS - objects;
  • FLOORS - floor tiles;
  • BULLETS - bullets and other projectiles;
  • HAIR - hair;
  • FACIALHAIR - facial hair;
  • HEADPIECES - head pieces;
  • AGENTS - eyes, heads, arms and legs;
  • BODIES - bodies;
  • WRECKAGE - wreckage, that spawns after destroying something;
  • INTERFACE - interface stuff;
  • DECALS - decals;
  • WALLTOPS - tops of the walls;
  • WALLS - sides of the walls;
  • SPAWNERS - icons in level editor;
  • EXTRA - extra sprites, don't worry about that;
  • AUDIO - audio files (supported: .mp3, .ogg, .wav);

You can find the sprites' internal names in the tk2d archive below.

During development, you can simply put these subfolders into <game root folder>/SpritePack directory. Its contents will be read as if it were an archive. When you're finished you can just zip it and rename it to a .spritepack file.

Resources

Advanced SpritePack Creation

Don't want to create a subfolder for every single sprite type? That's okay! You can just add a ITEMS_ prefix to the file's name! (e.g. ITEMS_Blindenizer.png)

Is your sprite too big? or perhaps too small? Try adjusting the PPU (pixels-per-unit) setting by suffixing the file's name with _256x256. (e.g. Blindenizer_256x256.png) The higher PPU is, the more detailed your sprite is, and the smaller it will appear in the game.

You can even create a subfolder called ITEMS_256x256. This way all sprites in the folder will have a higher PPU.

Also, feel free to create even more subfolders in the sprite-type folders. (e.g. ITEMS/quest_items_8x8/Briefcase.png) What matters is: the prefixes, suffixes and the name of the file.

spritepackloader's People

Contributors

chasmical avatar

Watchers

 avatar

Forkers

blankcringe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.