anarch/bin/web/anarch.html

1 line
1.8 KiB
HTML
Raw Normal View History

2020-11-20 12:00:12 -05:00
<!doctypehtml><html><head><meta charset=utf-8><title>game</title><style>table{width:100%}td{width:11%;padding:0;margin:0}button{width:100%}canvas{display:block;margin:10px auto 30px}</style></head><body><canvas class=emscripten id=canvas oncontextmenu=event.preventDefault() tabindex=-1></canvas><script>function down(n){pressFunc(n,1)}function up(n){pressFunc(n,0)}Module={print:function(n){console.log(n)},printErr:function(n){console.error(n)},canvas:document.getElementById("canvas"),onRuntimeInitialized:function(){pressFunc=Module.cwrap("webButton","",["number","number"])}}</script><script async src=anarch.js></script><table onselectstart=return!1 style=user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;-o-user-select:none unselectable=on><tr><td></td><td><button onmousedown=down(0) onmouseout=up(0) onmouseup=up(0) ontouchend=up(0) ontouchleave=""ontouchstart=down(0)>U</button></td><td></td><td></td><td><button onmousedown=down(4) onmouseout=up(4) onmouseup=up(4) ontouchend=up(4) ontouchleave=""ontouchstart=down(4)>A</button></td><td></td><td></td></tr><tr><td><button onmousedown=down(3) onmouseout=up(3) onmouseup=up(3) ontouchend=up(3) ontouchleave=""ontouchstart=down(3)>L</button></td><td></td><td><button onmousedown=down(1) onmouseout=up(1) onmouseup=up(1) ontouchend=up(1) ontouchleave=""ontouchstart=down(1)>R</button></td><td></td><td></td><td><button onmousedown=down(5) onmouseout=up(5) onmouseup=up(5) ontouchend=up(5) ontouchleave=""ontouchstart=down(5)>B</button></td><td></td></tr><tr><td></td><td><button onmousedown=down(2) onmouseout=up(2) onmouseup=up(2) ontouchend=up(2) ontouchleave=""ontouchstart=down(2)>D</button></td><td></td><td></td><td></td><td></td><td><button onmousedown=down(6) onmouseout=up(6) onmouseup=up(6) ontouchend=up(6) ontouchleave=""ontouchstart=down(6)>C</button></td></tr></table></body></html>