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> | |
<body style="margin: 0; padding: 0;"> | |
<canvas id="canvas" style="width: 200px; height: 200px" width="200" height="200"> | |
</canvas> | |
<table id="colors" width="100%" border="1" cellpadding="0" cellspacing="0" style="border-collapse:collapse; display: inline;"> | |
<tbody> | |
<tr> | |
<td style="background-color: #070707"> </td> |
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
{ | |
"data" : | |
"1/A/Bear | |
1/A/Lion | |
1/B/Racoon | |
1/B/Tiger | |
2/A/Cat | |
2/B/Dog | |
2/C/Horse" | |
} |
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
/* | |
The Apple Eaters | |
A simple JavaScript game we created together with my kids to teach them coding. | |
Teaches basics of concepts like model/view, reacting to events, DOM manipulation. | |
*/ | |
const APPLES = 2000; | |
let player1 = { |