Skip to content

Instantly share code, notes, and snippets.

Created August 29, 2020 03:52
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
<!DOCTYPE html>
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ping pong game</title>
<script src="./dist/bundle.js" type="text/javascript"></script>
<script src="./node_modules/cannon/build/cannon.js" type="text/javascript"></script>
<link href="" rel="stylesheet">
<style rel="stylesheet" type="text/css">
body {
overflow: hidden;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
#renderCanvas {
position: absolute;
width: 100%;
height: 100%;
top: 0;
touch-action: none;
-ms-touch-action: none;
.disable-selection {
-moz-user-select: none;
-ms-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-webkit-touch-callout: none;
user-select: none;
outline: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0); /* mobile webkit */
<!--<body> -->
<body class="disable-selection">
<canvas id="renderCanvas"></canvas>
<script type="text/javascript"> = new;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment