Mattias Gustavsson đź’– Profile picture
Hobby game dev, making retro style games: https://t.co/Mb7qXNtOju and public domain C libs: https://t.co/tGsN1QbZiI
Mar 7 • 11 tweets • 5 min read
Have you ever thought about playing around with the original DOOM source code? I'd recommend it, it is really nice.

But if you grab the original source code release, it is not very easy to get it to build.

So I wanted to share this quick fix-up for it, making it easy to build Image The repo is here:


and to build it, you just go:

cl doom.c

or

tcc doom.c

no need to install any dependencies or use any build systems.

This version is for windows and wasm, but might not be too difficult to port to mac/linuxgithub.com/mattiasgustavs…
Nov 1, 2023 • 12 tweets • 5 min read
A quick and easy way to start making something fun in C.

1. Clone this repo:

2. Download tcc and unzip it

3. Execute `tcc\tcc source\main.c`

You now have window that you can plot pixels in - all you need to get started :) github.com/mattiasgustavs…
github.com/mattiasgustavs…
Image Want to run it in a browser?

4. Download and unzip the wasm build tools:

5. Execute `wasm\node wasm\wajicup.js source/main.c main.html`

You know have the same code built into a stand-alone html file, that runs in the browser github.com/mattiasgustavs…
Image
Jun 13, 2022 • 33 tweets • 21 min read
I’m going to do a 🧵 about making retro-style games in C/C++, and also about getting them to run in a browser. ImageImageImageImage So, for a good few years now, I’ve been working on various game projects and jam entries, all in a retro style, using C/C++. All the while, I’ve been looking to simplify things - fewer dependencies, simpler code, simpler build process, etc ImageImageImageImage