Тёмный

Tile Map Canvas JavaScript 

Chuck's Resume
Подписаться 328
Просмотров 12 тыс.
50% 1

Many games require a grid map. In this video I walk through creating a grip map using the Canvas element and JavaScript

Опубликовано:

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@AndrewBone
@AndrewBone Год назад
2d arrays would make this easier
@chrisnguyen180
@chrisnguyen180 2 года назад
Great video! Although I would like to see more advance concepts/terms throw into the mix. Such as functional/OOL style programming, elaborating on methods you used (e.g you used anonymous functions), if the "window.requestAnimationFrame" is asynchronous or not... Another tip when you were copy/pasting the map rows, instead use "Alt"+"Shift"+Down ... Keep the vids coming, chuck!
@oskariloytynoja4366
@oskariloytynoja4366 7 месяцев назад
On line 35 you should multiply with gridCols and not gridRows. It happens to work in your example because gridRows and gridCols are both 10.
@chucksresume7203
@chucksresume7203 7 месяцев назад
Good catch!!
@marcelastafe7123
@marcelastafe7123 10 месяцев назад
The best video. Thanks.
@ArmaanM123
@ArmaanM123 Год назад
nice vid though i wonder why you didnt use a object oriented way using: function Tile(x,y,width,height){ this.x = x; this.y = y; this.width = width; this.height = height; this.arr = [...]; this.draw = function(){ loopThroughtArr(this.arr); } }
@chucksresume7203
@chucksresume7203 Год назад
Nice catch!!
@Bullet-with-Shawn
@Bullet-with-Shawn Год назад
Thanks🤓.
@ChandrashekarCN
@ChandrashekarCN Год назад
💖💖💖💖
@neilmeich
@neilmeich 7 месяцев назад
cool
@josephcieplak8920
@josephcieplak8920 2 года назад
Are you thinking about building a RPG game something like pokemon on canvas?
@chucksresume7203
@chucksresume7203 2 года назад
There's an old DOS game called "Castle of the Winds" that was pretty cool. It was a tile based Rogue RPG without audio lol, but it still played well! Would love to make something like that.
Далее
Wall Collision Tile Map JavaScript
22:09
Просмотров 2,1 тыс.
Leetcode 189 - Rotate Array JavaScript
21:54
(JavaScript/HTML Canvas) Tutorial - Grid Based Movement
16:34
Creating a Game Engine in Javascript from scratch
36:53
HTML5 Canvas CRASH COURSE for Beginners
51:26
Просмотров 219 тыс.
Coding Quickie: Isometric Tiles
22:13
Просмотров 117 тыс.
How To Create a JavaScript TileMap For a 2D Game
23:27
How to build a Tile Set Map Editor using HTML Canvas
30:07