Skip to content

Instantly share code, notes, and snippets.

View Vertfromage's full-sized avatar

Crystal Parker Vertfromage

View GitHub Profile
@Vertfromage
Vertfromage / JSGameFramework2020.html
Last active September 7, 2021 15:22 — forked from xem/JSGameFramework2020.html
JS game framework 2020
<body style=margin:0>
<canvas id=a>
<script>
// initialize 2D canvas (c)
// initialize game state (s)
// initialize keys states (u,r,d,l for directions, k for all the keyboard)
c=a.getContext`2d`,k=[u=r=d=l=s=0]
// (initialize your global variables here)