Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool teste_colisao_nave(float enemies_x, float enemies_y, float player_x, float player_y, int PLAYER_SIZE){
- if(enemies_y > (player_y - PLAYER_SIZE) && enemies_y < (player_y + enemies_y + PLAYER_SIZE) && enemies_x > (player_x - PLAYER_SIZE) && enemies_x < (player_x + enemies_x + PLAYER_SIZE)){
- return true;
- }
- else{
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement