Free Pixel Castle Background: Pixel Art Parallax Background

A looping pixel parallax background: grey stone walls, banners and torches, in four layers. Four pixel art layers that loop left to right with no seam, at 480 × 270 (scale 4x for 1920 × 1080), with the scroll speed of each layer in a JSON file. Drawn by our own code. Free with credit, no login.

  • 4 layers
  • Parallax
  • 480 × 270 px
  • Seamless loop
  • Pixel art
  • CC BY 4.0

The background and its 4 layers

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

Pixel Castle Background

4 layers · 480 × 270 px · seamless loop

A looping pixel parallax background: grey stone walls, banners and torches, in four layers.

Sky Layer

Layer 1 of 4 · scroll speed 0 · solid

Layer 1 of the pixel castle background, on its own.

Mountains Layer

Layer 2 of 4 · scroll speed 0.25 · transparent

Layer 2 of the pixel castle background, on its own.

Castle Layer

Layer 3 of 4 · scroll speed 0.55 · transparent

Layer 3 of the pixel castle background, on its own.

Bushes Layer

Layer 4 of 4 · scroll speed 1 · transparent

Layer 4 of the pixel castle background, on its own.

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 Castle Background" 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