Exact 1:1 mirror of 2GB repository
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +140 -0
- .gitignore +1 -0
- Caddyfile +5 -0
- README.md +135 -0
- docker-compose.yml +29 -0
- pages/_headers +10 -0
- pages/index.html +76 -0
- pages/nes/index.html +207 -0
- pages/roms/10-Yard Fight (U).nes +0 -0
- pages/roms/100 Man $ Kid - Maboroshi no Teiou Hen (J) [hM02].nes +3 -0
- pages/roms/100-in-1 Contra Function 16 [a1].nes +3 -0
- pages/roms/100-in-1 Contra Function 16 [a2].nes +3 -0
- pages/roms/100-in-1 Contra Function 16.nes +3 -0
- pages/roms/11-in-1 Ball Games [!].nes +3 -0
- pages/roms/110-in-1 (Menu).nes +0 -0
- pages/roms/110-in-1 [p1].nes +3 -0
- pages/roms/115-in-1 [p1][!].nes +3 -0
- pages/roms/115-in-1 [p1][a1].nes +3 -0
- pages/roms/1200-in-1 (J) [p1].nes +3 -0
- pages/roms/150-in-1 [p1][!].nes +3 -0
- pages/roms/16 Mahjang [!].nes +0 -0
- pages/roms/1942 (JU) [p1].nes +0 -0
- pages/roms/1942 (JU).nes +0 -0
- pages/roms/1942 (PC10).nes +0 -0
- pages/roms/1943 (U) [T-Port_BRGames].nes +3 -0
- pages/roms/1943 (U).nes +3 -0
- pages/roms/1944 (1943 Hack) [p1].nes +3 -0
- pages/roms/1944 (1943 Hack) [p2].nes +3 -0
- pages/roms/1944 (1943 Hack) [p3].nes +3 -0
- pages/roms/1991 Du Ma Racing (Enjoyable Horse Racing 1991).nes +0 -0
- pages/roms/20-in-1 (Mapper 231) [p1][!].nes +3 -0
- pages/roms/20-in-1 (Mapper 61) [p1][!].nes +3 -0
- pages/roms/22-in-1 [p1].nes +3 -0
- pages/roms/24-in-1 (Menu) [a1].nes +0 -0
- pages/roms/24-in-1 (Menu) [a2].nes +0 -0
- pages/roms/24-in-1 (Menu) [a3].nes +0 -0
- pages/roms/24-in-1 (Menu) [a4].nes +0 -0
- pages/roms/24-in-1 (Menu).nes +0 -0
- pages/roms/260-in-1.nes +3 -0
- pages/roms/2600 Bros (SMB1 Hack).nes +0 -0
- pages/roms/3-D Battles of World Runner, The (U) [hM34].nes +3 -0
- pages/roms/3-D Battles of World Runner, The (U) [hM34][a1].nes +3 -0
- pages/roms/3-D Battles of World Runner, The (U).nes +3 -0
- pages/roms/3-in-1 (E) [!].nes +3 -0
- pages/roms/31-in-1 (J) [p1].nes +3 -0
- pages/roms/31-in-1 (Menu) (J).nes +0 -0
- pages/roms/350-in-1 (Menu).nes +0 -0
- pages/roms/3D Block [p1].nes +0 -0
- pages/roms/3D Block [p2].nes +0 -0
- pages/roms/4 Nin Uchi Mahjong (J) [h1].nes +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,143 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
pages/roms/100[[:space:]]Man[[:space:]]$[[:space:]]Kid[[:space:]]-[[:space:]]Maboroshi[[:space:]]no[[:space:]]Teiou[[:space:]]Hen[[:space:]](J)[[:space:]]\[hM02\].nes filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
pages/roms/100-in-1[[:space:]]Contra[[:space:]]Function[[:space:]]16[[:space:]]\[a1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
pages/roms/100-in-1[[:space:]]Contra[[:space:]]Function[[:space:]]16[[:space:]]\[a2\].nes filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
pages/roms/100-in-1[[:space:]]Contra[[:space:]]Function[[:space:]]16.nes filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
pages/roms/11-in-1[[:space:]]Ball[[:space:]]Games[[:space:]]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
pages/roms/110-in-1[[:space:]]\[p1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
pages/roms/115-in-1[[:space:]]\[p1\]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
pages/roms/115-in-1[[:space:]]\[p1\]\[a1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
pages/roms/1200-in-1[[:space:]](J)[[:space:]]\[p1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
pages/roms/150-in-1[[:space:]]\[p1\]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
pages/roms/1943[[:space:]](U)[[:space:]]\[T-Port_BRGames\].nes filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
pages/roms/1943[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
pages/roms/1944[[:space:]](1943[[:space:]]Hack)[[:space:]]\[p1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
pages/roms/1944[[:space:]](1943[[:space:]]Hack)[[:space:]]\[p2\].nes filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
pages/roms/1944[[:space:]](1943[[:space:]]Hack)[[:space:]]\[p3\].nes filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
pages/roms/20-in-1[[:space:]](Mapper[[:space:]]231)[[:space:]]\[p1\]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
pages/roms/20-in-1[[:space:]](Mapper[[:space:]]61)[[:space:]]\[p1\]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
pages/roms/22-in-1[[:space:]]\[p1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
pages/roms/260-in-1.nes filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
pages/roms/3-D[[:space:]]Battles[[:space:]]of[[:space:]]World[[:space:]]Runner,[[:space:]]The[[:space:]](U)[[:space:]]\[hM34\].nes filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
pages/roms/3-D[[:space:]]Battles[[:space:]]of[[:space:]]World[[:space:]]Runner,[[:space:]]The[[:space:]](U)[[:space:]]\[hM34\]\[a1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
pages/roms/3-D[[:space:]]Battles[[:space:]]of[[:space:]]World[[:space:]]Runner,[[:space:]]The[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
pages/roms/3-in-1[[:space:]](E)[[:space:]]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
pages/roms/31-in-1[[:space:]](J)[[:space:]]\[p1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
pages/roms/52[[:space:]]Games[[:space:]](U)[[:space:]]\[p1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
pages/roms/52[[:space:]]Games[[:space:]](U)[[:space:]]\[p1\]\[a1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
pages/roms/54-in-1[[:space:]](Game[[:space:]]Star[[:space:]]-[[:space:]]GK-54)[[:space:]]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
pages/roms/58-in-1[[:space:]]\[p1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
pages/roms/6-in-1[[:space:]](Game[[:space:]]Star[[:space:]]-[[:space:]]GK-L01A)[[:space:]]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
pages/roms/6-in-1[[:space:]](SuperGK-L02A)[[:space:]]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
pages/roms/64-in-1[[:space:]](J)[[:space:]]\[p1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
pages/roms/68-in-1[[:space:]](Game[[:space:]]Star[[:space:]]-[[:space:]]HKX5268)[[:space:]]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
pages/roms/7-in-1[[:space:]]\[p1\]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
pages/roms/72-in-1[[:space:]]\[p1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
pages/roms/72-in-1[[:space:]]\[p1\]\[a1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
pages/roms/720[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
pages/roms/76-in-1[[:space:]](U)[[:space:]]\[p1\]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
pages/roms/76-in-1[[:space:]](U)[[:space:]]\[p1\]\[h1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
pages/roms/8[[:space:]]Eyes[[:space:]](U)[[:space:]]\[T-Port1.0_BRGames\].nes filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
pages/roms/8[[:space:]]Eyes[[:space:]](U)[[:space:]]\[T-Port1.0_CBT\].nes filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
pages/roms/8[[:space:]]Eyes[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
pages/roms/9-in-1[[:space:]]-[[:space:]]Ninja[[:space:]]Cat[[:space:]](Cattou[[:space:]]Ninden[[:space:]]Teyandee).nes filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
pages/roms/AD&D[[:space:]]Dragon[[:space:]]Strike[[:space:]](U)[[:space:]]\[a1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
pages/roms/AD&D[[:space:]]Dragon[[:space:]]Strike[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
pages/roms/AD&D[[:space:]]Heroes[[:space:]]of[[:space:]]the[[:space:]]Lance[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
pages/roms/AD&D[[:space:]]Hillsfar[[:space:]](U)[[:space:]]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
pages/roms/AD&D[[:space:]]Pool[[:space:]]of[[:space:]]Radiance[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
pages/roms/Abadox[[:space:]](J)[[:space:]]\[hFFE\]\[p1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
pages/roms/Abadox[[:space:]](U)[[:space:]]\[T-Port1.0\].nes filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
pages/roms/Abadox[[:space:]](U)[[:space:]]\[T-Portx.x\].nes filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
pages/roms/Abadox[[:space:]](U)[[:space:]]\[T-Span0.99\].nes filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
pages/roms/Abadox[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 88 |
+
pages/roms/Abarenbou[[:space:]]Tengu[[:space:]](Zombie[[:space:]]Nation)[[:space:]](J)[[:space:]]\[h1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
pages/roms/Abarenbou[[:space:]]Tengu[[:space:]](Zombie[[:space:]]Nation)[[:space:]](J)[[:space:]]\[h2\].nes filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
pages/roms/Action[[:space:]]52[[:space:]](E).nes filter=lfs diff=lfs merge=lfs -text
|
| 91 |
+
pages/roms/Action[[:space:]]52[[:space:]](U)[[:space:]]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 92 |
+
pages/roms/Action[[:space:]]in[[:space:]]New[[:space:]]York[[:space:]](E).nes filter=lfs diff=lfs merge=lfs -text
|
| 93 |
+
pages/roms/Addams[[:space:]]Family[[:space:]]-[[:space:]]Pugsley's[[:space:]]Scavenger[[:space:]]Hunt,[[:space:]]The[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 94 |
+
pages/roms/Addams[[:space:]]Family,[[:space:]]The[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 95 |
+
pages/roms/Adventure[[:space:]]Island[[:space:]]3[[:space:]](USA).nes filter=lfs diff=lfs merge=lfs -text
|
| 96 |
+
pages/roms/Adventures[[:space:]]in[[:space:]]the[[:space:]]Magic[[:space:]]Kingdom[[:space:]](E)[[:space:]]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 97 |
+
pages/roms/Adventures[[:space:]]in[[:space:]]the[[:space:]]Magic[[:space:]]Kingdom[[:space:]](U)[[:space:]]\[a1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 98 |
+
pages/roms/Adventures[[:space:]]in[[:space:]]the[[:space:]]Magic[[:space:]]Kingdom[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 99 |
+
pages/roms/Adventures[[:space:]]of[[:space:]]Bayou[[:space:]]Billy,[[:space:]]The[[:space:]](E).nes filter=lfs diff=lfs merge=lfs -text
|
| 100 |
+
pages/roms/Adventures[[:space:]]of[[:space:]]Bayou[[:space:]]Billy,[[:space:]]The[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 101 |
+
pages/roms/Adventures[[:space:]]of[[:space:]]Captain[[:space:]]Comic,[[:space:]]The[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 102 |
+
pages/roms/Adventures[[:space:]]of[[:space:]]Lolo[[:space:]]3[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 103 |
+
pages/roms/Adventures[[:space:]]of[[:space:]]Rad[[:space:]]Gravity,[[:space:]]The[[:space:]](E).nes filter=lfs diff=lfs merge=lfs -text
|
| 104 |
+
pages/roms/Adventures[[:space:]]of[[:space:]]Rad[[:space:]]Gravity,[[:space:]]The[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 105 |
+
pages/roms/Adventures[[:space:]]of[[:space:]]Rocky[[:space:]]and[[:space:]]Bullwinkle[[:space:]]and[[:space:]]Friends,[[:space:]]The[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 106 |
+
pages/roms/Adventures[[:space:]]of[[:space:]]Tom[[:space:]]Sawyer[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 107 |
+
pages/roms/Afro[[:space:]]Man[[:space:]](Mega[[:space:]]Man[[:space:]]3[[:space:]]Hack).nes filter=lfs diff=lfs merge=lfs -text
|
| 108 |
+
pages/roms/After[[:space:]]Burner[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 109 |
+
pages/roms/Ai[[:space:]]Sensei[[:space:]]no[[:space:]]Oshiete[[:space:]]-[[:space:]]Watashi[[:space:]]no[[:space:]]Hoshi[[:space:]](J)[[:space:]]\[hM04\].nes filter=lfs diff=lfs merge=lfs -text
|
| 110 |
+
pages/roms/Ai[[:space:]]Senshi[[:space:]]Nicol.nes filter=lfs diff=lfs merge=lfs -text
|
| 111 |
+
pages/roms/Aigiina[[:space:]]no[[:space:]]Yogen[[:space:]]-[[:space:]]From[[:space:]]The[[:space:]]Legend[[:space:]]of[[:space:]]Balubalouk[[:space:]](J)[[:space:]]\[p1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 112 |
+
pages/roms/Air[[:space:]]Fortress[[:space:]](J)[[:space:]]\[hFFE\].nes filter=lfs diff=lfs merge=lfs -text
|
| 113 |
+
pages/roms/Air[[:space:]]Fortress[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 114 |
+
pages/roms/Air[[:space:]]Wolf[[:space:]](J)[[:space:]]\[hFFE\]\[p1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 115 |
+
pages/roms/Airwolf[[:space:]](E).nes filter=lfs diff=lfs merge=lfs -text
|
| 116 |
+
pages/roms/Airwolf[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 117 |
+
pages/roms/Akira[[:space:]](J)[[:space:]]\[hM04\].nes filter=lfs diff=lfs merge=lfs -text
|
| 118 |
+
pages/roms/Akumajou[[:space:]]Densetsu[[:space:]](J)[[:space:]]\[T-Eng1.0\].nes filter=lfs diff=lfs merge=lfs -text
|
| 119 |
+
pages/roms/Akumajou[[:space:]]Densetsu[[:space:]](J)[[:space:]]\[hM16\].nes filter=lfs diff=lfs merge=lfs -text
|
| 120 |
+
pages/roms/Akumajou[[:space:]]Densetsu[[:space:]](Japan).nes filter=lfs diff=lfs merge=lfs -text
|
| 121 |
+
pages/roms/Akumajou[[:space:]]Special[[:space:]]-[[:space:]]Boku[[:space:]]Dracula[[:space:]]Kun[[:space:]](J)[[:space:]]\[T-Eng\].nes filter=lfs diff=lfs merge=lfs -text
|
| 122 |
+
pages/roms/Akumajou[[:space:]]Special[[:space:]]-[[:space:]]Boku[[:space:]]Dracula[[:space:]]Kun[[:space:]](J)[[:space:]]\[h1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 123 |
+
pages/roms/Al[[:space:]]Unser[[:space:]]Jr[[:space:]]Turbo[[:space:]]Racing[[:space:]](U)[[:space:]]\[a1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 124 |
+
pages/roms/Al[[:space:]]Unser[[:space:]]Jr[[:space:]]Turbo[[:space:]]Racing[[:space:]](U)[[:space:]]\[a2\].nes filter=lfs diff=lfs merge=lfs -text
|
| 125 |
+
pages/roms/Al[[:space:]]Unser[[:space:]]Jr[[:space:]]Turbo[[:space:]]Racing[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 126 |
+
pages/roms/Aladdin[[:space:]](E)[[:space:]]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 127 |
+
pages/roms/Aladdin[[:space:]](E)[[:space:]]\[p1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 128 |
+
pages/roms/Aladdin[[:space:]](E)[[:space:]]\[p1\]\[hM04\].nes filter=lfs diff=lfs merge=lfs -text
|
| 129 |
+
pages/roms/Aladdin[[:space:]](Unl).nes filter=lfs diff=lfs merge=lfs -text
|
| 130 |
+
pages/roms/Aladdin[[:space:]]2.nes filter=lfs diff=lfs merge=lfs -text
|
| 131 |
+
pages/roms/Alfred[[:space:]]Chicken[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 132 |
+
pages/roms/Alien[[:space:]]3[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 133 |
+
pages/roms/Alien[[:space:]]Syndrome[[:space:]](U)[[:space:]]\[hM04\].nes filter=lfs diff=lfs merge=lfs -text
|
| 134 |
+
pages/roms/Alien[[:space:]]Syndrome[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 135 |
+
pages/roms/All-Pro[[:space:]]Basketball[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 136 |
+
pages/roms/Amagon[[:space:]](U)[[:space:]]\[a1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 137 |
+
pages/roms/Amagon[[:space:]](U)[[:space:]]\[a2\].nes filter=lfs diff=lfs merge=lfs -text
|
| 138 |
+
pages/roms/Amagon[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 139 |
+
pages/roms/American[[:space:]]Gladiators[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 140 |
+
pages/roms/Ankoku[[:space:]]Shinwa[[:space:]]-[[:space:]]Yamato[[:space:]]Takeru[[:space:]]Densetsu[[:space:]](J)[[:space:]]\[p1\]\[hM02\].nes filter=lfs diff=lfs merge=lfs -text
|
| 141 |
+
pages/roms/Anti-Hippie[[:space:]]Dr[[:space:]]Mario[[:space:]](Dr[[:space:]]Mario[[:space:]]Hack).nes filter=lfs diff=lfs merge=lfs -text
|
| 142 |
+
pages/roms/Aoki[[:space:]]Ookami[[:space:]]to[[:space:]]Shiroki[[:space:]]Mejika[[:space:]]-[[:space:]]Genghis[[:space:]]Khan[[:space:]](J)[[:space:]]\[h1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 143 |
+
pages/roms/Arabian[[:space:]]Dream[[:space:]]Sharezaado[[:space:]](J)[[:space:]]\[hFFE\]\[a1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 144 |
+
pages/roms/Arabian[[:space:]]Dream[[:space:]]Sherazaado[[:space:]](J)[[:space:]]\[hFFE\].nes filter=lfs diff=lfs merge=lfs -text
|
| 145 |
+
pages/roms/Arch[[:space:]]Rivals[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 146 |
+
pages/roms/Archon[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 147 |
+
pages/roms/Arctic[[:space:]](J)[[:space:]]\[p1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 148 |
+
pages/roms/Arctic[[:space:]](J)[[:space:]]\[p1\]\[t1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 149 |
+
pages/roms/Argos[[:space:]]no[[:space:]]Senshi[[:space:]](J)[[:space:]]\[T-Eng0.9\].nes filter=lfs diff=lfs merge=lfs -text
|
| 150 |
+
pages/roms/Argos[[:space:]]no[[:space:]]Senshi[[:space:]](J)[[:space:]]\[p1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 151 |
+
pages/roms/Arkanoid[[:space:]]2[[:space:]](J)[[:space:]]\[hFFE\].nes filter=lfs diff=lfs merge=lfs -text
|
| 152 |
+
pages/roms/Arkanoid[[:space:]]2[[:space:]](J)[[:space:]]\[hFFE\]\[a1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 153 |
+
pages/roms/Asmik[[:space:]]Kun[[:space:]]Land[[:space:]](J)[[:space:]]\[h1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 154 |
+
pages/roms/Asterix[[:space:]](E).nes filter=lfs diff=lfs merge=lfs -text
|
| 155 |
+
pages/roms/Astro[[:space:]]Fang[[:space:]]-[[:space:]]Super[[:space:]]Machine[[:space:]](J)[[:space:]]\[h1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 156 |
+
pages/roms/Astyanax[[:space:]](U)[[:space:]](Prototype).nes filter=lfs diff=lfs merge=lfs -text
|
| 157 |
+
pages/roms/Astyanax[[:space:]](U)[[:space:]]\[T-Span\].nes filter=lfs diff=lfs merge=lfs -text
|
| 158 |
+
pages/roms/Astyanax[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 159 |
+
pages/roms/Athena[[:space:]](U)[[:space:]]\[a1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 160 |
+
pages/roms/Athena[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 161 |
+
pages/roms/Attack[[:space:]]Animal[[:space:]]Gakuen[[:space:]](J)[[:space:]]\[h1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 162 |
+
pages/roms/Attack[[:space:]]of[[:space:]]the[[:space:]]Killer[[:space:]]Tomatoes[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 163 |
+
pages/roms/Aussie[[:space:]]Rules[[:space:]]Footy[[:space:]](E)[[:space:]]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 164 |
+
pages/roms/BAPSACRSTRKCGTF[[:space:]](Demo[[:space:]]Phase[[:space:]]1)[[:space:]](AKA[[:space:]]B00daw's[[:space:]]Folly)[[:space:]](PD).nes filter=lfs diff=lfs merge=lfs -text
|
| 165 |
+
pages/roms/BAPSACRSTRKCGTF[[:space:]](Demo[[:space:]]Phase[[:space:]]2)[[:space:]](AKA[[:space:]]B00daw's[[:space:]]Folly)[[:space:]](PD).nes filter=lfs diff=lfs merge=lfs -text
|
| 166 |
+
pages/roms/Back[[:space:]]to[[:space:]]the[[:space:]]Future[[:space:]]2[[:space:]]&[[:space:]]3[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 167 |
+
pages/roms/Bad[[:space:]]Dudes[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 168 |
+
pages/roms/Bad[[:space:]]News[[:space:]]Baseball[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 169 |
+
pages/roms/Bad[[:space:]]Street[[:space:]]Brawler[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 170 |
+
pages/roms/BadDudes[[:space:]]Vs[[:space:]]DragonNinja[[:space:]](E)[[:space:]]\[!\].nes filter=lfs diff=lfs merge=lfs -text
|
| 171 |
+
pages/roms/Bakushou[[:space:]]Jinsei[[:space:]]Gekijoh[[:space:]]3[[:space:]](J)[[:space:]]\[p1\]\[hM04\].nes filter=lfs diff=lfs merge=lfs -text
|
| 172 |
+
pages/roms/Bandit[[:space:]]Kings[[:space:]]of[[:space:]]Ancient[[:space:]]China[[:space:]](U)[[:space:]]\[a1\].nes filter=lfs diff=lfs merge=lfs -text
|
| 173 |
+
pages/roms/Bandit[[:space:]]Kings[[:space:]]of[[:space:]]Ancient[[:space:]]China[[:space:]](U).nes filter=lfs diff=lfs merge=lfs -text
|
| 174 |
+
pages/roms/Barbie[[:space:]](U)[[:space:]](Rev[[:space:]]3).nes filter=lfs diff=lfs merge=lfs -text
|
| 175 |
+
pages/roms/Barbie[[:space:]](U)[[:space:]](Rev[[:space:]]X).nes filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
*.DS_Store
|
Caddyfile
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Replace YOUR_DOMAIN with your actual domain, e.g.: retro.example.com
|
| 2 |
+
# If you don't have a domain yet, use :80 instead
|
| 3 |
+
:80, :443 {
|
| 4 |
+
reverse_proxy emulatorjs:80
|
| 5 |
+
}
|
README.md
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NES Game Player
|
| 2 |
+
|
| 3 |
+
A self-hosted retro NES game player powered by EmulatorJS, with password authentication, ROM upload, and automatic HTTPS via Caddy.
|
| 4 |
+
|
| 5 |
+
## Features
|
| 6 |
+
|
| 7 |
+
- **Browser-based NES emulator** — play games directly in your browser
|
| 8 |
+
- **Password protected** — simple password auth (no username required)
|
| 9 |
+
- **Upload & Play** — upload `.nes` ROMs through the web UI, saved permanently on the server
|
| 10 |
+
- **Searchable game library** — instant search filtering across all games
|
| 11 |
+
- **Alphabetical listing** — games sorted A-Z in a clean row-based layout
|
| 12 |
+
- **Lazy loading** — shows 50 games at a time, loads more on scroll
|
| 13 |
+
- **Automatic HTTPS** — Caddy reverse proxy with free Let's Encrypt SSL
|
| 14 |
+
- **Docker-based** — single `docker compose up -d` to run everything
|
| 15 |
+
|
| 16 |
+
## Quick Start
|
| 17 |
+
|
| 18 |
+
### 1. Prerequisites (Ubuntu 24)
|
| 19 |
+
|
| 20 |
+
```bash
|
| 21 |
+
sudo apt update
|
| 22 |
+
sudo apt install -y docker.io docker-compose-v2
|
| 23 |
+
sudo usermod -aG docker $USER
|
| 24 |
+
# Log out and back in
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
### 2. Clone and Deploy
|
| 28 |
+
|
| 29 |
+
```bash
|
| 30 |
+
git clone https://github.com/PBhadoo/retro.git
|
| 31 |
+
cd retro
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
### 3. Configure Domain (Optional)
|
| 35 |
+
|
| 36 |
+
Edit `Caddyfile` and replace the placeholder with your domain:
|
| 37 |
+
|
| 38 |
+
```
|
| 39 |
+
retro.yourdomain.com {
|
| 40 |
+
reverse_proxy emulatorjs:80
|
| 41 |
+
}
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
For IP-only access (no domain), keep the default:
|
| 45 |
+
|
| 46 |
+
```
|
| 47 |
+
:80, :443 {
|
| 48 |
+
reverse_proxy emulatorjs:80
|
| 49 |
+
}
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
### 4. Start
|
| 53 |
+
|
| 54 |
+
```bash
|
| 55 |
+
sudo docker compose up -d
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
### 5. Open
|
| 59 |
+
|
| 60 |
+
- **With domain:** `https://retro.yourdomain.com`
|
| 61 |
+
- **Without domain:** `http://YOUR_SERVER_IP`
|
| 62 |
+
|
| 63 |
+
**Password:** `bhadoo`
|
| 64 |
+
|
| 65 |
+
## Usage
|
| 66 |
+
|
| 67 |
+
### Playing Games
|
| 68 |
+
1. Enter the password on the login page
|
| 69 |
+
2. Browse the game library or use the search bar
|
| 70 |
+
3. Click any game to play instantly in your browser
|
| 71 |
+
|
| 72 |
+
### Uploading New Games
|
| 73 |
+
1. Click **Upload & Play** to upload and immediately play a `.nes` ROM
|
| 74 |
+
2. Click **Upload Only** to save a ROM to the server without playing
|
| 75 |
+
3. Uploaded games appear at the top of `index.json` and are sorted alphabetically on the page
|
| 76 |
+
|
| 77 |
+
## File Structure
|
| 78 |
+
|
| 79 |
+
```
|
| 80 |
+
.
|
| 81 |
+
├── docker-compose.yml # Docker services (Node.js app + Caddy)
|
| 82 |
+
├── Caddyfile # Caddy reverse proxy config (HTTPS)
|
| 83 |
+
├── server.js # Node.js server (auth, upload, static files)
|
| 84 |
+
├── web/
|
| 85 |
+
│ └── index.html # Game player frontend
|
| 86 |
+
└── roms/
|
| 87 |
+
├── index.json # Game list (auto-updated on upload)
|
| 88 |
+
└── *.nes # ROM files
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
## Architecture
|
| 92 |
+
|
| 93 |
+
- **Caddy** — reverse proxy on ports 80/443, handles HTTPS/SSL automatically
|
| 94 |
+
- **Node.js** — internal HTTP server serving the web UI, handling uploads, and managing ROMs
|
| 95 |
+
- **EmulatorJS** — loaded from CDN (`cdn.emulatorjs.org`), runs the NES emulator in the browser
|
| 96 |
+
|
| 97 |
+
## Configuration
|
| 98 |
+
|
| 99 |
+
| Setting | Location | Default |
|
| 100 |
+
|---------|----------|---------|
|
| 101 |
+
| Password | `server.js` → `PASSWORD` | `bhadoo` |
|
| 102 |
+
| Games per page | `web/index.html` → `PAGE_SIZE` | `50` |
|
| 103 |
+
| Domain | `Caddyfile` | `:80, :443` |
|
| 104 |
+
| External ports | `docker-compose.yml` | `80, 443` |
|
| 105 |
+
|
| 106 |
+
## Firewall
|
| 107 |
+
|
| 108 |
+
```bash
|
| 109 |
+
sudo ufw allow 80/tcp
|
| 110 |
+
sudo ufw allow 443/tcp
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
## Management
|
| 114 |
+
|
| 115 |
+
```bash
|
| 116 |
+
# View logs
|
| 117 |
+
sudo docker compose logs -f
|
| 118 |
+
|
| 119 |
+
# Restart
|
| 120 |
+
sudo docker compose restart
|
| 121 |
+
|
| 122 |
+
# Stop
|
| 123 |
+
sudo docker compose down
|
| 124 |
+
|
| 125 |
+
# Rebuild after changes
|
| 126 |
+
sudo docker compose down && sudo docker compose up -d
|
| 127 |
+
```
|
| 128 |
+
|
| 129 |
+
## Logout
|
| 130 |
+
|
| 131 |
+
Visit `/logout` to clear your session.
|
| 132 |
+
|
| 133 |
+
---
|
| 134 |
+
|
| 135 |
+
Built and Hosted by Parveen Bhadoo ❤
|
docker-compose.yml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
services:
|
| 2 |
+
emulatorjs:
|
| 3 |
+
image: node:alpine
|
| 4 |
+
container_name: emulatorjs
|
| 5 |
+
working_dir: /app
|
| 6 |
+
command: node server.js
|
| 7 |
+
volumes:
|
| 8 |
+
- ./server.js:/app/server.js:ro
|
| 9 |
+
- ./web:/app/web:ro
|
| 10 |
+
- ./roms:/app/roms
|
| 11 |
+
restart: unless-stopped
|
| 12 |
+
|
| 13 |
+
caddy:
|
| 14 |
+
image: caddy:alpine
|
| 15 |
+
container_name: caddy
|
| 16 |
+
ports:
|
| 17 |
+
- 80:80
|
| 18 |
+
- 443:443
|
| 19 |
+
volumes:
|
| 20 |
+
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
| 21 |
+
- caddy_data:/data
|
| 22 |
+
- caddy_config:/config
|
| 23 |
+
depends_on:
|
| 24 |
+
- emulatorjs
|
| 25 |
+
restart: unless-stopped
|
| 26 |
+
|
| 27 |
+
volumes:
|
| 28 |
+
caddy_data:
|
| 29 |
+
caddy_config:
|
pages/_headers
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
Access-Control-Allow-Origin: *
|
| 3 |
+
X-Content-Type-Options: nosniff
|
| 4 |
+
|
| 5 |
+
/roms/*
|
| 6 |
+
Cache-Control: public, max-age=31536000, immutable
|
| 7 |
+
|
| 8 |
+
/sw.js
|
| 9 |
+
Cache-Control: no-cache
|
| 10 |
+
Service-Worker-Allowed: /
|
pages/index.html
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Retro Game Player</title>
|
| 7 |
+
<style>
|
| 8 |
+
*{margin:0;padding:0;box-sizing:border-box}
|
| 9 |
+
body{background:#1a1a2e;color:#e0e0e0;font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;min-height:100vh;display:flex;flex-direction:column}
|
| 10 |
+
.header{background:#16213e;padding:30px 20px;text-align:center;border-bottom:3px solid #e94560}
|
| 11 |
+
.header h1{color:#e94560;font-size:2.4em;margin-bottom:5px}
|
| 12 |
+
.header p{color:#888;font-size:1.05em}
|
| 13 |
+
.container{max-width:900px;margin:40px auto;padding:0 20px;flex:1;width:100%}
|
| 14 |
+
.intro{text-align:center;margin-bottom:40px}
|
| 15 |
+
.intro h2{font-size:1.5em;margin-bottom:10px;color:#e0e0e0}
|
| 16 |
+
.intro p{color:#888;font-size:.95em;line-height:1.6;max-width:600px;margin:0 auto}
|
| 17 |
+
.console-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px;margin-bottom:40px}
|
| 18 |
+
.console-card{background:#16213e;border:2px solid #0f3460;border-radius:12px;padding:30px;text-align:center;cursor:pointer;transition:all .25s;text-decoration:none;color:inherit;display:block}
|
| 19 |
+
.console-card:hover{border-color:#e94560;transform:translateY(-4px);box-shadow:0 8px 30px rgba(233,69,96,.2)}
|
| 20 |
+
.console-icon{font-size:4em;margin-bottom:15px;display:block}
|
| 21 |
+
.console-card h3{color:#e94560;font-size:1.5em;margin-bottom:8px}
|
| 22 |
+
.console-card .console-year{color:#4ecca3;font-size:.85em;font-weight:700;margin-bottom:12px}
|
| 23 |
+
.console-card p{color:#888;font-size:.88em;line-height:1.5}
|
| 24 |
+
.console-card .console-specs{margin-top:15px;display:flex;justify-content:center;gap:15px;flex-wrap:wrap}
|
| 25 |
+
.spec-badge{background:#1a1a2e;border:1px solid #0f3460;border-radius:6px;padding:5px 12px;font-size:.78em;color:#aaa}
|
| 26 |
+
.spec-badge strong{color:#e0e0e0}
|
| 27 |
+
.coming-soon{opacity:.5;pointer-events:none;position:relative}
|
| 28 |
+
.coming-soon::after{content:'COMING SOON';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(233,69,96,.9);color:#fff;padding:8px 20px;border-radius:6px;font-size:1.1em;font-weight:700;letter-spacing:1px}
|
| 29 |
+
footer{background:#16213e;text-align:center;padding:15px;border-top:1px solid #0f3460;color:#888;font-size:.9em}
|
| 30 |
+
footer .heart{color:#e94560;font-size:1.1em}
|
| 31 |
+
@media(max-width:600px){
|
| 32 |
+
.header h1{font-size:1.6em}
|
| 33 |
+
.header{padding:20px 15px}
|
| 34 |
+
.container{margin:20px auto}
|
| 35 |
+
.console-icon{font-size:3em}
|
| 36 |
+
}
|
| 37 |
+
</style>
|
| 38 |
+
</head>
|
| 39 |
+
<body>
|
| 40 |
+
<div class="header">
|
| 41 |
+
<h1>🎮 Retro Game Player</h1>
|
| 42 |
+
<p>Play classic console games in your browser • Powered by EmulatorJS</p>
|
| 43 |
+
</div>
|
| 44 |
+
<div class="container">
|
| 45 |
+
<div class="intro">
|
| 46 |
+
<h2>Choose Your Console</h2>
|
| 47 |
+
<p>Select a gaming platform below to browse and play its game library. Games run directly in your browser with full on-screen touch controls on mobile.</p>
|
| 48 |
+
</div>
|
| 49 |
+
<div class="console-grid">
|
| 50 |
+
<a href="/nes/" class="console-card">
|
| 51 |
+
<span class="console-icon">💾</span>
|
| 52 |
+
<h3>NES</h3>
|
| 53 |
+
<div class="console-year">Nintendo Entertainment System • 1983</div>
|
| 54 |
+
<p>The console that revived the video game industry. Home to legendary titles like Super Mario Bros., The Legend of Zelda, and Mega Man. Features a simple but iconic 2-button controller (A & B).</p>
|
| 55 |
+
<div class="console-specs">
|
| 56 |
+
<span class="spec-badge"><strong>8-bit</strong> CPU</span>
|
| 57 |
+
<span class="spec-badge"><strong>2</strong> Buttons</span>
|
| 58 |
+
<span class="spec-badge"><strong>.nes</strong> ROMs</span>
|
| 59 |
+
</div>
|
| 60 |
+
</a>
|
| 61 |
+
<a href="/snes/" class="console-card">
|
| 62 |
+
<span class="console-icon">🎳</span>
|
| 63 |
+
<h3>SNES</h3>
|
| 64 |
+
<div class="console-year">Super Nintendo • 1990</div>
|
| 65 |
+
<p>The 16-bit powerhouse with an iconic 4-button diamond layout (A, B, X, Y) plus shoulder buttons. Home to Chrono Trigger, Super Mario World, A Link to the Past, and hundreds more masterpieces.</p>
|
| 66 |
+
<div class="console-specs">
|
| 67 |
+
<span class="spec-badge"><strong>16-bit</strong> CPU</span>
|
| 68 |
+
<span class="spec-badge"><strong>4+2</strong> Buttons</span>
|
| 69 |
+
<span class="spec-badge"><strong>.sfc/.smc</strong> ROMs</span>
|
| 70 |
+
</div>
|
| 71 |
+
</a>
|
| 72 |
+
</div>
|
| 73 |
+
</div>
|
| 74 |
+
<footer>Built and Hosted by Parveen Bhadoo <span class="heart">❤</span></footer>
|
| 75 |
+
</body>
|
| 76 |
+
</html>
|
pages/nes/index.html
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 6 |
+
<title>NES Game Player</title>
|
| 7 |
+
<style>
|
| 8 |
+
*{margin:0;padding:0;box-sizing:border-box}
|
| 9 |
+
body{background:#1a1a2e;color:#e0e0e0;font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;min-height:100vh;display:flex;flex-direction:column}
|
| 10 |
+
.header{background:#16213e;padding:20px;text-align:center;border-bottom:3px solid #e94560;position:relative}
|
| 11 |
+
.header h1{color:#e94560;font-size:2em}
|
| 12 |
+
.header p{color:#888;margin-top:5px}
|
| 13 |
+
.header-actions{position:absolute;right:15px;top:50%;transform:translateY(-50%);display:flex;gap:10px}
|
| 14 |
+
.icon-btn{background:none;border:2px solid #0f3460;color:#e0e0e0;width:40px;height:40px;border-radius:50%;cursor:pointer;font-size:1.2em;display:flex;align-items:center;justify-content:center;transition:all .2s;text-decoration:none}
|
| 15 |
+
.icon-btn:hover{border-color:#e94560;color:#e94560}
|
| 16 |
+
.container{max-width:900px;margin:30px auto;padding:0 20px;flex:1;width:100%}
|
| 17 |
+
.btn{background:#e94560;color:#fff;border:none;padding:10px 25px;border-radius:5px;cursor:pointer;font-size:1em;margin:5px}
|
| 18 |
+
.btn:hover{background:#c73652}
|
| 19 |
+
.btn:disabled{background:#555;cursor:not-allowed}
|
| 20 |
+
.btn-secondary{background:#0f3460}
|
| 21 |
+
.btn-secondary:hover{background:#1a4a8a}
|
| 22 |
+
.btn-small{padding:6px 14px;font-size:.85em}
|
| 23 |
+
.btn-warning{background:#f0a500;color:#000}
|
| 24 |
+
.btn-warning:hover{background:#d49200}
|
| 25 |
+
.search-bar{width:100%;padding:12px 16px;border:1px solid #0f3460;border-radius:6px;background:#16213e;color:#e0e0e0;font-size:1em;margin:15px 0}
|
| 26 |
+
.search-bar:focus{outline:none;border-color:#e94560}
|
| 27 |
+
.search-bar::placeholder{color:#666}
|
| 28 |
+
.game-count{color:#888;font-size:.85em;margin-bottom:10px}
|
| 29 |
+
.game-list{list-style:none}
|
| 30 |
+
.game-row{display:flex;align-items:center;padding:10px 15px;background:#16213e;border:1px solid #0f3460;border-bottom:none;cursor:pointer;transition:all .15s}
|
| 31 |
+
.game-row:first-child{border-radius:8px 8px 0 0}
|
| 32 |
+
.game-row:last-child{border-bottom:1px solid #0f3460;border-radius:0 0 8px 8px}
|
| 33 |
+
.game-row:only-child{border-radius:8px;border-bottom:1px solid #0f3460}
|
| 34 |
+
.game-row:hover{background:#1a2a4e;border-color:#e94560}
|
| 35 |
+
.game-row:hover+.game-row{border-top-color:#e94560}
|
| 36 |
+
.game-row .game-name{flex:1;color:#e0e0e0;font-size:.95em}
|
| 37 |
+
.game-row .game-badges{display:flex;align-items:center;gap:6px;margin-left:8px}
|
| 38 |
+
.badge-offline{background:#4ecca3;color:#000;font-size:.65em;padding:2px 6px;border-radius:3px;font-weight:700}
|
| 39 |
+
.game-row .cache-btn{background:none;border:1px solid #0f3460;color:#888;font-size:.75em;padding:3px 8px;border-radius:3px;cursor:pointer;white-space:nowrap}
|
| 40 |
+
.game-row .cache-btn:hover{border-color:#4ecca3;color:#4ecca3}
|
| 41 |
+
.game-row .cache-btn.cached{border-color:#4ecca3;color:#4ecca3}
|
| 42 |
+
.game-row .play-icon{color:#e94560;font-size:1.2em;margin-left:10px}
|
| 43 |
+
.no-games{text-align:center;padding:40px;color:#888}
|
| 44 |
+
#player-container{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:#000;z-index:1000}
|
| 45 |
+
.player-toolbar{position:fixed;top:0;left:0;right:0;z-index:1001;display:none;justify-content:flex-start;align-items:center;gap:8px;padding:8px 12px 8px 52px;background:rgba(0,0,0,.85);transition:opacity .3s}
|
| 46 |
+
.player-toolbar.visible{display:flex}
|
| 47 |
+
.menu-toggle{position:fixed;top:8px;left:8px;z-index:1002;width:36px;height:36px;background:rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.3);color:#fff;border-radius:6px;cursor:pointer;font-size:1.3em;display:flex;align-items:center;justify-content:center;line-height:1}
|
| 48 |
+
.menu-toggle:hover{background:rgba(233,69,96,.8)}
|
| 49 |
+
.toolbar-btn{background:rgba(233,69,96,.9);color:#fff;border:none;padding:6px 14px;border-radius:4px;cursor:pointer;font-size:.9em;white-space:nowrap}
|
| 50 |
+
.toolbar-btn:hover{background:#e94560}
|
| 51 |
+
.toolbar-btn.active{background:#4ecca3}
|
| 52 |
+
.offline-banner{display:none;background:#f0a500;color:#000;text-align:center;padding:8px;font-size:.85em;font-weight:700}
|
| 53 |
+
.offline-banner.show{display:block}
|
| 54 |
+
.modal-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.8);z-index:2000;justify-content:center;align-items:center;padding:20px}
|
| 55 |
+
.modal-overlay.active{display:flex}
|
| 56 |
+
.modal-box{background:#16213e;border:1px solid #0f3460;border-radius:10px;width:100%;max-width:550px;max-height:90vh;overflow-y:auto;padding:25px}
|
| 57 |
+
.modal-box h2{color:#e94560;margin-bottom:20px;font-size:1.4em}
|
| 58 |
+
.modal-box h3{color:#e94560;margin:20px 0 10px;font-size:1.1em;border-bottom:1px solid #0f3460;padding-bottom:5px}
|
| 59 |
+
.modal-close-btn{float:right;background:none;border:2px solid #e94560;color:#e94560;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:1em;display:flex;align-items:center;justify-content:center}
|
| 60 |
+
.modal-close-btn:hover{background:#e94560;color:#fff}
|
| 61 |
+
.setting-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid rgba(15,52,96,.2)}
|
| 62 |
+
.setting-row label{color:#e0e0e0;font-size:.95em;flex:1}
|
| 63 |
+
.setting-row .setting-desc{color:#888;font-size:.78em;display:block}
|
| 64 |
+
.toggle-switch{position:relative;width:50px;height:26px}
|
| 65 |
+
.toggle-switch input{position:absolute;opacity:0;width:100%;height:100%;cursor:pointer;z-index:1;margin:0;top:0;left:0}
|
| 66 |
+
.toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#333;transition:.3s;border-radius:26px}
|
| 67 |
+
.toggle-slider:before{position:absolute;content:"";height:20px;width:20px;left:3px;bottom:3px;background-color:#e0e0e0;transition:.3s;border-radius:50%}
|
| 68 |
+
.toggle-switch input:checked+.toggle-slider{background-color:#4ecca3}
|
| 69 |
+
.toggle-switch input:checked+.toggle-slider:before{transform:translateX(24px)}
|
| 70 |
+
.filter-row{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap}
|
| 71 |
+
.filter-btn{background:#0f3460;color:#e0e0e0;border:none;padding:6px 14px;border-radius:4px;cursor:pointer;font-size:.85em}
|
| 72 |
+
.filter-btn:hover{background:#1a4a8a}
|
| 73 |
+
.filter-btn.active{background:#e94560;color:#fff}
|
| 74 |
+
footer{background:#16213e;text-align:center;padding:15px;margin-top:40px;border-top:1px solid #0f3460;color:#888;font-size:.9em}
|
| 75 |
+
footer .heart{color:#e94560;font-size:1.1em}
|
| 76 |
+
@media(max-width:600px){
|
| 77 |
+
.header h1{font-size:1.4em}
|
| 78 |
+
.header{padding:15px}
|
| 79 |
+
.header-actions{position:static;transform:none;justify-content:center;margin-top:10px}
|
| 80 |
+
.container{margin:15px auto}
|
| 81 |
+
.game-row .cache-btn{font-size:.68em;padding:2px 6px}
|
| 82 |
+
}
|
| 83 |
+
</style>
|
| 84 |
+
</head>
|
| 85 |
+
<body>
|
| 86 |
+
<div class="offline-banner" id="offline-banner">⚠ You are offline — only cached games are available</div>
|
| 87 |
+
<div class="header">
|
| 88 |
+
<h1>💾 NES Game Player</h1>
|
| 89 |
+
<p>Nintendo Entertainment System • 8-bit • 2 Buttons (A & B)</p>
|
| 90 |
+
<div class="header-actions">
|
| 91 |
+
<a href="/" class="icon-btn" title="Back to Console Selection">←</a>
|
| 92 |
+
<button class="icon-btn" onclick="openSettings()" title="Settings">⚙</button>
|
| 93 |
+
</div>
|
| 94 |
+
</div>
|
| 95 |
+
<div class="container">
|
| 96 |
+
<h2>📁 NES Game Library</h2>
|
| 97 |
+
<input type="text" id="search-bar" class="search-bar" placeholder="Search NES games..." oninput="filterGames()">
|
| 98 |
+
<div class="filter-row">
|
| 99 |
+
<button class="filter-btn active" id="filter-all" onclick="setFilter('all')">All Games</button>
|
| 100 |
+
<button class="filter-btn" id="filter-offline" onclick="setFilter('offline')">🔌 Offline Ready</button>
|
| 101 |
+
</div>
|
| 102 |
+
<div id="game-count" class="game-count"></div>
|
| 103 |
+
<ul id="game-list" class="game-list"><li class="no-games">Loading...</li></ul>
|
| 104 |
+
</div>
|
| 105 |
+
<footer>Built and Hosted by Parveen Bhadoo <span class="heart">❤</span></footer>
|
| 106 |
+
<div id="player-container">
|
| 107 |
+
<button class="menu-toggle" id="menu-toggle" onclick="toggleToolbar()">☰</button>
|
| 108 |
+
<div class="player-toolbar" id="player-toolbar">
|
| 109 |
+
<button class="toolbar-btn" id="fullscreen-btn" onclick="toggleFullscreen()">⛶ Fullscreen</button>
|
| 110 |
+
<button class="toolbar-btn" id="close-btn" onclick="closePlayer()">✕ Close</button>
|
| 111 |
+
</div>
|
| 112 |
+
<div id="game" style="width:100%;height:100%"></div>
|
| 113 |
+
</div>
|
| 114 |
+
<div class="modal-overlay" id="settings-modal">
|
| 115 |
+
<div class="modal-box">
|
| 116 |
+
<button class="modal-close-btn" onclick="closeSettings()">✕</button>
|
| 117 |
+
<h2>⚙ Settings</h2>
|
| 118 |
+
<h3>📺 Display</h3>
|
| 119 |
+
<div class="setting-row">
|
| 120 |
+
<label>Auto-Fullscreen on Play<span class="setting-desc">Automatically enter fullscreen when starting a game</span></label>
|
| 121 |
+
<div class="toggle-switch"><input type="checkbox" id="setting-auto-fullscreen" onchange="saveSetting('autoFullscreen',this.checked)"><span class="toggle-slider"></span></div>
|
| 122 |
+
</div>
|
| 123 |
+
<div class="setting-row">
|
| 124 |
+
<label>Force Landscape in Fullscreen<span class="setting-desc">Lock screen orientation to landscape</span></label>
|
| 125 |
+
<div class="toggle-switch"><input type="checkbox" id="setting-force-landscape" onchange="saveSetting('forceLandscape',this.checked)"><span class="toggle-slider"></span></div>
|
| 126 |
+
</div>
|
| 127 |
+
<h3>🎮 Controls</h3>
|
| 128 |
+
<p style="color:#888;font-size:.85em">The NES controller has <strong style="color:#e0e0e0">A</strong> and <strong style="color:#e0e0e0">B</strong> action buttons, plus D-pad, Start, and Select. Use the ⚙ icon inside the emulator to remap keys.</p>
|
| 129 |
+
<h3>🔌 Offline Play</h3>
|
| 130 |
+
<div class="setting-row">
|
| 131 |
+
<label>Service Worker Status<span class="setting-desc" id="sw-status">Checking...</span></label>
|
| 132 |
+
</div>
|
| 133 |
+
<div class="setting-row">
|
| 134 |
+
<label>Cached Games<span class="setting-desc" id="cached-count">0 games cached</span></label>
|
| 135 |
+
<button class="btn btn-small btn-warning" onclick="clearAllCachedRoms()">Clear All</button>
|
| 136 |
+
</div>
|
| 137 |
+
</div>
|
| 138 |
+
</div>
|
| 139 |
+
<script>
|
| 140 |
+
var CORE='nes', ROMS_PATH='/roms/', ROM_EXT='.nes', SETTINGS_KEY='nesPlayerSettings';
|
| 141 |
+
var DEFAULT_SETTINGS={autoFullscreen:false,forceLandscape:true};
|
| 142 |
+
function loadSettings(){try{return Object.assign({},DEFAULT_SETTINGS,JSON.parse(localStorage.getItem(SETTINGS_KEY)))}catch(e){return Object.assign({},DEFAULT_SETTINGS)}}
|
| 143 |
+
function saveSetting(k,v){var s=loadSettings();s[k]=v;localStorage.setItem(SETTINGS_KEY,JSON.stringify(s))}
|
| 144 |
+
function applySettingsToUI(){var s=loadSettings();document.getElementById('setting-auto-fullscreen').checked=s.autoFullscreen;document.getElementById('setting-force-landscape').checked=s.forceLandscape}
|
| 145 |
+
function openSettings(){applySettingsToUI();updateCachedCount();document.getElementById('settings-modal').classList.add('active')}
|
| 146 |
+
function closeSettings(){document.getElementById('settings-modal').classList.remove('active')}
|
| 147 |
+
document.getElementById('settings-modal').addEventListener('click',function(e){if(e.target===this)closeSettings()});
|
| 148 |
+
|
| 149 |
+
function toggleFullscreen(){var c=document.getElementById('player-container');if(!document.fullscreenElement&&!document.webkitFullscreenElement){var req=c.requestFullscreen||c.webkitRequestFullscreen;if(req)req.call(c).then(function(){var s=loadSettings();if(s.forceLandscape&&screen.orientation&&screen.orientation.lock)screen.orientation.lock('landscape').catch(function(){})}).catch(function(){})}else{var ex=document.exitFullscreen||document.webkitExitFullscreen;if(ex)ex.call(document);if(screen.orientation&&screen.orientation.unlock)screen.orientation.unlock()}}
|
| 150 |
+
document.addEventListener('fullscreenchange',updateFSUI);document.addEventListener('webkitfullscreenchange',updateFSUI);
|
| 151 |
+
function updateFSUI(){var fs=!!(document.fullscreenElement||document.webkitFullscreenElement);var btn=document.getElementById('fullscreen-btn');btn.innerHTML=fs?'✖ Exit FS':'⛶ Fullscreen';btn.classList.toggle('active',fs)}
|
| 152 |
+
|
| 153 |
+
var toolbarTimer=null;
|
| 154 |
+
function toggleToolbar(){var tb=document.getElementById('player-toolbar');if(tb.classList.contains('visible')){tb.classList.remove('visible');clearTimeout(toolbarTimer)}else{tb.classList.add('visible');clearTimeout(toolbarTimer);toolbarTimer=setTimeout(function(){tb.classList.remove('visible')},5000)}}
|
| 155 |
+
|
| 156 |
+
var swReady=false,cachedRomUrls=new Set(),currentFilter='all';
|
| 157 |
+
if('serviceWorker' in navigator){
|
| 158 |
+
navigator.serviceWorker.register('/sw.js').then(function(){swReady=true;document.getElementById('sw-status').textContent='Active';requestCachedRomsList()}).catch(function(err){document.getElementById('sw-status').textContent='Failed: '+err.message});
|
| 159 |
+
navigator.serviceWorker.addEventListener('message',function(event){
|
| 160 |
+
var d=event.data;
|
| 161 |
+
if(d.action==='cachedRomsList'){cachedRomUrls=new Set(d.urls);updateCachedCount();updateCacheBadges()}
|
| 162 |
+
if(d.action==='romCached'){if(d.success)cachedRomUrls.add(d.url);requestCachedRomsList()}
|
| 163 |
+
if(d.action==='romUncached'){cachedRomUrls.delete(d.url);requestCachedRomsList()}
|
| 164 |
+
})}
|
| 165 |
+
function requestCachedRomsList(){if(navigator.serviceWorker.controller)navigator.serviceWorker.controller.postMessage({action:'getCachedRoms'})}
|
| 166 |
+
function isRomCached(file){var url=location.origin+ROMS_PATH+encodeURIComponent(file);for(var u of cachedRomUrls){if(decodeURIComponent(u)===decodeURIComponent(url)||u===url)return true}return false}
|
| 167 |
+
function cacheRom(file,btn){if(!navigator.serviceWorker.controller)return;btn.textContent='Caching...';btn.disabled=true;navigator.serviceWorker.controller.postMessage({action:'cacheRom',url:location.origin+ROMS_PATH+encodeURIComponent(file)})}
|
| 168 |
+
function uncacheRom(file,btn){if(!navigator.serviceWorker.controller)return;navigator.serviceWorker.controller.postMessage({action:'uncacheRom',url:location.origin+ROMS_PATH+encodeURIComponent(file)})}
|
| 169 |
+
function updateCachedCount(){document.getElementById('cached-count').textContent=cachedRomUrls.size+' games cached'}
|
| 170 |
+
function updateCacheBadges(){document.querySelectorAll('.game-row').forEach(function(row){var file=row.dataset.file;if(!file)return;var badge=row.querySelector('.badge-offline'),btn=row.querySelector('.cache-btn');if(isRomCached(file)){if(!badge){var b=document.createElement('span');b.className='badge-offline';b.textContent='OFFLINE';row.querySelector('.game-badges').prepend(b)}if(btn){btn.textContent='Remove';btn.className='cache-btn cached';btn.onclick=function(e){e.stopPropagation();uncacheRom(file,btn)}}}else{if(badge)badge.remove();if(btn){btn.textContent='\u{1F50C} Cache';btn.className='cache-btn';btn.disabled=false;btn.onclick=function(e){e.stopPropagation();cacheRom(file,btn)}}}})}
|
| 171 |
+
function clearAllCachedRoms(){if(!confirm('Remove all cached ROM files?'))return;cachedRomUrls.forEach(function(url){if(navigator.serviceWorker.controller)navigator.serviceWorker.controller.postMessage({action:'uncacheRom',url:url})});cachedRomUrls.clear();updateCachedCount();updateCacheBadges()}
|
| 172 |
+
function setFilter(f){currentFilter=f;document.getElementById('filter-all').classList.toggle('active',f==='all');document.getElementById('filter-offline').classList.toggle('active',f==='offline');filterGames()}
|
| 173 |
+
|
| 174 |
+
window.addEventListener('online',function(){document.getElementById('offline-banner').classList.remove('show')});
|
| 175 |
+
window.addEventListener('offline',function(){document.getElementById('offline-banner').classList.add('show')});
|
| 176 |
+
if(!navigator.onLine)document.getElementById('offline-banner').classList.add('show');
|
| 177 |
+
|
| 178 |
+
var allGames=[],filteredGames=[],displayedCount=0,PAGE_SIZE=50,isLoadingMore=false;
|
| 179 |
+
async function loadGameList(){try{var r=await fetch(ROMS_PATH+'index.json?t='+Date.now());if(!r.ok)throw new Error();allGames=await r.json();allGames.sort(function(a,b){return a.name.localeCompare(b.name)});filterGames()}catch(e){document.getElementById('game-list').innerHTML='<li class="no-games">No games found. Add ROM files to get started.</li>';document.getElementById('game-count').textContent=''}}
|
| 180 |
+
function filterGames(){var q=document.getElementById('search-bar').value.toLowerCase().trim();filteredGames=allGames;if(q)filteredGames=filteredGames.filter(function(g){return g.name.toLowerCase().includes(q)});if(currentFilter==='offline')filteredGames=filteredGames.filter(function(g){return isRomCached(g.file)});var c=document.getElementById('game-list'),cnt=document.getElementById('game-count');if(filteredGames.length===0){c.innerHTML='<li class="no-games">'+(currentFilter==='offline'?'No cached games.':'No games match your search')+'</li>';cnt.textContent=q?'0 results':'';return}cnt.textContent=(q||currentFilter==='offline')?filteredGames.length+' of '+allGames.length+' games':allGames.length+' games';c.innerHTML='';displayedCount=0;loadMoreGames()}
|
| 181 |
+
function loadMoreGames(){if(isLoadingMore)return;isLoadingMore=true;var c=document.getElementById('game-list'),end=Math.min(displayedCount+PAGE_SIZE,filteredGames.length);for(var i=displayedCount;i<end;i++){var g=filteredGames[i],li=document.createElement('li');li.className='game-row';li.dataset.file=g.file;var cached=isRomCached(g.file);li.innerHTML='<span class="game-name">'+escapeHtml(g.name)+'</span><span class="game-badges">'+(cached?'<span class="badge-offline">OFFLINE</span>':'')+'<button class="cache-btn'+(cached?' cached':'')+'">'+(cached?'Remove':'\u{1F50C} Cache')+'</button></span><span class="play-icon">▶</span>';li.onclick=function(file){return function(){launchGame(ROMS_PATH+encodeURIComponent(file))}}(g.file);var cBtn=li.querySelector('.cache-btn');(function(file,btn){btn.onclick=function(e){e.stopPropagation();if(isRomCached(file))uncacheRom(file,btn);else cacheRom(file,btn)}})(g.file,cBtn);c.appendChild(li)}displayedCount=end;var old=document.getElementById('load-more-sentinel');if(old)old.remove();if(displayedCount<filteredGames.length){var s=document.createElement('li');s.id='load-more-sentinel';s.className='no-games';s.textContent='Showing '+displayedCount+' of '+filteredGames.length+' — scroll for more';s.style.cursor='pointer';s.onclick=function(){loadMoreGames()};c.appendChild(s);observeSentinel(s)}isLoadingMore=false}
|
| 182 |
+
var observer=null;
|
| 183 |
+
function observeSentinel(el){if(observer)observer.disconnect();observer=new IntersectionObserver(function(entries){if(entries[0].isIntersecting)loadMoreGames()},{rootMargin:'200px'});observer.observe(el)}
|
| 184 |
+
function escapeHtml(t){var d=document.createElement('div');d.textContent=t;return d.innerHTML}
|
| 185 |
+
|
| 186 |
+
function launchGame(romUrl){
|
| 187 |
+
var p=document.getElementById('player-container'),g=document.getElementById('game');
|
| 188 |
+
p.style.display='block';g.innerHTML='';
|
| 189 |
+
window.EJS_player='#game';window.EJS_gameUrl=romUrl;window.EJS_core=CORE;
|
| 190 |
+
window.EJS_pathtodata='https://cdn.emulatorjs.org/stable/data/';
|
| 191 |
+
var old=document.getElementById('ejs-script');if(old)old.remove();
|
| 192 |
+
var sc=document.createElement('script');sc.id='ejs-script';sc.src='https://cdn.emulatorjs.org/stable/data/loader.js';document.body.appendChild(sc);
|
| 193 |
+
var settings=loadSettings();if(settings.autoFullscreen)setTimeout(function(){toggleFullscreen()},1000);
|
| 194 |
+
}
|
| 195 |
+
function closePlayer(){
|
| 196 |
+
var ex=document.exitFullscreen||document.webkitExitFullscreen;
|
| 197 |
+
if(document.fullscreenElement||document.webkitFullscreenElement){if(ex)ex.call(document)}
|
| 198 |
+
if(screen.orientation&&screen.orientation.unlock)screen.orientation.unlock();
|
| 199 |
+
document.getElementById('player-container').style.display='none';document.getElementById('game').innerHTML='';
|
| 200 |
+
delete window.EJS_player;delete window.EJS_gameUrl;delete window.EJS_core;
|
| 201 |
+
clearTimeout(toolbarTimer);location.reload();
|
| 202 |
+
}
|
| 203 |
+
document.addEventListener('keydown',function(e){if(e.key==='Escape'&&document.getElementById('player-container').style.display==='block')closePlayer()});
|
| 204 |
+
loadGameList();
|
| 205 |
+
</script>
|
| 206 |
+
</body>
|
| 207 |
+
</html>
|
pages/roms/10-Yard Fight (U).nes
ADDED
|
Binary file (41 kB). View file
|
|
|
pages/roms/100 Man $ Kid - Maboroshi no Teiou Hen (J) [hM02].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12367d231f5da5dab050977ac456487f8d1fcf006dc06e1dde118f823b7dba8f
|
| 3 |
+
size 262160
|
pages/roms/100-in-1 Contra Function 16 [a1].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d7cf222ec3042a92bf4e02cb660ed048ef253f6ee87a76c8869de71247f03cc
|
| 3 |
+
size 1048592
|
pages/roms/100-in-1 Contra Function 16 [a2].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b01ce15a47dc77d550b8554b937308f00260f950155684fba01f07b3dd65cee
|
| 3 |
+
size 1048592
|
pages/roms/100-in-1 Contra Function 16.nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:771bb80ed6753a2d7659b72c5e6b3c15f55abf80853650bfe52e7620abb38275
|
| 3 |
+
size 1048592
|
pages/roms/11-in-1 Ball Games [!].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87267194dcb87f929d0eb1d91a7417168369e77bd470a7c9c2f788f507f7fdbc
|
| 3 |
+
size 532496
|
pages/roms/110-in-1 (Menu).nes
ADDED
|
Binary file (24.6 kB). View file
|
|
|
pages/roms/110-in-1 [p1].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d381868c891eeb93894dfb98b92d1b9130dae37621f0eb885a6d9c47b73f8e9f
|
| 3 |
+
size 3145744
|
pages/roms/115-in-1 [p1][!].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cbc51cc87c932a93489e8a30fc28a3268fc73c12ea52e84cf2f46bc7a8607271
|
| 3 |
+
size 3145744
|
pages/roms/115-in-1 [p1][a1].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6fb9dd0e1993159bab2ef50a6988136b33ee8bb719f76cde46e04614270f3f40
|
| 3 |
+
size 3145744
|
pages/roms/1200-in-1 (J) [p1].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a6cc62f11d6d872e9b0f3105089f31ea8a3d0c0593d24fa3adf73e4d62bfd78e
|
| 3 |
+
size 524304
|
pages/roms/150-in-1 [p1][!].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ab3ab7c0b74d5427a86efcf5030414c5152426eda66d6344a70d73e5d7b8a333
|
| 3 |
+
size 2097168
|
pages/roms/16 Mahjang [!].nes
ADDED
|
Binary file (49.2 kB). View file
|
|
|
pages/roms/1942 (JU) [p1].nes
ADDED
|
Binary file (41 kB). View file
|
|
|
pages/roms/1942 (JU).nes
ADDED
|
Binary file (41 kB). View file
|
|
|
pages/roms/1942 (PC10).nes
ADDED
|
Binary file (49.2 kB). View file
|
|
|
pages/roms/1943 (U) [T-Port_BRGames].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:376e39b898b461b10a8a4079842390aeb24bd9344ca28e71acb7899f7ad1aca7
|
| 3 |
+
size 131088
|
pages/roms/1943 (U).nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2fd596ac4563b910a4d0a36d4a3658910fcfa822afd4f78bd62f73552e17ea00
|
| 3 |
+
size 131088
|
pages/roms/1944 (1943 Hack) [p1].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81f05aac138895cbf0f82b8088e9d56c8a6a792458791d252790a44026ef65d7
|
| 3 |
+
size 131088
|
pages/roms/1944 (1943 Hack) [p2].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8807da70f070c3dfb93d5c761c58bf00ff821e3b63aa1b74f9f05e8e0aed97f5
|
| 3 |
+
size 131088
|
pages/roms/1944 (1943 Hack) [p3].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31fb213ba858743a33e36d29611a2b6c4193a493b600005748a8c81cdab90e9d
|
| 3 |
+
size 131088
|
pages/roms/1991 Du Ma Racing (Enjoyable Horse Racing 1991).nes
ADDED
|
Binary file (65.6 kB). View file
|
|
|
pages/roms/20-in-1 (Mapper 231) [p1][!].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a7bbe9fcab70a2c8e5359de07d98f9a0f6d08548b30a6b49598d916c52186eb
|
| 3 |
+
size 524304
|
pages/roms/20-in-1 (Mapper 61) [p1][!].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e6da167a2ebb61b9cd344bcc34116bc9044511e07964ab4842d8b3131a2f3ce5
|
| 3 |
+
size 524304
|
pages/roms/22-in-1 [p1].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c96bb1d0b19170b772a3845f80b98129a9b95f38f725c28a6e80727f49e295cc
|
| 3 |
+
size 655376
|
pages/roms/24-in-1 (Menu) [a1].nes
ADDED
|
Binary file (98.3 kB). View file
|
|
|
pages/roms/24-in-1 (Menu) [a2].nes
ADDED
|
Binary file (98.3 kB). View file
|
|
|
pages/roms/24-in-1 (Menu) [a3].nes
ADDED
|
Binary file (98.3 kB). View file
|
|
|
pages/roms/24-in-1 (Menu) [a4].nes
ADDED
|
Binary file (65.6 kB). View file
|
|
|
pages/roms/24-in-1 (Menu).nes
ADDED
|
Binary file (98.3 kB). View file
|
|
|
pages/roms/260-in-1.nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6645c43e33ad643fa3316f4a7370a2a04b5d1c2755512a79998e64b2aba18d1f
|
| 3 |
+
size 4194320
|
pages/roms/2600 Bros (SMB1 Hack).nes
ADDED
|
Binary file (41 kB). View file
|
|
|
pages/roms/3-D Battles of World Runner, The (U) [hM34].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9daf9a48cece6f91c94107955904822cc9127cc700306b44022148a7aaefde73
|
| 3 |
+
size 262160
|
pages/roms/3-D Battles of World Runner, The (U) [hM34][a1].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0e554fe5db4102d739f9384cca4348d88ccb41a17dc26e0da55b647469be727
|
| 3 |
+
size 131088
|
pages/roms/3-D Battles of World Runner, The (U).nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f6f12b05ff708ca69b3ca8740ac8c58be572bd1f460b8255fa8700b0e48074e
|
| 3 |
+
size 131088
|
pages/roms/3-in-1 (E) [!].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96a039e967c63158a52b023c7609fc3311f33cfe18bc206fd1056dae873a1da5
|
| 3 |
+
size 524304
|
pages/roms/31-in-1 (J) [p1].nes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ded192ce45d4347629d70d92ae751ada8d58c21bd5d723100578bce12d1f687
|
| 3 |
+
size 786448
|
pages/roms/31-in-1 (Menu) (J).nes
ADDED
|
Binary file (32.8 kB). View file
|
|
|
pages/roms/350-in-1 (Menu).nes
ADDED
|
Binary file (24.6 kB). View file
|
|
|
pages/roms/3D Block [p1].nes
ADDED
|
Binary file (32.8 kB). View file
|
|
|
pages/roms/3D Block [p2].nes
ADDED
|
Binary file (32.8 kB). View file
|
|
|
pages/roms/4 Nin Uchi Mahjong (J) [h1].nes
ADDED
|
Binary file (24.6 kB). View file
|
|
|