Example of how to use Swift 3 in order to read a Doom WAD file
Latest commit 402d8d3 Aug 17, 2016 @terhechte Updated for Xcode8 beta6


Swift WAD Reader

This is a simple example to showcase how to use the new Data type in Swift 3 to read binary data from a file into the correct structures in memory.

There's an accompagniying blog post on appventure.me. The will read an Doom WAD file and parse it in order to display a couple of the items (Lumps, in Doom parlance). If you don't have a Doom WAD file handy, the app can download one for you automatically.

Here's a screenshot.


Have fun

You can find me on Twitter as @terhechte