this post was submitted on 02 Jun 2024
489 points (97.7% liked)

Technology

57472 readers
3868 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
 

You can play it in your browser here.

you are viewing a single comment's thread
view the rest of the comments
[–] mindbleach 4 points 2 months ago

To everyone scoffing: welcome to sizecoding! Yes, they really fit the textures and models and music in that limit. No, we don't care what the browser or hardware does for free. If you want tighter technical limits, contests go as low as you can imagine.

Here's a 256-byte raymarching demo for MS-DOS.

Here's an MS-DOS clone of Descent, in 4 KB.

Images are procedurally generated. It doesn't mean random; it means rules were followed. Music is generally MIDI-ish, with a synthesizer also built into the code. Instrument samples can also be procedurally generated, and effects like echo and stretching are commonplace. Models in this game are... well you can see why they don't take much space. But other projects get smooth and detailed objects using tesselation (remember that from 2007?), constructive solid geometry (cube with cylinder cut out), or signed distance fields (you are on your own).

The most useful tool is cheating your ass off. This game does not have doors. Everything's rectilinear. But it's based on levels you already recognize, so your brain hand-waves the missing parts and focuses on what looks like you expect. Contrast it with that Descent demo, which is dead-on. Seriously, that thing is from 1997, and they even nailed the sparkles in the healing chamber. If a bare Pentium with VGA isn't bare-metal enough for you, I'll try to find something tiny and mindblowing on ZX Spectrum, which had to be coerced into doing any damn thing.