This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head><title>GAME</title></head> | |
<body style = "background-color:black;margin:0px;padding:0px;" onkeydown = "keyRedirectDown(event)" onkeyup = "keyRedirectUp(event)"> | |
<canvas id = "c" width = "1200" height = "600" style = "border:4px solid green;margin-top:4px;"></canvas> | |
<script id = "s"> | |
var d = document.getElementById("c").getContext("2d"); | |
const sp = 8; | |
const obsp = 6; | |
const obsi = 25; | |
var x = 100; |