This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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; |