JavaScript HTML Game Development Tutorial 6 - Tilemap Math Basics (2D RPG Platformer)

Download source code for tutorial series here: A new gamedev tutorial about mapping mouse / screen coordinates to tile map X and Y coordinates in our game map world and determining the clicked tile index. Welcome to the next installment in the 2D platformer/RPG game development (gamedev) tutorial series, where we are learning how to make a javascript game engine! This time we are going to lean on some basic mathematics, that help us determine how to navigate the tile map data back and form, from indices to 2D coordinates and in reverse. Having learned how these math calculations work within the realm of our tile map game world / level data, we will be able to apply them to make ah HTML5 game! When you support my Patreon account by becoming a $1 patron, it helps me deliver the next tutorial sooner. Thanks for everyone who has been supporting my work so far. Support my independent gamedev tutorials on Patreon: JavaScript game engine aka HTML5 game engi
Back to Top