Skip to content

Instantly share code, notes, and snippets.

View MSylvia's full-sized avatar
💭
Compiling ....

Matt Sylvia MSylvia

💭
Compiling ....
View GitHub Profile
@Michal-Atlas
Michal-Atlas / CMakeLists.txt
Last active April 21, 2021 02:22
Minimal SDL Runnable program, with Comments
cmake_minimum_required(VERSION 3.16)
project(MyFirstSDL)
set(CMAKE_CXX_STANDARD 14)
add_executable(MyFirstSDL main.cpp)
target_link_libraries(MyFirstSDL SDL2)
@ompuco
ompuco / PSXDither.hlsl
Last active May 23, 2025 22:00
Color dither & truncation based on Sony's PlayStation (1) hardware features & limitations.
#ifdef PSXDTH
#else
#define PSXDTH
//PS1 Hardware Dithering & Color Precision Truncation Function
//by ompu co | Sam Blye (c) 2020
//PS1 dither table from PSYDEV SDK documentation
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active July 1, 2025 07:13
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

WARNING: Article moved to separate repo to allow users contributions: https://github.com/raysan5/custom_game_engines

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like [Unreal](https:

@premek
premek / mv.sh
Last active March 5, 2024 17:43
Rename files in linux / bash using mv command without typing the full name two times
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
#
# Also see:
# - imv from renameutils
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste)
@SamyBencherif
SamyBencherif / rmpd.c
Created March 3, 2020 20:35
Pixelated 2d lighting with shadows in Raylib, software accelerated
/********************************************************************************************
@filename: rmpd.c
@title: Real Pixel Lighting RAMP DEMO
@description: Simple gradient demo of RPL with shadows
@author: Samy Bencherif
Copyright (C) 2020 Samy Bencherif (@deathstallion)
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
// code updates are now there:
// https://github.com/Bleuje/processing-animations-code/blob/main/code/radialcollapse/radialcollapse.pde
// Processing code by Etienne JACOB
// motion blur template by beesandbombs
// opensimplexnoise code in another tab is be necessary
// --> code here : https://gist.github.com/Bleuje/fce86ef35b66c4a2b6a469b27163591e
// See the license information at the end of this file.
// View the rendered result at: https://bleuje.com/gifanimationsite/single/radialcollapse/

6502 Computer kit

# Description
3 Breadboard (High quality BusBoard Prototype Systems BB830)
1 W65C02 CPU
1 W65C22 Versatile Interface Adapter
@macsimom
macsimom / macos_vm_kickstarter.sh
Last active September 9, 2019 20:27
Ever minimizing the steps to get Catalina Beta running in VMware Fusion
#!/bin/bash
####
#
# Prerequisite steps:
#
# 1 - Download a copy of the Install macOS app
# 2 - Mount the InstallESD.dmg and extract the kernel file with Pacifist from Core.pkg
# 3 - Create a new macOS 10.14 vm (give it more ram than the standard 2 GB)
#
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
#include <node.h>
#include <string>
using namespace v8;
void getWindows(const FunctionCallbackInfo<Value>& args) {
Isolate *isolate = args.GetIsolate();
Local<Array> winArr = Array::New(isolate);
@tyabus
tyabus / pm_shared.c
Last active March 7, 2021 23:42
pmove ported from quake 3 for Half-Life/XASH3D
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object code is restricted to non-commercial enhancements to products from