Skip to content

reddit-pygame/sprite-builder

Repository files navigation

#Build-A-Sprite

This challenge focuses on creating a tool to create and save sprite images for use in your games. The sprites are constructed from the sprite components created by opengameart user TokyoGeisha. The included code handles loading the images from the spritesheets or you are welcome to use your own implementation.

Challenge thread: https://www.reddit.com/r/pygame/comments/4g3m7n/challenge_buildasprite/

#Challenge

Create an app that allows the user to create a sprite image using the components found in the github repo (I combined the spritesheets from the different sprite sets, added recolored versions and reorganized the spritesheets to be more uniform). For each component (hair, eyes, tops, etc.), the user should be able to change the color and style as well as toggling whether that component is used at all. The user should also be able to save the sprites they create.

The image loading in the provided code creates a dict for each type of sprite component. Most components have different styles and colors and are stored in nested dicts ([color][style]) with integer keys. For example, TOPS[0][0] is a white shirt, TOPS[0][1] is a white v-neck shirt, TOPS[1][0] is a light gray shirt, TOPS[1][1] is a light gray v-neck. The integer for each color is the same for all components that have both color and style variants. Components like shoes and skin that only have one variation (color or style) are stored in flat dicts keyed by integer.

###Some Links

Original sprite set

Expansion Pack 1

Expansion Pack 2

Reorganized Spritesheets - even if you're not using the provided code, it'll probably be easier to just download the whole repo

###Achievements

On Background - Allow the user to change the background/screen color

Accessorize, Accessorize - Add accessories like belts, necklaces, ties or whatever floats your boat

Good luck, have fun and feel free to ask for help if you need it

#####Previous Challenges

Draw Order Challenge | Spawn, Collide, Wrap | Thruster Style Movement | Conway User Interaction | JSON Loading Challenge | Map Distance Challenge | Caching Pumpkins | A Puzzling World | Turkey Shoot | All Downhill From Here | Christmas Cannon | Color Picker | Minigolf Part I: Prototype | Skeet Shoot | Spin Class | Egg Lob

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages