Uploaded July 2022 | Updated September 2026, 1 hour ago
In this video, we refactor our Game Objects to be initialized from static content rather than JavaScript classes. This change enables us to use an Editor program to configure the game's content. We also update wall and NPC behavior to restart after cutscenes.
Play the game here:
https://000687140.codepen.website/
codepen.io/punkydrewster713/project/editor/AaYOMy
FAQ about Pizza Legends:
gamedevshift.com/pizza-legends
================
NOTE: Before coding along with this video, please remove the following lines from 'OverworldMap.js':
//Reset NPCs to do their idle behavior
`Object.values(this.gameObjects).forEach(object (arrow) object.doBehaviorEvent(this));`
Starting code download (pre 17):
drive.google.com/file/d/16TUf2f-CtHT1miOMTVdFxSiTtLhI3aom/view?usp=sharing
Ending code download (17):
drive.google.com/file/d/1Y482c6lqNWBxBZuIa8gD9JWG6jkatcKc/view?usp=sharing
⭐️ Get early access to my full JS Game Dev course:
drew-conley-courses.kit.com/66eb6d3ff4
💬 Join the Game Dev Shift Discord community!
discord.gg/umD2GRy
Twitter:
twitter.com/drewconley13
In this video, we refactor our Game Objects to be initialized from static content rather than JavaScript classes. This change enables us to use an Editor program to configure the game's content. We also update wall and NPC behavior to restart after cutscenes.
Play the game here:
https://000687140.codepen.website/
codepen.io/punkydrewster713/project/editor/AaYOMy
FAQ about Pizza Legends:
gamedevshift.com/pizza-legends
================
NOTE: Before coding along with this video, please remove the following lines from 'OverworldMap.js':
//Reset NPCs to do their idle behavior
`Object.values(this.gameObjects).forEach(object (arrow) object.doBehaviorEvent(this));`
Starting code download (pre 17):
drive.google.com/file/d/16TUf2f-CtHT1miOMTVdFxSiTtLhI3aom/view?usp=sharing
Ending code download (17):
drive.google.com/file/d/1Y482c6lqNWBxBZuIa8gD9JWG6jkatcKc/view?usp=sharing
⭐️ Get early access to my full JS Game Dev course:
drew-conley-courses.kit.com/66eb6d3ff4
💬 Join the Game Dev Shift Discord community!
discord.gg/umD2GRy
Twitter:
twitter.com/drewconley13










