Live demo

Play a TV game with real SofAds ads.

Couch Stars is a tiny TV game with SofAds inside. Play a level and an ad shows at the break. Run out of lives and you can watch an ad for an extra life: scan its QR code with your phone and the life is yours.

SofAds
Arrow keys move, Enter is OK, Escape or Backspace is BACK. Or use the remote, or tap the left or right half of the screen.

The code

Three calls are all a game needs. Start SofAds once, show an ad between levels, and give a reward when the player chose to watch one.

// When the game starts
SofAds.init({ appId: "sof_YOUR_APP_ID" });

// Between levels
SofAds.showInterstitial({ placement: "level_break" });

// When the player wants an extra life
SofAds.showRewarded({
  placement: "extra_life",
  onReward: () => player.addLife(),
});

Good to know

  • Test ads only. The demo shows SofAds test ads. They are never billed.
  • The scan is real. Scan the QR code of the extra-life ad with your phone and the reward unlocks on the TV.
  • Never blocks the game. Ad or no ad, the game always carries on.