V
V
Vohob Ahmad2020-10-20 10:58:00
JavaScript
Vohob Ahmad, 2020-10-20 10:58:00

How to check if a square hits a wall?

https://codepen.io/Mbreti/pen/YzqMoEP

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
RAX7, 2020-10-20
@Mbreti

N
ninja op op, 2020-10-20
@kur4chyt

compare x and y of square with x and y of wall

V
VforValery, 2020-10-20
@VforValery

Check whether the segment on which the square hit is active (black). If active, then encountered.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question