MacedWindow@lemmy.world to Microblog Memes@lemmy.worldEnglish · 6 months agoYou know it in your heart to be truelemmy.worldexternal-linkmessage-square84fedilinkarrow-up11.04K
arrow-up11.01Kexternal-linkYou know it in your heart to be truelemmy.worldMacedWindow@lemmy.world to Microblog Memes@lemmy.worldEnglish · 6 months agomessage-square84fedilink
minus-squarebitchkat@lemmy.worldlinkfedilinkEnglisharrow-up2arrow-down1·6 months agoHow do you put something in a 2 dimensional space? A square has no height.
minus-squareDaxtron2@startrek.websitecakelinkfedilinkEnglisharrow-up4·edit-26 months agoif(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 }
How do you put something in a 2 dimensional space? A square has no height.