fixed error in fillLevelsSelection

Cette révision appartient à :
nbillard 2022-12-05 17:54:16 +01:00
Parent 03c76e61bc
révision 771eeab446
2 fichiers modifiés avec 3 ajouts et 3 suppressions

Voir le fichier

@ -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");

Voir le fichier

@ -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