Cuberts crusade was my first group project. We made a left-to-right shoot 'em up game with 2 game developers and 3 game artists.
In Cubers Crusade, you play als Cubert in an apocalyptic wasteland, fighting against robot wasps, dragonflies, and bees. You can pick up power-ups and switch weapons to make it easier to get as far as possible.
Weapons
Enemies
Health
Moving background
Background orange smoke effect
All animations
My first challenge was that the first enemy i created, the dragonfly. The problem was that because my code made it so that it followed the player's Y position, multiple dragonflies could end up inside each other. I fixed it by ensuring there is always a small raycast of 2 to 3 units above the dragonfly that checks if another enemy is there. If it detects another enemy the dragonfly stops following the player.
My second challenge was to make the background buildings move in one direction. Due to a mistake, the rotation of the buildings was different between them. Since we didn't have much time left and the artists were busy with other components of the game, I took charge of making the background movement. I used the simplest solution I could think of at the time, which was creating four different ways of moving the buildings. The code looks a bit sloppy, but it works in the end.