Skip to content

Instantly share code, notes, and snippets.

View SewBak's full-sized avatar
🎯
Focusing

SewBak

🎯
Focusing
  • Bucharest, Romania
View GitHub Profile
<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;