2D Tile Based Game Coordinate System Basics

preview_player
Показать описание
These are some of the most basic functions used to do tile based collision detection. Learn how to determine what type of tile is at a given position in the map and where a mouse pointer, finger touch, or game object is on the grid. If you want to learn tile based collision detection, start here with the basics.

Рекомендации по теме
Комментарии
Автор

hey, can you explain to me this : controller.pointer_x = event.clientX - rectangle.left;
controller.pointer_y = event.clientY - rectangle.top; i don't really understand why we substract event.clientX - rectangle.left . great tutorial by the way, keep up the good work

aminelagab
Автор

Great tutorial, nearly what I was looking for. Thanks for sharing!
My question is:
How can I fill tiles with images? Can you explain how to use images instead of just colours?

goyslee
join shbcf.ru