Menu

Free assessmentPortuguês

Co-op horror game in the browser

Turno da Noite

Personal projectBeta

A co-op horror game that runs in the browser, for up to 8 friends playing together on a Discord call. The crew cleans an abandoned station in the dark, runs from creatures that hunt by light and suspects whoever might be the Infiltrator.

See it live (opens in a new tab)

The product in use

A promo video with music (30 seconds), made with the game's own art. A flashlight sweeps a dark corridor and finds the Inquilino, which starts hunting. Then come the ship with the friends, the four creatures, the role draw in a real match, the stations on the Moon, Mars and Europa, and the astronauts' hats.

See the project

The ship before the match: four astronauts, the air hockey table, the checkers and chess boards and, beside them, the choice of planet, difficulty and night length
Screenshot of a live match with 4 players
The start of night 1: the "Tripulante" (crew member) card says there may be an Infiltrator among the players, over the ship in the dark and the panel with the night's quota and missions
Screenshot of a live match with 4 players
See more screenshots

Context

Co-op horror games like Lethal Company and traitor games like Among Us are hits with groups of friends who play together on a Discord call. They are short, cheap and funny when things go wrong. Turno da Noite (Night Shift) is my own game that joins the two and opens straight in the browser, with nothing to install.

Challenge

The game had to work for a group of friends on a call, with no costly game server to keep running.

  • Easy to join: the host creates the room and friends join by link, with a 4-letter code.
  • Short match: a contract of 3 nights in 25 to 35 minutes.
  • Nobody sits out: whoever dies keeps playing.
  • No shared crash: if the host closes the tab, the match must not be lost.

Solution

Horror that depends on light

  • The flashlight saves you and gives you away: it shows the way, but the Inquilino hunts whoever has a light on and whoever makes noise.
  • Real darkness: each player only sees what their flashlight lights up and the rooms with the station lights on.
  • Four creatures with different rules:
    • the Inquilino catches whoever is alone;
    • the Manequim only moves in the dark;
    • the Gosma eats the scrap on the floor;
    • the Vigias on Mars call the creature when they see you.

Suspicion, and the dead

  • The Infiltrator: there may be a traitor, or not. They turn off lights, lock doors and hide scrap in the vents.
  • A vote at take-off: the majority can leave someone behind, and everyone sees who voted for whom.
  • Echoes: whoever dies becomes an Echo and plays against the crew. On the call, an Echo may lie.
  • Secret orders: each player gets a task only they see, and all of them are revealed at the end.

Made to play on a call

  • Station Microphone (optional): the game only measures the microphone’s volume. Whoever screams calls the creature.
  • On the ship, between nights: a shop, air hockey, checkers and chess.
  • Progression: the Moon, Mars and Europa, Nightmare difficulty, hats, a daily challenge with the same map for everyone and a global ranking.

Network and server

  • The host is the authority: it simulates the night and sends the state to the others over WebRTC (PeerJS). The others only send their inputs.
  • A small server of its own: one container with the game page, the PeerJS connection server with TURN and the global ranking, behind Caddy with HTTPS.
  • The host dropping is not the end: the game saves before each night. The host reopens it and carries on the contract in the same room, and friends come back on their own.

Result

The game is live and anyone can create a room from the link. A match with 4 players was checked live on 2026-11-01. The 356 automated tests cover the night, the creatures, the contract, the planets, the network, the host save and the minigames.

Numbers

Automated tests
356
Source: node --test cases in the game's 22 files under tests/ (night, contract, planets, network, host save, microphone, minigames) · measured on Nov 1, 2026
Players per room
up to 8
Source: MAX_PLAYERS in src/protocol.js, checked in a live match with 4 players · measured on Nov 1, 2026
Stations to explore
9
Source: 3 sectors on each of the 3 planets (Moon, Mars and Europa), generated by src/station.js · measured on Nov 1, 2026

Gallery

The creatures up close: the Inquilino calm and hunting, the Manequim in the light and in the dark, the Gosma, and the Vigia calm, on alert and in a blackout
Game art drawn by the game's own code (the project's gallery)
A Mars station with the lights on: the ship with three astronauts, red rooms with scrap and stains, the Inquilino, the Manequim, the Gosma and the Vigias
Game art drawn by the game's own code (the project's gallery)

Contact

Want something like Turno da Noite?

Tell me what you need, however you can put it. I reply personally, and the written assessment is free.

Taking new projects

Response time: 1 business day