Skip to main content

Game Jam #3 - Feathers & Shadows (PART 1) - Entering the third dimension

 


And we're back! New team, new engine, new problems.

Game Jam 3 increased the team size to 6/7 people, made it 4 weeks long instead of 3 and, of course, introduced the new theme: Platformer. This was a lot more generic than the past theme and really opened the door for a lot of different interpretations. My team consisted of the following:

- 2 Programmers (Including me)
- 2 Artists
- 2 Designers

Like last time, my group did not get a producer, and unlike last time, this will prove to be a prevalent issue later down the road. But at the start, it was fine.

On Van Helsing, we played to our strengths; The artist was best at pixel art, and so that was the style we went for; Me & the other Coder came from pythonic backgrounds, so we chose Godot for its similar language. And while that is the best approach to create a good product, it isn't the best for learning. As such, this time round I wanted to challenge myself & the group, so we ran the logic in reverse.

The Artists had not touched 3D modelling prior to this course, and so this game would be in 3D (This is also my first time making a 3D game). I knew traditional OOP languages and had experience with Godot, so would NOT be using them. From the relevant module, I had gained a solid footing by this point with blueprints in Unreal Engine, and so decided to put my skills into practice and use it as the engine for this jam. The other programmer agreed with this.

And so now we have the technical aspect of our game: A 3D Platformer in Unreal Engine. What came next was the theme. As a group, we chose a high-contrast cartoony style (to help the artists) centred around Unicorns in the sky. We opted for a collectathon platformer, which is a subgenre of platformers that has you running around a semi-open stage collecting items in order to progress.

For most of the game's development it was unnamed, simply being referred to as "Unicorn Game", but for the sake of simplicity I will be referring to it as its official name "Feathers & Shadows" throughout these logs.

Into the Unreal

I created the base project for which the two of us programmers would work on. It was very simplistic and just aimed to get the generic platformer functions working (character movement, jump and gravity). To achieve this, I used Unreal's "Character" blueprint class, which is a version of the pawn that has additional pre-built functions for the above mechanics. While seemingly great at first, in hindsight, this was a huge mistake that will result in a rippling effect on the quality of the product, but I will explain that later.

Character movement using the built-in 'add movement input' function

Character jump using the built-in 'Jump' function

I also added a sprint function that increased the player's movement speed by a factor of 1.25x when the shift key is held. It also activates a dust cloud particle effect that I created using the Niagara VFX system introduced in Unreal Engine 5.0. To toggle the effect, I used two boolean control variables known as "is_sprinting" and "is_jumping" that are set to true when the relevant actions are in effect. Each tick, the game checks if "is_sprinting" is true and "is_jumping" is false; If that combined condition is true, the particles are enabled and when it returns to false, they are disabled again.


Sprint action control using the Character's built-in 'Max Walk Speed' variable

Dust cloud particle effect toggle (connected to EventTick)

I also added a controllable camera by connecting a camera component to a spring arm and changing the yaw & pitch (rotational x & y around a fixed point) based on a custom InputAxis from cursor movement. In essence - up, down, left & right from a mouse or trackpad are converted to rotations around a fixed point at a fixed length. The vertical inputs are inverted, as that is the default across the industry.

Camera control using custom InputAxis
 

Finally, I added a small bit of code with the 'BeginPlay' event as an initial setup for the player; declaring its health & default walk speed, disabling the dust cloud and setting the control variable for the invincibility frames (added at a later date).


As this was only the foundation for the project, all the assets were placeholder. I created a simple box blueprint as the floor, and the character itself was a blue cuboid.

With all that in place, this was the result:


And that was version 1 of Feathers & Shadows, internally named "Unicorn Game". With this, I handed it over to the other programmer to add Enemies and a respective simple AI while I dealt with other work for a bit.

That concludes this log. Thank you for reading, and I'll see you in the next one.

- JDM

Comments

Popular posts from this blog

Global Game Jam 2024 - Stand-Up Simulator

From the 22nd - 26th January I took part in the Global Game Jam 2024 with a team of friends. Our university opted to officially host it at one of their buildings and cancelled regular lessons in order to allow us to focus on it. The theme was announced on the 20th and we all watched it live while in a call together. When it was first revealed as "Make Me Laugh", we were all very stunned. Such an abstract theme makes it hard to think of any possible idea to work with, but when we broke it down (and with some prompting from ChatGPT), we eventually came up with the idea of Stand-Up simulator . The premise was simple: You are a stand-up comedian performing at various clubs, you have to select 16 out of the total 64 available jokes to take in with you and perform (but you will only use max 10). Each club has a different audience with different tastes, so you have to gear your set of jokes to fit that. Each joke you tell will be judged by the audience on a scale of Excellent, Good,...

Game Jam #3 - Feathers & Shadows (PART 3) - Refinement

  Logo by Ephraim Mananga Invincibility Frames  A common design choice in games is to subtly give the player an unfair advantage over the enemy. This is because the goal is for the player to succeed, and it's important that a good balance is struck between the challenge of the encounter and the ability to succeed. One common design feature is invincibility frames, wherein the player enters a temporary state after taking damage where they cannot take any more. This gives the player time to react accordingly without losing lots of health. In many platformers, this is represented by the player model flickering, and so that is the approach that I took. Blueprints of the Invincibility Frames When the player takes damage, a boolean called Invincibility is set to true. This triggers the Invincibility Frames Controller which calls the Invincibility Event and sets a Delay. The boolean timer_control is used to stop the code being rerun as it is directly connected to Event Tick and witho...