Package Deal is the name of a PC video game that I created. It was built using Unreal Engine, the world's most open and advanced real-time 3D creation tool for photoreal visuals and immersive experiences.
core GAME DESIGN
The game is simple. The only objective is to survive as long as you can.
Your HUD (Heads Up Display) contains a hunger meter, stamina bar, and flashlight (battery) as your only resources.
In order to survive, you must explore around to find food crates and battery packages for your flashlight.
HUD (Heads Up Display)
The HUD is comprised of your resources on the left (Hunger, Stamina, and Battery). Along with your objective and survival timer on the right side. Your only achievement in this game is to survive for as long as you can and compete with others to see who can do it longer!
How does it work?
The Hunger & Stamina meters are basically two pictures layered on top of each other. The "ProgressBar" function allows for the filled image to slowly deplete from right to left to an empty (faded) bar.
Hunger will deplete over time by itself and Stamina will deplete while running. The regeneration occurs for hunger when the player picks up food crates and stamina regenerates when the player is not running.
Along with coding in C++ or other languages, Unreal Engine allows the use of "Blueprint Visual Scripting", which is what is displayed above. It's a very efficient way to use logic-based functions to create game principles.
The Hunger function asks if the following questions are 'true' or 'false':
Is the player's health greater than one? If this condition is true, then the hunger bar is slowly drained a fixed amount over time.
If the condition is false, this means the player's hunger is below one, meaning the hunger drained to zero and the character has died. The game is paused and the "You Died" screen shows up with the survival timer on the bottom as your achievement.
The Stamina function also runs off a 'true' and 'false' event:
If the 'Shift' key is held, firstly, the game makes sure the player's stamina is greater than zero. If so, the player's movement speed is increased to allow for sprinting.
If the 'Shift' key is released or the player does not have any stamina left, the player's movement is not changed from the default value.
The Flashlight / Battery function simply operates the same way.
If the "F" key is pressed, the game checks to make sure the flashlight has battery. If so, the ambience in front of the character is increased to show a bright light.
If there is no battery, there is no light emitted.
There are a total of three distinct item spawns in the game environment.
Greater Health Crate - (Left Image) This crate gives the player a significant amount of health back, which is much more than the minor health crate, but is more rare and difficult to find on the map.
Minor Health Crate - (Middle Image) This crate gives the player a minor amount of health back. These types of crates are more common than the Greater Health Crate.
Battery Power Crate - (Right Image) This crate replenishes the player's flashlight battery back to full. The flashlight is mostly used to scout for the other crates that are hidden in darker areas on the map.