No tool is exclusively for "side-scrolling game writing," but these free/cheap Mac apps excel at narrative design, scripting, and worldbuilding:
Start with Obsidian + Twine. Free, local-first, extensible, covers worldbuilding, branching dialogue, and export. Migrate to Scrivener/Plottr if project scales.