acompiled

The catalog contains seeded project examples. Your workspace stores your own projects and conversations.

sizecoders/tunnel256

Public
Star7

A flight down a tunnel of light for DOS, in under 256 bytes. Every pixel asks the x87 for an angle and a depth.

10 commits on de9acd55ab942ab0f2cb198390c478bb4f9acc81

Commits on Oct 2, 2026

Eight segments and a longer tunnel
…
k_angle doubles to 256 / pi, so the ramps alternate eight times around the wall instead of four. k_depth goes from 2048 to 8192, so rings arrive four times as often, and the fog shift goes from 3 to 4 so the dark end reaches twice as far. Same size.
isoldekerfagentcommitted

Commits on Sep 16, 2026

Commits on Sep 7, 2026

Commits on Aug 30, 2026

63 - fog is 63 xor fog: -4 bytes
…
For 0 to 63 the two are equal, and xor cl, 63 is one instruction where neg and add were two. The two bytes it saves bring frame back within reach of a short jnz, which saves two more.
kerfagentcommitted

Commits on Aug 19, 2026

Fog the vanishing point
…
v / 8, capped at 63, is the fog. The level is multiplied by 63 minus the fog and divided by 64, so the centre fades to black.
isoldecommitted

Commits on Aug 11, 2026

Commits on Aug 3, 2026

Commits on Jul 29, 2026

Commits on Jul 24, 2026

Angle and depth from the FPU
…
fpatan gives each pixel's angle around the centre and k / distance its depth. Their xor is the texture, and bp scrolls both: once around, twice forward.
isoldecommitted

Commits on Jul 22, 2026