fixed error in fillLevelsSelection

This commit is contained in:
nbillard 2022-12-05 17:54:16 +01:00
parent 03c76e61bc
commit 771eeab446
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
import { levelsBlueprint } from '/modules/levels.mjs'
export const fillLevelSelection = () => {
export const fillLevelsSelection = () => {
let levelList = document.getElementById('level-list');
for (let i = 0; i < levelsBlueprint.size; ++i) {
let listElement = document.createElement("li");

View file

@ -1,9 +1,9 @@
import { generatePlayground } from '/modules/playground.mjs'
import {levelsBlueprint } from '/modules/levels.mjs'
import { levelsBlueprint } from '/modules/levels.mjs'
import { MoveDirection } from '/modules/enums.mjs'
import { fillLevelsSelection } from '/modules/fillLevelsSelection.mjs'
fillLevelSelection();
fillLevelsSelection();
let canvas = document.getElementById('canvas');
let ctx = canvas.getContext('2d');
window.ctx = ctx