1009
you are viewing a single comment's thread
view the rest of the comments
[-] Jax@sh.itjust.works 4 points 2 years ago

Yes, which is why they used the word in.

[-] bitchkat@lemmy.world 1 points 2 years ago

How do you put something in a 2 dimensional space? A square has no height.

[-] Daxtron2@startrek.website 4 points 2 years ago* (last edited 2 years ago)
if(player1.x < player2.x + player2.width &&
    player1.x + player1.width > player2.x &&
    player1.y < player2.y + player2.height &&
    player1.y + player1.height > player2.y)
{
    //collision
}
this post was submitted on 04 Jun 2024
1009 points (97.5% liked)

Microblog Memes

9979 readers
532 users here now

A place to share screenshots of Microblog posts, whether from Mastodon, tumblr, ~~Twitter~~ X, KBin, Threads or elsewhere.

Created as an evolution of White People Twitter and other tweet-capture subreddits.

Rules:

  1. Please put at least one word relevant to the post in the post title.
  2. Be nice.
  3. No advertising, brand promotion or guerilla marketing.
  4. Posters are encouraged to link to the toot or tweet etc in the description of posts.

Related communities:

founded 2 years ago
MODERATORS