Wednesday, 17 May 2023

LO3: Coding Explanation

Coding Explanation:

 
This code allows the player to respawn when they hit the z kill border in the level. the code allows for the game to check if the player reached the checkpoint and then will respawn them at the right checkpoint depending on how far into the level they reached.

This is the code for the pickup item, the code makes it so when the box collision that is around the object the object will be destroyed giving it the effect of being picked up. The items will then reset when the level is reset by quitting to the menu and restarting the game.

This is the built in code that allows the player to move throughout the level.
                                            it handles left right and back and forward.
This is the code for the jump it checks whether the player can jump by checking if they are on an object (platform) and then lets them jump once.

This is the code that allows the cameras rotation and place to be locked in so that the game is in first person.

This is the built in code that allows the player to crouch by setting the height of the players hitbox to half while crouch is pressed.

This is the code that lets the background music play when the level is started.

This is the code that makes the buttons on the pause menu work.

This is a render of what the pause menu will look like in the final game.

This is the code that spawns the widget that contains the pause menu it first locates the widget after receiving the input it then adds to the players viewport and then when the input is received again the widget disappears.

This is the code that makes the start menu buttons work.

This is the render of what the start menu will look like in game.

This is the code that spawns the widget that contains the start menu it first locates the widget after receiving the input it then adds to the players viewport and then when the input is received again the widget disappears. I have also made the project open on this level at the start by default.

Checkpoint trigger box

Particle system for checkpoint

Pickup Item


No comments:

Post a Comment

LO2: test plan

 Test plan Test 1: make sure that the game can be exported correctly from unreal engine. This will take a lot of time which means that I wil...