In this tutorial we learn how to build a 2D tile map for a game in JavaScript. We set up the basic architecture for a game and dive into the details of what a tile map is and how to build one.
Links
GitHub Repository
https://github.com/CodingWith-Adam/TileMap
Direction download link from GitHub with assets
https://github.com/CodingWith-Adam/TileMap/archive/refs/heads/main.zip
Demo Of solution
https://codingwith-adam.github.io/TileMap/index.html
Pac-Man Tutorial
https://www.youtube.com/watch?v=Tk48dQCdQ3E
Multiple cursors in vs code
https://bit.ly/3C3qrfk
00:00:00 Introduction
00:01:14 Project Setup
00:02:13 Html Setup
00:05:44 Game.Js Setup with Game Loop
00:08:31 TileMap
00:21:50 Visualization of how TileMap is drawn
00:22:46 The End