Free Pixel HUD and UI: Pixel Art Game UI (PNG)

Hearts, coins, gems, keys, bars, buttons, panels, arrows and icons for a pixel game screen, at 1x and 4x. Hearts, counters, bars, stretchable panels, buttons with a pressed state and icons, drawn pixel by pixel, at 1x and 4x, with the nine-slice margins in a JSON file. Free with credit, no login.

  • 44 pieces
  • Pixel art
  • PNG + @4x
  • Nine-slice
  • CC BY 4.0

All 44 pieces, in 4 groups

The previews play the real files. Press View and download for every file and format.

Hearts and Counters

10 pieces · pixel art PNG

Full, half and empty hearts, a coin, a gem, a key, stars, a life head and a clock for the top of the screen.

Bars

5 pieces · pixel art PNG

An empty bar frame and red, green, blue and gold fills for health, energy and time.

Panels and Buttons

12 pieces · pixel art PNG

Four stretchable panels and four button colours, each with a pressed state.

Icons and Arrows

17 pieces · pixel art PNG

Arrows, play, pause, restart, home, sound, mute, settings, lock, check, close, trophy, level and a cursor.

How to use these assets

Animated sprites come as one PNG sprite sheet each, with a frame map next to it: a TexturePacker-style JSON (frame names, sizes, animations and speed) that most 2D engines read, plus a Godot 4 SpriteFrames file. Tilesets come with Tiled .tsx files.

Phaser

Load the PNG and JSON with this.load.atlas and build each animation from its frame names, as in the code below.

Godot 4

Drop the PNG and the .tres in your project and pick the .tres as the SpriteFrames of an AnimatedSprite2D. All animations and speeds are already set.

Unity

Set the texture to Sprite (Multiple), slice by cell size (it is in the JSON and on each card) and drag the frames onto the scene to make an animation.

Tiled

Open the .tsx tileset. Top-down sets have corner (Wang) sets, so the terrain brush paints shores, paths and kerbs with the right edge tiles.

this.load.atlas('knight', 'knight.png', 'knight.json');   // in preload()

this.anims.create({                                       // in create()
  key: 'run',
  frames: this.anims.generateFrameNames('knight', { prefix: 'knight-run-', start: 0, end: 7, zeroPad: 2 }),
  frameRate: 16,
  repeat: -1
});
const hero = this.add.sprite(200, 300, 'knight');
hero.setOrigin(0.5, hero.frame.customData.pivot.y);       // the pivot in the JSON is at the feet
hero.play('run');

Every PNG has clean transparency: the colour under see-through pixels is filled in from the edges, so scaled sprites get no white or dark halo.

How to credit (CC BY 4.0)

All assets are made by vinish.dev and released under Creative Commons Attribution 4.0. Use them in personal and commercial games and apps, change them and share them. The one condition is credit:

  1. Copy a credit line below.
  2. Paste it where players can see it: your game's credits screen, store page or About screen.
  3. If you changed an asset, add that after the credit, for example "recoloured".

Used many assets? One line for the whole library is enough:

2D game assets by vinish.dev (https://vinish.dev/free-2d-game-assets), CC BY 4.0

Or credit one asset by name:

"Pixel HUD and UI" by vinish.dev (https://vinish.dev/free-2d-game-assets), CC BY 4.0

Questions

Can I use these in a commercial game?

Yes. CC BY 4.0 allows commercial use. Put the credit line in your credits or About screen.

Do I need an account?

No. There is no login, sign-up or email. Press View and download and the files are yours.

Can I change them?

Yes. Recolour, resize or cut them. Keep the credit and mention that you changed them.

More from vinish.dev