Skip to content
Advertisement

Tag: collision

Space Invader project

Hi I have been working on a space invader game in processing, I am relatively new to java/coding. What my problem is that I do not really understand how to make the collision actually work, and also my aliens (which are the space ships), they move left to right but do not move down. These are the 2 major problems

Java Collision detection between different classes

I am making a simple game about shooting enemies and avoiding obstacles, but I have a problem with detecting collisions because I’ve got a lot of classes for every type of game object (player,enemy,obstacle,drop,bullet, etc.). And it won’t work because a doesn’t have ‘pos’, etc, so how can I do it so it works for every class? I’ve read about

Advertisement