WebRTC

Two WebRTC peers talking on one screen, then a star-catching duel peer to peer, against a bot or online: the example game of JumPHP's WebRTC extension.

▶ Play
Screenshot of the WebRTC example game

What you can try

Controls

Keyboard: arrows, Space, Enter, Escape. Mouse or finger: click the buttons, hold to move. Phone: the on-screen pad works too.

Use it in your own game

The jumphp/webrtc extension: the same PHP code in the browser (RTCPeerConnection) and on the desktop (GStreamer).

tutorial, step by step · documentation · bin/jumphp extension:add <game> jumphp/webrtc

Screenshots

▶ Play