Skip to content
Permalink
Browse files

Update new frontend (#38)

* WIP

* fix crlf

* fix crlf

* new gesture, menu, tooltip, share

* WIP share

* clear dusties and put magic

* oops

* Remove fade

* Update js behaviour
  • Loading branch information...
trichimtrich authored and giongto35 committed May 25, 2019
1 parent 71e6d0b commit 16578795e19c5e109087070147fe96c3bf94a2bf
Showing with 2,846 additions and 7,783 deletions.
  1. +14 −0 .gitattributes
  2. +3 −3 cmd/main.go
  3. +1 −1 document/implementation/README.md
  4. +2 −2 overlord/handlers.go
  5. +2,086 −0 static/css/font-awesome.css
  6. +0 −6,921 static/css/gameboy.css
  7. +0 −137 static/css/joystick.css
  8. +103 −88 static/css/main.css
  9. BIN static/fonts/6809 chargen.ttf
  10. +28 −16 static/{gameboy2.html → game.html}
  11. +0 −127 static/gameboy.html
  12. BIN static/img/1478923556_2_(22).gif
  13. BIN static/img/404.jpg
  14. BIN static/img/500_F_241143639_RW6VdHbqYRM0yfNpDxDlWpj0uXWglAC2.jpg
  15. BIN static/img/arrow2_e.gif
  16. BIN static/img/boxarts/1943.png
  17. BIN static/img/boxarts/Battle City.png
  18. BIN static/img/boxarts/Bubble Bobble.png
  19. BIN static/img/boxarts/Captain America and the Avengers.png
  20. BIN static/img/boxarts/Chip 'n Dale Rescue Rangers 2.png
  21. BIN static/img/boxarts/Contra.png
  22. BIN static/img/boxarts/Gradius.png
  23. BIN static/img/boxarts/Ice Climber.png
  24. BIN static/img/boxarts/Kirby's Adventure.png
  25. BIN static/img/boxarts/Mega Man 2.png
  26. BIN static/img/boxarts/Mega Man 6.png
  27. BIN static/img/boxarts/Metal Gear.png
  28. BIN static/img/boxarts/Mike Tyson's Punch-Out!!.png
  29. BIN static/img/boxarts/Mortal Kombat 4.png
  30. BIN static/img/boxarts/Ninja Gaiden.png
  31. BIN static/img/boxarts/Nintendo World Cup.png
  32. BIN static/img/boxarts/Super Mario Bros 2.png
  33. BIN static/img/boxarts/Super Mario Bros 3.png
  34. BIN static/img/boxarts/Super Mario Bros.png
  35. BIN static/img/boxarts/Teenage Mutant Ninja Turtles 3.png
  36. BIN static/img/boxarts/Zelda II.png
  37. BIN static/img/october_2nd___gameboy_poltergeist_by_wanyo-dbpdmnd.gif
  38. BIN static/img/original.gif
  39. BIN static/img/pixel_waterfall_bg__by_isohei-d4xntof.gif
  40. +0 −102 static/index_ws.html
  41. +118 −73 static/js/controller.js
  42. +83 −64 static/js/gesture_joystick.js
  43. +12 −10 static/js/gesture_keyboard.js
  44. +221 −117 static/js/gesture_touch.js
  45. +37 −23 static/js/global.js
  46. +45 −0 static/js/init.js
  47. +2 −0 static/js/jquery-3.3.1.min.js
  48. +64 −10 static/js/utils.js
  49. +25 −9 static/js/ws.js
  50. BIN static/test/sinewave.raw
  51. +0 −78 static/test/test.html
  52. +2 −2 worker/handlers.go
@@ -1,2 +1,16 @@
* linguist-vendored
*.go linguist-vendored=false
* text=auto eol=lf


# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text

# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
@@ -71,9 +71,9 @@ func main() {

rand.Seed(time.Now().UTC().UnixNano())

//if *config.IsMonitor {
go monitor()
//}
if *config.IsMonitor {
go monitor()
}
// There are two server mode
// Overlord is coordinator. If the OvelordHost Param is `overlord`, we spawn a new host as Overlord.
// else we spawn new server as normal server connecting to OverlordHost.
@@ -13,7 +13,7 @@
├── static: static file for front end
│ ├── js
│ │ └── ws.js: client logic
│ ├── gameboy.html: frontend with gameboy ui
│ ├── game.html: frontend with gameboy ui
│ └── index_ws.html: raw frontend without ui
├── cws
│ └── cws.go: socket multiplexer library, used for signalling
@@ -15,8 +15,8 @@ import (
)

const (
gameboyIndex = "./static/gameboy2.html"
debugIndex = "./static/gameboy2.html"
gameboyIndex = "./static/game.html"
debugIndex = "./static/game.html"
gamePath = "games"
)

0 comments on commit 1657879

Please sign in to comment.
You can’t perform that action at this time.