Skip to content

"Insomnia" is an RPG Shooter game. The player takes on the role of the sole survivor of a military base in a desert area that has fallen to the zombie virus. The player has to complete a series of missions to evacuate the base, including exploration missions, transport missions and missions to protect the facility from the progressive waves of a…

License

Notifications You must be signed in to change notification settings

pengyikun/Insomnia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Insomnia

"Insomnia" is an RPG Shooter game. The player takes on the role of the sole survivor of a military base in a desert area that has fallen to the zombie virus. The player has to complete a series of missions to evacuate the base, including exploration missions, transport missions and missions to protect the facility from the progressive waves of attacks. Players will need to keep an eye on their character attributes as well as use the props they receive and analyse the terrain to destroy the massive hordes of zombies surrounding the military base.

This document describes the gameplay, mechanics and provides a walkthrough of the game.

Demo Video

Win and Failure conditions

Win condition: Evacuation of the base by plane (final mission)

Failure condition: Character dies or data transfer machine is destroyed (mission 2)

Key-binds

Function Key
Movement WASD
Fire LMB
Aim RMB
Jump Space
Toggle Inventory and Player Status Panel TAB
Toggle Task(Quest) Panel T
Open Menu ESC
Switch Weapon Mode Q
Force Reload Magazine R
Use Equipped Item G
Quick equip next item in inventory Left Arrow and Right Arrow
Switch camera view distance O

Character attributes system

The player's character attributes have a significant impact on the game experience and influence the player's decisions at all times.

Health

Players will lose varying amounts of Health Point when attacked by zombies and will die when they reach 0. Players can restore their health by using medical supplies.

Stamina

Stamina is constantly consumed when moving and jumping, and can be quickly restored by resting in place. Players will suffer varying degrees of slowdown when Stamina is below 10 and 0. This means that players will need to plan their paths and tactics with a view to whether their current level of maximum stamina can support their actions and tactics. Players can restore their stamina by using medical supplies.

  • 10% Stamina: slight slowdown
  • 2% Stamina and below: severe slowdown

Weight

All items in the game are weighted. When the total weight of the items in the player's backpack exceeds the maximum weight of the player's current level, the player will be slowed down and will use up stamina faster. This means that when you find a new item, you will have to prioritise it based on your current mission requirements, your character's maximum weight and your tactics, and then make an assessment and decision on whether to discard some of the items or whether to overload them

  • 80% weight: slight slowdown
  • 100% weight: moderate slowdown
  • 120% and above: severe slowdown and double stamina drain

Level

Players will receive the following bonuses when they level up:

  • Increased HP Limit
  • Increased weight limit
  • Increased stamina limit
  • Instantly restores a small amount of life and stamina

Some missions in the game require you to carry high weight items (e.g. fuel drums for refuelling planes) or require you to enter high risk areas (airfields with high levels of zombies). Depending on your level and character status, you can choose whether or not you want to clear out the zombie hordes and do simple tasks to collect tactical items to improve your success rate in the final mission before doing these difficult tasks.

Status Effects System

The player's character will receive status effects (buffs/debuffs) as a result of active or passive events during the game, each with a different value and duration. The following is a list of the status effects that exist in the current game version:

Name Trigger conditions Effects Duration
Change Mag Changing magazines -10% speed 2s
Poison Only has a small chance of appearing when attacked by walkers -2 HP(per second) 5s
Heal Consuming small med box +2.5 HP(per second) 2s
Heal (Advanced) Consuming large med box +10 HP(per second) and removes poison effect 5s
Overweight Total weight of items carried is higher than the maximum load value Severe reduction in movement speed and increased stamina consumption Continues to exist until the load falls below the maximum
LowStamina Stamina value below 2% Severe reduction in movement speed Persists until stamina is restored to a critical level (2%)

Sounds

The sounds made by the zombies in the game are 3D stereoscopic, meaning that the player can determine the size, distance and location of the zombies and make tactical changes by the location and density of their footsteps and hissing sounds.

Terrain

There is a wide variety of terrain and advanced movement techniques (such as jumping back and forth between the top floors of two buildings) can be used to reduce the risk of being approached by walkers when surrounded by them. In addition, there are locations that require special terrain and movement techniques to access.

Game Map

map-overview.png

Item

There are several item spawn points in the game, which will continue to generate different types of items at their location at different times. Players need to equip an item first (click on the equip button in the inventory panel or use the left and right arrow keys to quickly equip next available item in bag) before deploy or consume item by using the item (G key).

Name Description Effects Weight
Land Mine The item will detonate and cause ranged damage when touched by any zombies Deals widespread damage 20
Audio Mine The item will actively attract walkers around it to approach and attack, and will trigger an explosion effect upon any attack Attracts zombies within a certain range to approach and deal extensive damage 10
Small Med Minor restore HP Status Effect: Heal 5
Large Med Restores a large amount of HP and removes the effects of poisoning Status Effect: Heal (Advanced) 30
Gas Can A mission prop that can be used to refuel the aircraft Required item for task 150

Item spawn point distribution map

map-item-spawn-location.png

AI

AI Type

There are different types of AI in the game, each with different movement speeds, attack styles and damage values.

Zombie Type Description
Default Zombie Medium movement speed
Low damage value
Low HP
Unable to attack while moving
No footsteps
Army Zombie High movement speed
High damage value
Medium HP
Can attack while moving
Has the sound of footsteps
Biosuit Zombie Low movement speed
Medium damage value
High HP
Unable to attack while moving
Has the sound of footsteps

AI generation and population growth system

There are multiple AI spawn points on the game map, which will continue to spawn AI until a set maximum number is generated. The AI population growth is linear, i.e. the density of zombies is much thinner in the early stages of the game compared to the later stages. Advanced players with some experience in the game can choose to prioritise exploring locations and transport missions in the early stages of the game.

In addition, the action logic of the AI generated at different birth points varies.

Movement Type Description
Stationary Spawned zombies will remain standing in their current position until they spot the player or are attacked by the player
Dynamic Spawned zombies will wander around within a defined area
Waypoint Spawned zombies will patrol a pre-planned path

AI spawn point distribution map

map-ai-spawn-point.png

Weapon

The player can use the heavy machine gun and the grenade launcher by switching weapons (Q button) in the game, with a maximum of 30 rounds per magazine. The magazine can be reloaded by tapping the R button. In addition, the system will automatically reload ammunition when the magazine is empty. It is important to note that if the number of rounds required for the current weapon is greater than the number of rounds left in the player's clip, the player will need to manually reload rounds (R button) to activate the next round

Weapon type Description
Heavy machine gun Single point of damage
Each shot consumes 1 round and deals 20 points of damage.
Grenade launcher AOE damage
Each shot costs 5 rounds. Given the time limit of the demo, the grenades can currently instant kill all AI. i plan to add grenade-only bullets to limit the damage level and rarity of grenades in subsequent development.

Task (Quest)

There are currently 7 quests in the game, which will guide the player throughout the map and determine the ultimate victory conditions. The details for each quests can be viewed in the in-game quest panel (activated by pressing T keyboard)

Task Flow.drawio.png

In the core mission (Task#2), the player has to defend against 4 rounds of attacks ranging from low to high intensity. After successfully defending each round, the player has a free buffer during which they can collect and use different types of tactical items (e.g. mines) to prepare for the next defence.

Quest Location Map

map-quest-location.png

Gameplay walkthrough

Part 1: Main menu

When you open the game, you will first be taken to the Main Menu screen. Players can click on the "Instruction" button to enter the Key-binds introduction page or click on "Start" to start a new game. Player can press ESC to toggle menu once entered the game scene.

Main Menu.png

Instruction.png

Part 2: Overview of UI

The quest page is automatically displayed when you enter the game and you can open or close it by pressing the T key.

First Quest Panel.png

The player can see the character's current HP, stamina, ammunition, weapon mode and equipped items through the UI

UI Intro.png

You can open the inventory panel and the character stats panel by clicking the TAB button. After collecting the items (collision item models), you can see in the item list how many of that type of item you have and how much weight it takes up. At the same time, you can see the upper limits of character’s various attributes in the character stats panel on the right.

If you want to use an item, for example Land Mine, in order to create a sense of realism you need to do the following steps.

  1. Equip the item. You can equip the selected item by clicking on the "Equip" button in the item list or by quickly equipping the next item you have by clicking Left Arrow or Right Arrow button.
  2. After equipping an item, you can see the currently equipped item in the picture slot in the bottom right corner of the screen and you can use it by pressing the G button (e.g. to take a pill or place a mine).

Note: Items that can be collected in the game will have a green glowing effect, while tactical items that have been used or deployed by the player (e.g. mines) will have a red glowing effect.

UI.png

Place mine.png

The message alert screen is located on the right side of the screen and is only displayed when the player receives a new message

Notification.png

The list of status effects is located at the bottom centre of the screen and is only displayed when the player currently has an active Buff or Debuff

Screen Shot 2022-05-04 at 04.32.10.png

The player can aim by pressing the right mouse button, which activates the aiming icon and pulls the lens closer.

Screen Shot 2022-05-04 at 05.03.31.png

Part 3: Task 1 and Task 2

You can find the signal transmitter at the task 1 location marked in the task location distribution map, which is located on the roof of the barracks with the antenna. You will see a yellow glow at the mission site and the 3d text of the mission title.

When entering the interior of the room, the player can switch the camera distance to ensure a clear view (press O).

Switch View.png

Quest Location.png

The core mission of the game, Task2, will be activated automatically after the player completes Task1.

In the core mission (Task#2), the player has to defend against 4 rounds of low to high intensity zombie attacks and keep the signal transmitter from being destroyed (500 HP). The player is given a free buffer after each successful round, during which they can collect and deploy different types of tactical items (such as mines and sound mines) to prepare for the next round.

In defending against a horde of zombies, players can use the surrounding terrain and use advanced movement to reduce the risk of being surrounded by zombies. For example, you can jump and shoot between the roofs of two buildings to disorientate the zombies, or you can stand on a damaged tank and strafe the zombies around you, which will slow down the time it takes for the zombies to get to you.

Given the time constraints of the demo, it is recommended that players switch weapons to the grenade launcher to quickly eliminate the zombie horde.

Note: The grenade launcher will require special bullets to be used in subsequent development of the game, and more weapons will be added in future.

Weapon-mode-2.png

Players will have a number of active missions at this point, but most of these will require players to have a high character attribute value to complete the mission safely, for example

  • The airfield is very densely packed with zombies and players may need to be of a sufficient level (with a high stamina value) to ensure that they do not run out of stamina in the middle of a shot.
  • The oil drum weighs 150kg, so low level player who carry the drum will be unable to run because they are overweight and will be at risk of being surrounded by zombies.

In addition, advanced players can complete the mission ahead of time by using mines wisely, positioning themselves flexibly and shooting zombies at specific locations to level up quickly. This also brings a richer and more flexible gameplay.

Part 4: Completing the game

After completing the core mission, the player can complete the remaining map exploration and cargo delivery missions by following the task location distribution map, AI spawn points distribution map and item spawn points distribution map in this document to assist.

After the player has successfully delivered the oil drums to the plane, the player needs to access the mission site at the head of the plane to evacuate, i.e. the success condition of the game is achieved.

Asset Manifest

Type Name Arthor Link
SFX Gun & Explosion Sounds Cafofo https://assetstore.unity.com/packages/audio/sound-fx/weapons/gun-explosion-sounds-176739#description
SFX Monster Sounds Pack Cafofo https://assetstore.unity.com/packages/audio/sound-fx/creatures/monster-sounds-pack-176744#description
SFX Footstep and Foley Sounds Gamemaster Audio https://assetstore.unity.com/packages/audio/sound-fx/foley/footstep-and-foley-sounds-85360#description
VFX Polygon Arsenal Archanor VFX https://assetstore.unity.com/packages/vfx/particles/polygon-arsenal-109286#description
Models POLYGON Military Synty Studios https://assetstore.unity.com/packages/3d/environments/historic/polygon-military-low-poly-3d-art-by-synty-176304#description
VFX POLYGON Particle FX Synty Studios https://assetstore.unity.com/packages/vfx/particles/polygon-particle-fx-low-poly-3d-art-by-synty-168372#description
Models POLYGON City Zombies Synty Studios https://assetstore.unity.com/packages/3d/characters/humanoids/fantasy/polygon-city-zombies-low-poly-3d-art-by-synty-131930#description
UI Mega Crosshair Pack Red Dot Lab https://assetstore.unity.com/packages/2d/gui/icons/mega-crosshair-pack-56164#description
Animations Standard Assets Unity https://github.com/Unity-Technologies/Standard-Assets-Characters
Models Toony Tiny People Demo Polygon Blacksmith https://assetstore.unity.com/packages/3d/characters/toony-tiny-people-demo-113188#description
VFX Stylized Explosion Package Kyeoms https://assetstore.unity.com/packages/vfx/particles/stylized-explosion-package-190334#description
Animations Zombie Motions Pack 1 POLYGONCRAFT https://assetstore.unity.com/packages/3d/animations/zombie-motions-pack-1-36224#description
AI Creation tool Emerald AI 3.0 Black Horizon Studios https://assetstore.unity.com/packages/tools/ai/emerald-ai-3-0-203904#description
Tools for finding and deleting unused assets Asset Hunter PRO HeurekaGames https://assetstore.unity.com/packages/tools/utilities/asset-hunter-pro-135296#description
Animation&Coding Tutorials for Weapon control and Animation rigging Shooting a weapon using Projectile Raycasts (with effects) TheKiwiCoder https://www.youtube.com/watch?v=onpteKMsE84
Model Land Mine PBR Test Models https://sketchfab.com/3d-models/land-mine-pbr-d7dbff9aae97468fa0804ed6b072ed94
Model Landmine FeelsBadMan https://sketchfab.com/3d-models/landmine-d0d63bfd117c40e4938473caf5333847
Model RF Broadcaster konstantsin https://sketchfab.com/3d-models/rf-broadcaster-cc2f4cccb2214cb384cf99c40fb7666e
Model Gas Can hirairmak https://sketchfab.com/3d-models/gas-can-c2f9e030008a4b41a644bf2ce48c5959
Music Siege Kyle McCuiston https://filmstro.com/music/theme/62821

About

"Insomnia" is an RPG Shooter game. The player takes on the role of the sole survivor of a military base in a desert area that has fallen to the zombie virus. The player has to complete a series of missions to evacuate the base, including exploration missions, transport missions and missions to protect the facility from the progressive waves of a…

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published