Skip to content

Instantly share code, notes, and snippets.

#include <allegro.h>
#include <winalleg.h>
#include <libnet.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <time.h>
#include <stdint.h>
CC = wcc
AS = nasm
#-0 8086 instructions
#-1 186 instructions
#-2 286 instructions
#-3 386 instructions
#-4 386 instructions, optimize for 486
#-5 386 instructions, optimize for Pentium
#include <sys/nearptr.h>
#include <sys/farptr.h>
#include <go32.h>
#include <pc.h>
#include <math.h>
#include <conio.h>
int main(int argc, char **argv)
{
asm(
Iron Maiden - Flight of Icarus
Iron Maiden - Aces High
Blue Oyster Cult - Me 262
Byafra - Sonho de Icaro
Kenny Loggins - Danger Zone
Sabaton - Aces in Exile
Sabaton - No Bullets Fly
Sabaton - Night Wiches
Sabaton - The Red Baron
Sabaton - Metal Machine
#include <math.h>
#include <stdio.h>
#include <allegro.h>
#define ONE_DEG (M_PI / 180.0)
typedef struct surfdata
{
double
/*
allocate a child and move down
parent -> null
^
to
parent -> new child
^
EXPANDED FORMS OF QUATERNION PRODUCTS
HAMILTON'S
with
s1=w
s2=w'
v1=[x,y,z]
v2=[x',y',z']
qp = [s1,v1][s2,v2] = [s1s2 - v1.v2, s1v2 + s2v1 + v1 x v2]
@kdrnic
kdrnic / coq.md
Last active August 27, 2024 13:53
kdrnic's Caves of Qud beginner notes

kdrnic's Caves of Qud beginner notes

The guide below I wrote mostly for myself as a "notebook" of info I found, but then slightly expanded it with stuff that may be useful to others.

As of finishing writing, I have 16 hours of CoQ playtime and have a level 20 character, definitelly still a beginner as well, perhaps a slightly seasoned beginner.

My previous roguelike experience included beating DCSS with a minotaur berserker and playing a good amount of POWDER on my celphone.

Justification

The game is a tad opaque. As this Qud denizen explains (I don't agree with his overall opinion):

#ifndef ARR_H
#define ARR_H
#include <assert.h>
//Usage: arr_t(type) a arr_cleanup;
#define arr_cleanup __attribute__ ((__cleanup__(arr_cleanup_func)))
#define arr_t(t) \
struct \
@kdrnic
kdrnic / fix.md
Last active June 29, 2021 23:46
Finding and fixing a bug in a Lua JSON parser