Free Trains and Trams: Top-Down Sprites in 16 Directions

Locomotives, a high-speed train, commuter and metro cars, wagons and trams for top-down rail games, 16 headings each. Each one has 16 directions in one 4 × 4 sprite sheet, rendered from our own 3D models with the same light, each scaled to fill its frame. Free with credit, no login.

  • 10 vehicles
  • 16 directions
  • 4 × 4 sheets
  • PNG + JSON + Godot .tres
  • CC BY 4.0

All 10 vehicles

The previews play the real files. Press SHEET to see the sprite sheet itself, or View and download for every file and format.

Steam Locomotive

16 directions · 240 × 208 px frames · top-down 3/4 view

One frame every 22.5°, rendered from our own 3D model, with a soft ground shadow.

Diesel Locomotive

16 directions · 240 × 208 px frames · top-down 3/4 view

One frame every 22.5°, rendered from our own 3D model, with a soft ground shadow.

Electric Locomotive

16 directions · 240 × 208 px frames · top-down 3/4 view

One frame every 22.5°, rendered from our own 3D model, with a soft ground shadow.

High Speed Train

16 directions · 240 × 224 px frames · top-down 3/4 view

One frame every 22.5°, rendered from our own 3D model, with a soft ground shadow.

Commuter Train

16 directions · 240 × 224 px frames · top-down 3/4 view

One frame every 22.5°, rendered from our own 3D model, with a soft ground shadow.

Metro Car

16 directions · 256 × 224 px frames · top-down 3/4 view

One frame every 22.5°, rendered from our own 3D model, with a soft ground shadow.

Boxcar

16 directions · 256 × 224 px frames · top-down 3/4 view

One frame every 22.5°, rendered from our own 3D model, with a soft ground shadow.

Tank Wagon

16 directions · 240 × 208 px frames · top-down 3/4 view

One frame every 22.5°, rendered from our own 3D model, with a soft ground shadow.

Vintage Tram

16 directions · 288 × 240 px frames · top-down 3/4 view

One frame every 22.5°, rendered from our own 3D model, with a soft ground shadow.

Modern Streetcar

16 directions · 256 × 224 px frames · top-down 3/4 view

One frame every 22.5°, rendered from our own 3D model, with a soft ground shadow.

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:

"Steam Locomotive" 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