Skip to content

Instantly share code, notes, and snippets.

@d7samurai
d7samurai / .readme.md
Last active March 19, 2026 09:15
Minimal WASAPI

Minimal WASAPI

Minimal WASAPI reference implementation. Runnable console application contained in a single function and laid out in a linear, step-by-step fashion. No modern C++ / OOP / obscuring cruft. Produces a steady sine wave sound.

(This is a re-post of the same gist I posted a few years earlier, simply due to me wanting the Minimal D3D11 series to be listed contiguously and it's not possible to hide or rearrange gists).

@ske2004
ske2004 / mario.c
Last active May 10, 2025 14:10
Generates Mario Theme Song
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define NUM_SAMPLES 44100
#define PI 3.14159265
// ------ NOTE IDS ------
#define C_ 0
#define CS 1
#define D_ 2
@Shoozza
Shoozza / game_engine_framework_export_size_windows.md
Last active April 2, 2025 17:53
Empty Project Game Engine/Framework Export Size (uncompressed Windows Executable and Data)

Empty Project Export sizes on Windows for Game Engines, Game Frameworks, Virtual Consoles and Game Programming Languages

Name Size ↑¹ Size (compressed with UPX ) ↑² Link
PlummersSoftwareLLC/HelloAssembly (Theron) 0.39 KB ??? 🔗
ske2004/Win32.c 0.82 KB ??? 🔗
rxi/kit 55.00 KB 30.50 KB 🔗
WASM-4 (c version) 236.00 KB ??? 🔗
raylib 0.99 MB 275.00 KB 🔗
BlitzMax (MaxIDE 1.43) 1.49 MB 650.00 KB [🔗](https://nitrologic.itch.io/bl
@Shoozza
Shoozza / Game Development Resources.md
Last active January 31, 2026 21:24
Game Development Resources

Game Development Resources v1.83

Last update on: 2026-01-31

Please insert in alphabetical order Please make sure all entries start with "* "

Glossary

  • ➖: Placeholder

Usage

  • 🎮: Used in commercial games
// clang-format off
// Compile the program linking user32.lib
#pragma comment(lib, "user32.lib")
#include <Windows.h>
// Event handler.
LRESULT CALLBACK WndProc(
HWND hWnd, // Window the event was assigned to.
UINT Msg, // Message type.
@ske2004
ske2004 / Win32.c
Last active March 31, 2025 22:01
811 byte windows executable with graphics update.
// Compile like this:
// cl Win32.c /O1 /c /GS- && crinkler Win32.obj user32.lib kernel32.lib gdi32.lib /SUBSYSTEM:WINDOWS /NODEFAULTLIB /UNSAFEIMPORT /TINYHEADER
#include <windows.h>
#define WN_TITLE "Unnamed"
#define WN_CLASS "WindowClassName"
#define WN_WIDTH 800
#define WN_HEIGHT 600