GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

06A Snake That Exits the Far Side of a Wall and Is Drawn in Two Halves at the Seam

Treat the board as a torus, measure path distance with modulo, and draw segments on the seam on both sides so the join never breaks.

Best forWall-less arcade maps and wrapping scroll backgrounds

WRAP_MODEGRID_NSEAM_GHOSTSTICK_MS
A Snake That Exits the Far Side of a Wall and Is Drawn in Two Halves at the Seam
Open in a new tab

06 A Snake That Exits the Far Side of a Wall and Is Drawn in Two Halves at the Seam — Measured area 20.9% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · CSS Snake Game: 9 Boards That Find Their Own Path

The post this demo lives in

CSS Snake Game: 9 Boards That Find Their Own Path - preview of all 9 demosCSS Snake Game: 9 Boards That Find Their Own PathOpen a css snake game and the snake already turns toward the food before you touch a key — scene 01's shortest path and See all demos in this post

If you like this effect - similar demos