-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added models to get an idea of size used
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// JS 13k 2021 entry | ||
|
||
// Game state | ||
var gs={ | ||
// Canvas object | ||
canvas:null, | ||
ctx:null, | ||
}; | ||
|
||
// Startup called once when page is loaded | ||
function startup() | ||
{ | ||
gs.canvas=document.getElementById('canvas'); | ||
gs.ctx=gs.canvas.getContext('2d'); | ||
|
||
write(gs.ctx, 100, 100, "TEST", 10, "#FF00FF"); | ||
|
||
console.log(models); | ||
console.log(gs); | ||
} | ||
|
||
// Run the startup() once page has loaded | ||
window.onload=function() { startup(); }; |