Libraries

s&box libraries

Sprite Tools (OBSOLETE)

facepunch.spritetools

Do not use anymore, SpriteRenderer and Sprite Resource are built-in now.

About

UPDATE: DO NOT use this library unless you've already made a game with it and need it for backwards compatibility. The Sprite resource and SpriteRenderer component now exist in-engine and do not require a Library to be used.
About Sprite Tools

A suite of 2D Sprite tools for S&box.

Features:
> 2D Sprite Resource
- Animations
- Change Speed/FPS
- Change Origin Point
- Toggle Looping
- Attach Points
- Broadcast Messages
- Spritesheet Importer
> 2D Sprite Component
- Set Current Animation, along with playback speed
- ActionGraph properties for each Broadcast Event
- Create Attach Points as "Procedural Bone" child GameObjects
- Enable/Disable Shadows
- Tint Color (Tints the sprite a specific color, removing non-existent colors)
- Flash Color (Blends the color of each pixel towards the Flash Color, replacing all pixels with one color)
> 2D Tileset Resource
- Tiles
- Custom Tile Sizes
- Tile Metadata (Names/Tags)
- Autotile Brushes
- Support for 2x2, 3x3, and 3x3 minimal tilesets
- Import Autotiles from an existing Resource
> 2D Tileset Component
- Tile/Autotile Painting (Paint Tool, Eraser Tool, Rectangle Tool, Line Tool)
- Multiple Layers (each can have it's own Tileset)
- Collision Generation

Report Issues Here >>> https://github.com/Facepunch/sbox-spritetools/issues <<<

2dartpixelspritetools

Media

More by Facepunch

01
Player Controller thumbnail
Player Controller facepunch.playercontroller

Components for player controller

playercontrollerfirstpersonshooterhalflifequake
+0 24h
98favorites
74upvotes
95%Wilson score
02
SDF Mesh Library thumbnail
SDF Mesh Library facepunch.libsdf

Marching cubes & squares mesh generation

procgenmesh3d2d
+0 24h
28favorites
24upvotes
86%Wilson score
03
Game Events thumbnail
Game Events facepunch.libevents

Strongly typed game events

eventeventsfsm
+0 24h
15favorites
13upvotes
77%Wilson score
04
Wheel Collider thumbnail
Wheel Collider facepunch.libwheel

No summary provided.

+0 24h
12favorites
7upvotes
32%Wilson score
05
State Machines thumbnail
State Machines facepunch.libstates

State machines using Action Graph.

fsmstatesactiongraphstatemachine
+0 24h
11favorites
14upvotes
78%Wilson score
06
Spline Tools thumbnail
Spline Tools facepunch.splinetools

Work In Progress Spline Tools.

+0 24h
10favorites
17upvotes
82%Wilson score