Skip to content

Instantly share code, notes, and snippets.

@gmjosack
gmjosack / cityofgold.diff
Created January 27, 2021 15:52
Spelunky 2 Changes: 1.20.0.j -> 1.20.1c
--- Mods/Extracted-1.20.0j/Data/Levels/cityofgold.lvl 2021-01-02 21:12:02.818432607 -0800
+++ Mods/Extracted/Data/Levels/cityofgold.lvl 2021-01-27 07:43:13.267666019 -0800
@@ -469,8 +469,8 @@
====00p000
0=0000=000
0000000000
-==========
-==========
+====00====
+====00====
@gmjosack
gmjosack / node-defender.js
Created October 27, 2013 18:54
This is just a simple solution to the game https://node-defender.herokuapp.com/
var enemy, attackModes, positions, types, mostPos, closestPos;
positions = {};
types = {};
enemy = _.first(roundInfo.getMobs());
commander.target(enemy.id);
commander.attackMode('power');
_.each(roundInfo.getMobs(), function(mob, idx){
if (!_.has(positions, mob.position)) positions[mob.position] = [];
@gmjosack
gmjosack / Game1.cs
Created July 13, 2011 07:31
Minimum 2D HLSL Pixel Shader
namespace NewShader
{
public class Game1 : Microsoft.Xna.Framework.Game
{
GraphicsDeviceManager graphics;
SpriteBatch spriteBatch;
Texture2D texture;
Effect effect;
@gmjosack
gmjosack / Effect1.fx
Created July 13, 2011 06:53
Minimum 2D HLSL Pixel Shader
float4 PixelShaderFunction(float2 coords: TEXCOORD0) : COLOR0
{
return float4(1, 0, 0, 1);
}
technique Technique1
{
pass Pass1
{
PixelShader = compile ps_2_0 PixelShaderFunction();