skx / lighthouse-of-doom

A simple text-based adventure game

Home Page:https://steve.fi/Software/lighthouse/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimize the size more

skx opened this issue · comments

We overhauled the output of strings when we added support for wrapping output:

  • When we see an 0x0d
    • We print 0x0a and 0x0d
    • (Except on Spectrum where we just print 0x0d)
  • When we see an 0x0a
    • We ignore it.

That means we could save a lot of bytes by just deleting the 0x0a from our string collection.