I’ve learned how to create smooth 2d player movement, although the diagonal movement isn’t even at the moment. I’m looking to move the project to phase.js, but currently it is vanilla js.
function moveX(spd) {
player.style.left = parseInt(player.style.left) + spd + "px";
}
function moveY(spd) {
player.style.top = parseInt(player.style.top) + spd + "px";
}