Add super mario

This commit is contained in:
giongto35 2019-04-02 21:50:27 +08:00
parent b7b781ef5b
commit 44fb0c3e7e

View file

@ -19,6 +19,7 @@ import (
var webRTC *webrtc.WebRTC
var width = 256
var height = 240
var gameName = "supermariobros.rom"
func init() {
}
@ -40,7 +41,7 @@ func main() {
// start screenshot loop, wait for connection
go screenshotLoop(imageChannel)
startGame("games/supermariobros.rom", imageChannel, webRTC.InputChannel)
startGame("games/"+gameName, imageChannel, webRTC.InputChannel)
time.Sleep(time.Minute)
}