Skip to content

Instantly share code, notes, and snippets.

@samfromcadott
samfromcadott / raylib-bullet.cc
Created June 11, 2023 16:10
Example of using Bullet Physics with raylib
// raylib+Bullet physics
// Sam Jackson
// Partially based off this: https://github.com/bulletphysics/bullet3/blob/master/examples/HelloWorld/HelloWorld.cpp
#include <vector>
#include <btBulletDynamicsCommon.h>
#include <raylib.h>
btDefaultCollisionConfiguration* collision_configuration;
@samfromcadott
samfromcadott / boids.py
Created June 6, 2023 15:09
Boids swarm AI using pyglet
import pyglet
from pyglet import shapes
from pyglet.math import Vec2
from random import random
window_width = 800
window_height = 600
mouse_position = Vec2(0, 0)
window = pyglet.window.Window(window_width, window_height)
@samfromcadott
samfromcadott / maze.html
Last active May 23, 2022 14:58
Ever-changing maze, based on Legend 64 devlog
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<style media="screen">
canvas {
background-size: 100px 100px;
-- Script for first person in Silent Hill in BizHawk
--
-- Submit improvments at https://gist.github.com/samfromcadott
--
-- Copyright 2021 Sam Jackson
-----------------------------
-- Memory addresses
-----------------------------
@samfromcadott
samfromcadott / sh_freelook.lua
Last active January 13, 2023 09:39
Free camera script for Silent Hill in BizHawk
-- Free camera script for Silent Hill in BizHawk
-- Only tested with the North American version
--
-- L3+R3 to toggle on and off
--
-- Submit improvements at https://gist.github.com/samfromcadott/
-- Fell free to adapt this for other games
--
-- Copyright 2021 Sam Jackson
-----------------------------