Skip to content

Instantly share code, notes, and snippets.

View TurbulentEddie's full-sized avatar

TurbulentEddie

View GitHub Profile
@TurbulentEddie
TurbulentEddie / nes_open_hardmode.lua
Created August 11, 2015 23:18
Add some extra RNG to your NES Open experience.
-- NES Open Hard Mode
-- Written by Turbulent Eddie
-- Randomly adjusts the aim, wind speed, and wind direction every few frames
-- Set the RAM pointers
pntrs = {};
pntrs['aim'] = 0x00B7;
pntrs['u_dir'] = 0x0096;
pntrs['u_mag'] = 0x0097;
pntrs['power'] = 0x00D6;
@TurbulentEddie
TurbulentEddie / rockyyyyyyy.lua
Created August 12, 2015 23:19
Why THQ, why? (Use on Rocky and Bullwinkle)
-- put pointers to fun locations here
-- (I'm not convinced this is the only one)
pntrs = {0x051F};
val = math.random(1, 64);
while (true) do
if (emu.framecount() % 120 == 0) then
val = math.random(1, 64);
@TurbulentEddie
TurbulentEddie / nes_open_random_mode.lua
Created January 31, 2016 06:14
NES Open Random Mode
-- NES Open Random Mode
-- Written by Turbulent Eddie
----------------------------
------- Set options --------
----------------------------
randomize_aim = false; -- randomize aiming cursor
randomize_wind_speed = true; -- randomize wind speed
randomize_wind_dir = true; -- randomize wind direction