Skip to content

here is how to fix the 2nd car not colliding with us #4

@Charity29614

Description

@Charity29614

int collision() {
if (enemyY[0] + 4 >= 23) {
if (enemyX[0] + 4 - carPos >= 0 && enemyX[0] + 4 - carPos < 9) {
return 1;
}
}
if (enemyY[1] + 4 >= 23) {
if (enemyX[1] + 4 - carPos >= 0 && enemyX[1] + 4 - carPos < 9) {
return 1;
}
}
return 0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions