Skip to content

Instantly share code, notes, and snippets.

View sgermain06's full-sized avatar

Simon Germain sgermain06

View GitHub Profile
@sgermain06
sgermain06 / FIRE.C
Last active April 18, 2025 04:08
FIRE.C
/**
* Turbo C implementation of https://gist.github.com/specht/7c3fd49400643d923c66de88a272f5e5
*/
#include <conio.h>
#include <math.h>
#include <stdlib.h>
#include "vga.h"
void fire(int x1, int y1, int x2, int y2) {
program firetest;
{ Classic fire animation using VGA mode 13h and colors 0 to 63... wee !!! }
uses Crt, VGA;
var i, heat: Integer;
quit: Boolean;
c: Char;