Mattias Gustavsson šŸ’– Profile picture
Hobby game dev, making retro style games: https://t.co/Mb7qXNtOju and public domain C libs: https://t.co/tGsN1QbZiI He/him. šŸŒˆ
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