this post was submitted on 04 Jun 2024
1009 points (97.5% liked)

Microblog Memes

5778 readers
2235 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Jax@sh.itjust.works 4 points 5 months ago (1 children)

Yes, which is why they used the word in.

[–] bitchkat@lemmy.world 1 points 5 months ago (1 children)

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

[–] Daxtron2@startrek.website 4 points 5 months ago* (last edited 5 months 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
}