mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-23 18:17:32 +00:00
Add super mario
This commit is contained in:
parent
b7b781ef5b
commit
44fb0c3e7e
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue