new Medal(id, name, description, icon, src)medalSystem.js:198Create a medal and add it to the list of medals
idnumberThe unique identifier of the medal
namestringName of the medal
descriptionstring optionalDescription of the medal
iconstring optional, default 🏆Icon for the medal
srcstring optionalImage location for the medal
// create a medal
const medal_example = new Medal(0, 'Example Medal', 'More info about the medal goes here.', '🎖️');
// initialize medals
medalsInit('Example Game');
// unlock the medal
medal_example.unlock();