Planet Guard

Saved games stay in this browser only.

This game needs a keyboard (or a gamepad). It has no touch controls, so it cannot be played on a phone or tablet without one.

About the game

Planet Guard is a small space shooter with a twist: the thing you protect is also moving. A bright star sits in the middle of the screen, and a blue planet, your home, circles around it. Red alien ships keep arriving and many of them head straight for the planet. You fly a tiny blue ship and your job is to shoot them down before they chip away at the planet's health.

The story on the title page is one line long: the scientists on the planet are one orbital cycle away from a weapon that can end the invasion, so you only have to hold out until the planet has gone around the star once. A percentage next to the planet shows how far along it is, and when it reaches 100 the planet fires its weapon, the enemies are wiped out and you win. If the planet's health runs out first, the game ends with a "YOU LOSE!" message.

There are two green bars in the top right corner: the upper one belongs to the planet and the lower one to your ship. Your ship is a lot more fragile than the planet. Everything in the game feels the star's gravity, including you, your bullets and the enemies, so flying straight is harder than it looks, and good shots often need a small curve.

Two smaller planets, orange and pink, share the sky with yours and have gravity of their own.

It was made by jannik4 for Bevy Jam #5 (2024, theme "cycles"), in Rust with the Bevy engine.

Playing it here

Click Click to play and wait a few seconds while the game loads (about 6 MB), then pick a difficulty with the mouse: Easy, Medium or Hard. They differ in how long the orbit takes (30, 60 or 90 seconds), how tough the enemies are and how much health your ship has. Nothing is saved.

Controls

Key Action
W or Up thrust
S or Down brake
A / D or Left / Right steer
Space fire
Hold Esc or Backspace quit to the menu
M mute
Mouse pick the difficulty

Tips

Stay near the planet. Enemies that reach it do damage every time, so shooting them on their way in matters more than chasing the ones that wander off.

Brake before you aim. A ship that is already drifting keeps drifting while you shoot, and the star pulls it further. Stop first, then fire.

Start on Easy. One orbit takes half a minute there, which is enough to learn how gravity bends your movement before you try the longer orbits.

Credits and licence

Planet Guard was made by jannik4. The game is released, at your option, under the Apache License 2.0, the MIT License or CC0 1.0. The sound effects are credited to Kenney (kenney.nl, CC0); everything else on screen is drawn by the code, and the text uses Bevy's built-in font (Fira Mono, SIL Open Font License 1.1). We changed nothing in the game; the page that hosts it is ours. The licence texts, those of the Rust libraries compiled into the game and the source are linked from this page.

FAQ

Is there a way to pause? No. Hold Esc or Backspace for a moment to return to the menu, which ends the run.

What does the text at the bottom right say? It is the version label the author left in the game ("dev-build").

I cannot hit anything. Remember that your bullets bend with the star's gravity. Aim a little to the side of the target and test it with a shot on Easy.