Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "terranigma_rng"
- rng.set_title("Parasite")
- rng.set_nr_rows(16)
- rng.set_nr_columns (2)
- rng.set_column_width(5)
- rng.set_text(function(x,y,counter,rn)
- -- Default text color is red
- local rngColor = 0xFF0000FF
- -- This random number will spawn Parasite spikes -> green text
- if AND(rn,0x3)==1 then
- rngColor = 0x00FF00FF
- end
- -- Show the random number
- gui.text(x,y,string.upper(string.format('%02x %02x',counter,rn)),rngColor)
- end)
- rng.show()
- while true do
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement