(Based on awesome jsnes by bfirsh)
- Download and put into
resources/
directory - Add
ensure nesm
toserver.cfg
local nesm = exports.nes
nesm:init()
while not nesm:isReady() do
Wait(0)
end
local nesTxd = nesm:getTextureDict()
local nesTxn = nesm:getTextureName()
local romBytes = --[[ .nes content ]]--
nesm:run(romBytes)
while nesm:isRunning() do
DrawSprite(nesTxd, nesTxn, 0.5, 0.5, 0.3125, 0.5212, 0, 255, 255, 255, 255)
Wait(0)
end
init()
--! @return : boolean
isReady()
--! @return : string
getTextureDict()
--! @return : string
getTextureName()
--! @param romBytes: number[]
run(romBytes)
--! @return : boolean
isRunning()
stop()