FPS Maze Game (Introduction to Unreal College Course)

by Anxiaus

Advertisement

For our second project, our assignment was to create a FPS Maze Game. This wasn't just your ordinary maze game though. We were taught how to have our player walk up to a weapon, have text display to press a button to equip it, and once the button is pressed, have the weapon equipped to the player's hand. The weapon is also able to be fired and shoots projectiles with the click of a button. With that logic(displayable text over an object telling the player to interact with it) we were able to create a door lock and key that tells the player to press a button to interact with it. If the player interacts with the lock and they do not have the keycard a message will appear saying that they need to first find the keycard to open it. If that wasn't enough, we also were taught how to have AI's randomly roam our map and have them follow us (couldn't get that part to work but they definitely do wander around aimlessly lol). There was also integration from our last project brought into this one. The player score and lives and visible in the HUD and if the player loses their lives(Touches a pig) or if they win the game(touch the goal) they are directed to the appropriate screen. This project definitely went over a lot of new material but at the same time, the core concepts that were introduced to us in our first project definitely made this project easier to attack head on.

New Material and Topics Discussed: AI, Behavior Trees, Black Boards, Sense Perception, Maps and Arrays, Text Toggling/Interactive Text, Interactive Objects, First Person Camera Perspective/First Person Player Perspective

What was required: AI NPC to follow your character, interactive eqquipable weapon that shoots, a working lock to a door that opens when the player picks up a keycard and instructs player to find keycard if not in their inventory, said key card, said door

My take on it/extra pizzazz I added: The AI NPC was originally the standard mannequin that Unreal provides you with. I decided to change it to a pig instead. I wanted the game to have a medieval feel so I used the stones on the walls to convey that. I wish I could have had the pigs look like diseased/sick pigs instead of friendly farm pigs but I did not possess the skills at the time to do that lol.

Extras: I also learned about z fighting. When creating the maze it became very tidious to have to line each wall up so that they are perfectly aligned with one another. The result of my frustration is shown in the snippet I provided, The walls can definitely be seen bugging out haha. I will take that into consideration for my next project.

Last updated April 15, 2024
Status
Experimental
Platforms
Engine
Unreal
Release Date
April 15, 2024
Advertisement