Devlog #6: Yet another rewrite...


I did another rewrite of the website. We made progress on the actual game.

The website rewrite

Yes, I know. Another rewrite. This time it's the website (again), not the game.

The site has been running on Astro since Devlog #2, and that was a big step up from the original setup. But it still meant keeping a whole Node toolchain around to build a mostly static site, and every small change went through pnpm and a pile of dependencies.

So the site is now built with astwerk, my own static site generator written in Go. Pages are Go and templ components, devlogs and bios are still Markdown with TOML front matter, and go run . builds the whole thing. Astro and pnpm are gone. The few interactive bits are still written in TypeScript, because I'm not rewriting the starfield in Go again (yes, I did do that for my own website, and it's a bad idea).

The content didn't change, but a few things got nicer along the way:

Deployment is still GitHub Pages, so nothing changes on your end. It just takes one fewer toolchain to get there.

Other changes to the site

Together with the rewrite we also made a few more changes to the site and added some new stuff.

The first thing you'll notice is that the site got a new look. The old blue and pink palette is gone, and everything is now built around green and mint on a darker background, with reworked cards and footer to match. The pixel font is still around for the small accents, because some things should stay.

One of those changes was the redesign of the About page. The old one didn't really have much to show, so the new one has much more content and it's much better structured.

Another addition is the new Credits page, which credits everything on the site and, later, the assets of the game as well. Everyone with artwork has their own page, and the names on the artwork cards and in the footer link straight to it, so you can go from a poster to everything that person made. The Team page has a section for former members now, and people who were never part of the team, like a commissioned artist, only show up in the credits with a short description of what they did.

The game progress

We have made huge progress with the combat system, after porting most of the old system to the new codebase.

We went from basically nothing, apart from a UI that mostly worked, to actually playable combat. The characters appear on the battlefield, you can select attack, the QTEs work, the enemies have AI that kind of works, and a lot more. We also have some halfway decent documentation now, though it could use some more cleanup.

Though there is one big caveat to all of this... To get all of this working I made heavy use of AI agents. I know, shame on me, but it was the best I could do. Some of our team were about to give up and go back to the old build from before the rewrite, losing all the progress we had made. So the choice was either roll back and lose that progress, or use AI to port the old stuff.

If you don't like AI code that's fine, but I see AI as a useful tool for coding. If you have a problem with that, go complain to the tutel. (btw I hate AI image gen as much as everyone else here)

The official announcement video

If you're reading this, our official announcement video is out!

You can check it out here

Astwerk

Let me talk about astwerk a bit.

Astwerk is a static site generator for Go and templ. I built it because I really don't like JavaScript and the Node.js ecosystem, but I want to do web development in a language I actually enjoy, with a build that is just go run . and a framework that gives you total freedom and control to do things the way you want. It's still pre-1.0, and this site is one of the first to use it. The others are the Astwerk website and my personal website, so most of it gets used and abused here as a form of stress test.

The basic model is a tree of nodes written in Go. A node can be a page, a directory, a folder copied from public/, or a set of pages generated from a collection. Children hang off their parent, and the shared chrome — layout, nav, footer — is just templ components. There is no file-system routing convention to learn: the tree in main.go is the site.

The rest is the stuff a site needs, without me gluing it together by hand:

  • Markdown content with typed front matter
  • Asset metadata scanned from sidecar files, with one global ID per asset
  • Relative URLs, so the same build works at the domain root or under a subpath
  • A sitemap generated from the same node tree
  • A dev server that watches files and rebuilds only the nodes affected by a change

Markdown can also call templ components now, which is how the galleries in earlier devlogs are rendered. That was the last piece that made writing these posts in Markdown feel as capable as writing them in HTML.

It's not trying to be Astro or Hugo. It's a small, opinionated generator shaped around my personal preferences. The source is on GitHub if you want to poke at it.

There are also some other cool features planned, some of which will live in their own separate add-on repos:

  • A theming system with its own data language
  • A system that lets you write Go for the front end
  • A preprocessor similar to Svelte, for reactive components written in Go
← Back to Updates