(async function () { await initializeDB(); // Start Game const possibleStarterMonsters = ['budaye', 'dollfin', 'grintot', 'ignibus', 'memnomnom']; Memory.state.player = new Trainer( [ await fetchMonster(possibleStarterMonsters[Math.round(Math.random() * (possibleStarterMonsters.length - 1))]), ], [ new InventoryItem(await fetchItem('tuxeball')), new InventoryItem(await fetchItem('potion')), ] ); await Memory.state.player.initialize(); Memory.state.activeTechnique = Memory.state.player.activeMonster.activeTechniques[0]; Memory.state.rivalMonster = await fetchMonster(possibleStarterMonsters[Math.round(Math.random() * (possibleStarterMonsters.length - 1))]); const area = await fetchArea('paper-town'); await Game.progressToArea(area); UI.drawActiveMonster(); UI.drawActiveTechniques(); })();