Tell us what’s happening:
I’ve already done with this platformer game, but I don’t get it, for what perpose there is “z” parameter?
At the final step I deleted all of “z” and nothing changed, at least didn’t notice that.
Inside that CheckPoint
class, add a constructor with x
, y
and z
parameters.
Your code so far
<!-- file: index.html -->
/* file: script.js */
// User Editable Region
class CheckPoint {
};
// User Editable Region
/* file: styles.css */
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 OPR/114.0.0.0
Challenge Information:
Learn Intermediate OOP by Building a Platformer Game - Step 94