Description

SpaceJunk is a 2-4 player local multiplayer game, where you maneuver your ship and bring in floating junk.
You can score multiple pieces at once to gain a combo, which drastically improves your score.
But be aware! There is chaos in space! Avoid collision with asteroids & other players or physics will do its thing and your collected garbage will get launched into space again!

SpaceJunk was made in a short time span of 3 days for the DAE CreaWeek game jam 2022.
And was also published on itch.io.
Our team existed out of 5 programmers, I listed all of us at the bottom of this page.
Because of the fact that we only had programmers, we had to find some models & sounds online, the sources of these files are listed over here.
You can find the code on the Github repository.

Engine: Unity 2021.2.12f1

My Contributions

CameraController

The camera zooms out based on the distance the players travel away from the center. The zooming effect is generated by moving the camera on the Z-axis.
On top of that, the camera also moves along the X-Y plane to the center of all 4 players.
By doing this, the camera makes sure all 4 players are visible on-screen at all times.

Collection Combo’s

Another thing I added is the ability to score more points by delivering multiple items at once. I also added a nice and clean way to visually represent this.

All UI Elements

While this isn’t one of the most interesting aspects of the game, it still had to be done.
I made sure all UI elements worked neatly and felt smooth.
One small extra I did here is to make sure the UI was completely controllable by controllers, rather than using your keyboard & mouse.

Asteroids

The last part I worked on for this project is the asteroids. These had to spawn from all directions, inside an outer radius, but inside an inner radius. They were then assigned a random-ish velocity towards to another side of the circle.
Once a player gets hit by an asteroid, he’s stunned for about a second, before he’s able to move again.

You can see the asteroids in action, at the bottom-left part of the gif.

Disclaimer:
This project was made for a game jam.
Some parts of the code presented below aren’t mine.

Most Interesting CodeSnippets

Team

  • Programmer - Niels Bernaerdt

  • Programmer - Arnaud Vanderveken

  • Programmer - Senne De Vocht

  • Programmer - Niels Delanghe

  • Programmer - Sasha Vigneron

Resources

Previous
Previous

Project Factory

Next
Next

Jak & Daxter