A simple canvas game that involves moving a character around the map in order to collect randomly generated stars.
<canvas id="cc" width="525px" height="550px"></canvas>
<script type="module">
import CaveCrusader from "./script.js";
const map = [
'##########################',
'##########################',
'## ##',
'## @ ##',
'## ## ## ## ## ## ##',
'## ## ## ## ## ## ##',
'## ##',
'## ##',
'## ## ## ## ## ## ##',
'## ## ## ## ## ## ##',
'## ##',
'## ##',
'## ## ## ## ## ## ##',
'## ## ## ## ## ## ##',
'## ##',
'## ##',
'##########################',
'##########################',
];
new CaveCrusader('cc', map);
</script>