Skip to content

Instantly share code, notes, and snippets.

View JettMonstersGoBoom's full-sized avatar
💭
I may be slow to respond.

Jett JettMonstersGoBoom

💭
I may be slow to respond.
View GitHub Profile
//
// drop in to sdl3_template for a fixed framebuffer experience
//
#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
#include <SDL3/SDL_stdinc.h>
#include <math.h>
// "game" size
#define APP_WIDTH 384
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
// make bin\mini.xex with mini.raw at $400 and spritedata at $10000 ( bank 1 )
// xex -o bin\mini.xex -a 400 bin\mini.raw -a 10000 resources\prince.spr
// -o output.xex
// -a address ( in hex ) filename
void fputw(uint16_t word, FILE *file)