Question: What Game Engine Was Used to Develop "High on Life"?
Answer
"High on Life" was developed using Unreal Engine 4.
Unreal Engine 4 (UE4) is a powerful and widely used game engine developed by Epic Games. It offers a comprehensive suite of creation tools for game development, from 2D mobile games to console blockbusters and VR. For those interested in using UE4 for their projects, here's an example of how you might set up a simple player character blueprint:
// Example Blueprint Code for a Simple Player Character in Unreal Engine 4 void AMyCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) { Super::SetupPlayerInputComponent(PlayerInputComponent); // Bind jump events PlayerInputComponent->BindAction("Jump", IE_Pressed, this, &ACharacter::Jump); PlayerInputComponent->BindAction("Jump", IE_Released, this, &ACharacter::StopJumping); // Bind movement events PlayerInputComponent->BindAxis("MoveForward", this, &AMyCharacter::MoveForward); PlayerInputComponent->BindAxis("MoveRight", this, &AMyCharacter::MoveRight); // Bind camera movement events PlayerInputComponent->BindAxis("Turn", this, &APawn::AddControllerYawInput); PlayerInputComponent->BindAxis("LookUp", this, &APawn::AddControllerPitchInput); } void AMyCharacter::MoveForward(float Value) { if ((Controller != NULL) && (Value != 0.0f)) { // Find out which way is forward FRotator Rotation = Controller->GetControlRotation(); // Limit pitch when walking or falling if (GetCharacterMovement()->IsMovingOnGround() || GetCharacterMovement()->IsFalling()) { Rotation.Pitch = 0.0f; } // add movement in that direction const FVector Direction = FRotationMatrix(Rotation).GetScaledAxis(EAxis::X); AddMovementInput(Direction, Value); } } void AMyCharacter::MoveRight(float Value) { if ( (Controller != NULL) && (Value != 0.0f) ) { // Find out which way is right const FRotator Rotation = Controller->GetControlRotation(); const FVector Direction = FRotationMatrix(Rotation).GetScaledAxis(EAxis::Y); // add movement in that direction AddMovementInput(Direction, Value); } }
This code is a standard setup for a character in UE4, where input bindings are created to handle keyboard or controller inputs, allowing a character to move forward, backward, strafe, jump, and look around.
Was this content helpful?
Other Common Game Dev Questions (and Answers)
- Do Game Engines Cost Money?
- Can I Use an SQL Database for Game Development?
- How are databases used in game development?
- How do you save multiplayer game data, in a database or a file?
- How can you design an efficient database for a game?
- Should I Use Redis or MySQL for Game Development?
- What are the differences between using a database and JSON for games?
- Do Video Games Use Databases?
- Does game development require knowledge of mathematics?
- Should I Use a Game Engine or Not?
- Is a game engine considered a framework?
- Do you need a game engine to make a game?
Free System Design on AWS E-Book
Download this early release of O'Reilly's latest cloud infrastructure e-book: System Design on AWS.
Switch & save up to 80%
Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement. Instantly experience up to a 25X boost in performance and 80% reduction in cost