File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<!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 > River Raid</ title >
7- < link href ="https://fonts.cdnfonts.com/css/zx-spectrum-7 " rel ="stylesheet ">
8- < style >
9- * {
10- margin : 0 ;
11- padding : 0 ;
12- box-sizing : border-box;
13- }
14-
15- html , body {
16- height : 100% ;
17- background : # 000 ;
18- }
19-
20- body {
21- display : flex;
22- align-items : center;
23- justify-content : center;
24- }
25-
26- .text {
27- color : # c5c5c5 ;
28- font-family : 'ZX Spectrum-7' , monospace;
29- font-size : 18vw ;
30- text-align : center;
31- white-space : nowrap;
32- }
33- </ style >
34- </ head >
35- < body >
36- < div class ="text "> COMING SOON</ div >
37- </ body >
38- </ html >
2+ < script src ="wasm_exec.js "> </ script >
3+ < script >
4+ const go = new Go ( ) ;
5+ WebAssembly . instantiateStreaming ( fetch ( "river-raid.wasm" ) , go . importObject ) . then ( result => {
6+ go . run ( result . instance ) ;
7+ } ) ;
8+ </ script >
You can’t perform that action at this time.
0 commit comments