A cleaned-up rebuild of the original browser console OOP teaching game.
This project intentionally reuses the original asset paths. Put these folders/files beside index.html:
images/
audio/
fonts/
favicon.ico
Use a local static server from this folder:
python -m http.server 8000Then open:
http://localhost:8000
Open DevTools Console and type:
tutorial() yoshi = new Hero()
yoshi.hue = 250
danny = new Footman()
yoshi.walkRight()
yoshi.walkLeft(3)
yoshi.blockRight()
yoshi.attack(danny)The layout keeps the original fixed 1000px × 1000px backdrop coordinate system. Token positions, projectile tops, health bar position, and bomb prompt position are all based on the original CSS/JS coordinate assumptions.