Gridwright Start for $1

Pixel Spaceship Generator: 2D Ship Sprites for Shooters

Build top-down pixel spaceships from snap-together parts in a 2D ship sprite generator, with factions, damage and moving flames, then fly them in Godot 4.

Ship Builder at work
Ship Builder at work: Modular pixel spaceships.

Your shooter has one good ship, the player's. Now it needs the rest of the sky: small fighters that come in waves, a gunship that takes ten hits, a freighter to protect and something big at the end of the level. You draw the second ship and it comes out as the first one with longer wings. By the fifth you are recolouring old sprites and hoping nobody notices.

A fleet drawn by hand is slow because every ship asks the same questions again. Where does the light come from? How thick is the outline? Where do the flames come out, and do the two wings really match? Answer one of them differently and that ship looks pasted in from another game.

This guide goes through what a top-down ship sprite needs to read well at small sizes, how to give it moving flames and a damaged look, and how to fly it in Godot 4. Then it shows the Ship Builder putting ships together from parts in a few clicks. You can try it here while you read.

Read at a glance

In a shooter the player sees an enemy for a second or two, usually while dodging bullets. The shape has to say what the ship is before any detail does. A few habits help:

Ship Builder in use
Ship Builder in use. Every tool runs in your browser, nothing to install.
  • Point every ship the same way. The Ship Builder draws them facing up, the way vertical shooters use them: cockpit at the top, engines at the bottom.
  • Mirror it down the middle. One crooked wing reads as a mistake at 16 pixels.
  • Give each role its own outline. A fighter is narrow with swept wings, a gunship is wide with guns on its wings, a freighter is a long block. Players learn enemies by shape, so keep each role's outline the same from level to level and change the colours instead.

One light, one outline

Pixel ships look clean when the whole sprite is lit from one side. Pick the top left and keep it for every ship, bullet and planet in the game. Edges that face the light get the bright tone, edges that face away get the dark one, and a single dark outline runs around the ship.

Space Shooter
Space Shooter: 16x16 pixel art shmup sprites: ships, enemies, bosses, bullets, explosions, scrolling space. One of the 150 packs in Gridwright.

That outline is where ships built from pieces often go wrong. If every piece carries its own outline, the joins show up as dark lines across the hull. Shade the finished ship as one sprite and the joins disappear.

Flames that flicker

A ship with still engines looks parked. Four frames of flame are enough. Give the jet a different length in each frame, play them at 12 frames per second, and the exhaust flickers.

Cooking Game Kit
Cooking Game Kit: Top-down 16x16 kitchen: stations, 20 ingredients raw to burnt, 20 dishes, order tickets, timers, FX. One of the 150 packs in Gridwright.

Leave room for it. The flames hang below the hull, so the sprite needs a strip of empty space under the engines, or the flame is cut off at the bottom edge.

Flame colour is also a cheap way to tell sides apart: blue for the player's navy, orange for the raiders, green or violet for whatever comes out of the nebula.

Damage the player can see

A ship that looks the same at full health and one hit from death tells the player nothing. A damaged version fixes that: a few holes through the plating with the frame showing around them, and scorch marks on the smaller pieces. Swap to it when the ship drops to half health. Keep the holes a few pixels in from the edge so the outline stays whole.

The fast way: the Ship Builder

The Ship Builder does all of this in your browser. It works on a grid of 16 px cells, and every part fills whole cells:

  1. Set the grid. Up to 16 by 16 cells. Every ship gets one extra row at the bottom for its flames.
  2. Place parts. Pick a group (cockpits, hulls, capital-ship slabs, wings, engines, weapons or utility pieces) and click a cell. Right-click removes a part. With Mirror on, a part left of the violet line gets its twin on the right.
  3. Add mounts. Weapons and utility pieces sit on top of hull and wing cells, so a gun can go on any wing.
  4. Or start from a ship. Random ship builds a 5 by 5 ship with a cockpit, two body cells, an engine, a pair of wings and a pair of guns, in a random faction and flame colour. The Premade list loads finished ships.
  5. Pick the look. Choose the faction, the flame colour (blue, orange, green or violet) and switch Damaged on or off. The ship is shaded as one piece, lit from the top left, with one outline.
  6. Export it. The ship as a PNG at 1x, 2x or 4x, the 4 flame frames as one sheet at 1x, 2x or 4x, and the recipe as JSON. The recipe lists every part as part id, column and row, so you can rebuild the same ship later or read it in your own code.

Exports are drawn at 1x and scaled by whole numbers, so the pixels stay square.

What the demo saves

Try it here. The free demo has 27 parts in 2 factions, Navy and Raider, and 3 premade ships: Wasp, Hornet and Falcon. Every export works on them: the PNG, the flame sheet and the recipe.

The full tool has all 66 parts in 4 factions: Navy, Raider, Military and Royal.

Your game, looking finished

Every Gridwright asset pack, made to fit together, and all 44 tools for the fiddly work, with every new release, for $17 a month. Try it in your own game first: 3 days for $1 with every tool and up to 10 packs. Cancel any time.

Start: 3 days for $1 See everything it includes

Fly it in Godot 4

The flame sheet goes into an AnimatedSprite2D:

  1. Add an AnimatedSprite2D and give it a new SpriteFrames in the Inspector.
  2. In the SpriteFrames panel at the bottom, press Add frames from sprite sheet and open the sheet.
  3. Set Horizontal to 4 and Vertical to 1, select all four frames and add them. The Wasp is 3 by 3 cells, so each frame is 48 by 64 pixels (the extra 16 are the flame row) and its 1x sheet is 192 by 64.
  4. Set the animation's speed to 12 FPS. A new SpriteFrames starts at 5, which makes the flames crawl. Looping is on by default.
  5. For the damaged look, press Add Animation, name it damaged and add the damaged sheet's frames the same way, also at 12 FPS.

Then set Project Settings > Rendering > Textures > Canvas Textures > Default Texture Filter to Nearest. A new Godot 4.7.2 project starts on Linear, which blurs pixel art.

Swap to the damaged look mid-flight

This script goes on the ship's AnimatedSprite2D. It starts each ship on a random flame frame, so a wave of ten fighters doesn't flicker in step, and at half health it swaps to the damaged animation without restarting the flame:

extends AnimatedSprite2D

@export var max_health := 10
var health := 0

func _ready() -> void:
	health = max_health
	frame = randi() % sprite_frames.get_frame_count(animation)
	play()

func take_hit(amount: int) -> void:
	health = maxi(health - amount, 0)
	if health * 2 <= max_health and animation != &"damaged":
		var f := frame
		var p := frame_progress
		play(&"damaged")
		set_frame_and_progress(f, p)
	if health == 0:
		queue_free()

Call take_hit() from your bullet's collision code. Switching to another animation starts it at frame 0, so the script saves the frame and its progress first and puts them back with set_frame_and_progress().

We ran it in Godot 4.7.2 on six Wasps made from the builder's two sheets. They started on different flame frames, the hit that took a ship from 6 to 5 health switched it to damaged on the same frame, and the last hit removed it.

When the ship looks wrong

  • The flames are cut off. The sprite has no empty row under the engines. The builder adds one.
  • The flames crawl. The animation is still on 5 FPS.
  • The ship is blurry. The texture filter is Linear. Set it to Nearest.
  • Dark seams run across the hull. The pieces were outlined one by one. Shade the ship as one sprite.
  • The damaged ship jumps sideways. Its sheet has a different frame size. Export both versions from the same recipe.
  • A whole wave flickers together. Start each ship on a random frame.

Build your fleet today

Open the Ship Builder, press Random ship until one fits your game, move a few parts by hand and export it with its damaged twin. For a whole fleet in the same style, the Modular Spaceships pack has the 66 parts in 4 factions, each also damaged, with 30 premade ships, turrets in 8 directions and shield bubbles. Both are part of Gridwright: 44 tools and 150 asset packs, 3 days for $1, then $17 a month.

Your game, looking finished

Every Gridwright asset pack, made to fit together, and all 44 tools for the fiddly work, with every new release, for $17 a month. Try it in your own game first: 3 days for $1 with every tool and up to 10 packs. Cancel any time.

Start: 3 days for $1 See everything it includes