• Jax
    link
    fedilink
    English
    arrow-up
    4
    ·
    7 个月前

    Yes, which is why they used the word in.

      • Daxtron2@startrek.website
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        7 个月前
        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
        }