Professional Documents
Culture Documents
Digipeons Gam302 GDD
Digipeons Gam302 GDD
Digipeons Gam302 GDD
Mjolnir
6/19/2012
Member Name: Anthony Mark Chong Tze Meng Title: Producer Coding Responsibilities: - Physics - AI Path-finding - AI Behavior - Camera Setup Member Name: Gan Ju-We Title: Game Designer Coding Responsibilities: - Controls / Input - GUI / HUD - Weapon Systems - Level Design Member Name: Lim Yong Sheng Title: Technical Director Coding Responsibilities: - Debugging information - Overlook coding / Optimizing code - Level and Game Object Model - Power ups - Racing Game Logic - Point System
Page 2
Table of Contents
1. Introduction . 4 2. Game Mechanics .... 4 3. Game Flow ........ 5 4. Game Characters . 7 5. Game Resources .. 9 6. Game Environment 11 7. Game Controls .... 14 8. Visual Design ....... 16 9. Audio Design ....... 18 10. Behaviour Design .. 18 11. Physics Design .... 20 12. Multiplayer Design 21 13. References ............ 22
Page 3
Introduction
Game Name: Mjolnir Platform: PC / IOS Genre: Racing Shooting Game Type: Linear Target Demographic: Everyone
High Concept:
Mjolnir is a galactic racing game that involves Futuristic Space Hovercrafts named Asgardian units. The player controls a Hovercraft of his own and will need to manoeuvre it carefully through obstacle courses laid with traps and enemies. The player can choose to be pitted against AI racers, which would make the challenge even harder to complete. The player is able to gain power-ups or ammo, allowing them to shoot at enemy targets. An added feature planned to be released in the future is the use of multiplayer. Multiplayer allows the player to race against other players through the use of a LAN (Local Area Network).
Game Mechanics:
The game is centred around controlling your Hovercraft well enough and to complete the race course while deterring your opponents away by shooting at them. The player starts off with 4 sets of abilities he can perform. These are the 4 default abilities that the player can do during a race: 1) Shoot Plasma Beams [Main Weapon] (Targeted at enemies or opponents) 2) Special Weapon (each Hovercraft has its own special weapon) 3) Levitate (Jump ability) 4) Turbo Booster (Accelerate quickly for 2 seconds) Players will make use of these actions to overcome obstacles or overtake enemy racers. For example, using the levitate ability to jump from one platform to another. Each of these actions take up energy and depletes the players energy bar. The player has a limited capacity of energy which can only be restored through energy cells spawn throughout the race course, so it is important that the player monitors his energy capacity. Apart from the energy bar is the Players health bar. The
Page 4
Game Flow
Mjolnir is designed to be a fast-paced racing game that will set the players adrenaline rushing. When the player clicks the play button, there will be 2 modes available: Solo and LAN. Next, the player can set the number of AI racers to race with. There is only a maximum of 5 racers for a single race. Once the player is ready, he may choose a map to race in and perhaps choose the number of laps to race. A player completes a lap by entering a checkpoint, if he misses a checkpoint he has to go back for it.
After the settings are done, the player will start the race. There may be a brief period of waiting for connections to be established if the player were to choose LAN gameplay. Upon, starting the game, the camera will show a brief view of the race course surroundings before panning to the players All Content 2012, Digipen (Singapore) Corporation, All Rights Reserved. Page 5
Page 6
Game Characters
The player plays a Hovercraft race driver in a distant future. In this future where technology is striving, a popular and fast-paced sport known as Hovercraft Racing is a source of entertainment for people. One thing that entices the people is the many models of Hovercrafts, each with their own talents and specialties, giving the outcome of a race full of uncertainty. As a race driver, the player is able to choose the type of model he wishes to pilot in. However, the player is required to unlock other models besides his by completing levels. The player may then change his Hovercraft from his profile under main menu. Mjolnir [THE HAMMER] Mjolnir is the first Hovercraft that the player will pilot in. The name Mjolnir is taken from Norse Mythology as the magical hammer that Thor wields. Just like its namesake, the Mjolnir Hovercraft is known to be fast on the course and possesses an above average capacity, allowing the player to use his abilities frequently. Mjolnir is the default Hovercraft the player starts in. Health - 9 Energy - 7 Speed 8 Special Weapon: Power Booster [Increases the engine toque to the max (Speed + 2) for 6 sec, reaching the speed of sound] Svalinn [THE SHEILD] Svalinn is a type of Hovercraft that the player will encounter as an enemy during a race course. Svalinn units are known to possess powerful plating that bolsters their defences tremendously. As such, they have the lowest speed but the highest Health among the hovercraft models. The player can play as one after unlocking it. Unlocks automatically after completing level 1 (Sandy Desert). Health - 10 Energy - 7 Speed 7 Special Weapon: EMP pulse [damage 30] Creates a magnetic charge around the ship that damages and slows other hovercrafts within the radius of 5m for 2 sec. Tyrfing [THE SWORD] Tyrfing is a Hovercraft that is an all-rounder in terms of performance. It possesses an above average in its speed, energy capacity and health, making it hard to find weaknesses in. It is an advanced type of enemy racers that the player will encounter in advanced race courses. Unlocks automatically after completing level 2 (Deceit Road).
Page 7
Page 8
Game Resources:
When the player starts off, he would notice a blue bar on his HUD. This blue bar is known as the energy bar that a Asgardian Hovercraft needs in order to perform its abilities. When an ability is used, energy is drained in exchange. The amount of energy drained varies from abilities. However, once energy is drained, it will not be replenished until an energy cell is obtained by the player to replenish its lost energy. Energy capacity ranges differently based on different Hovercrafts. Energy is calculated as a percentage of the Energy stat of the Hovercraft. Example, Mjolnir has 7 in Energy stat, thus it starts with 70 Energy (Multiply by 10).
Asgardian Hovercrafts start off with 4 default abilities loaded in their arsenal: Shoot Plasma Beams This ability is essentially the bread and butter of every Asgardian Hovercraft. 2 plasma cannons are loaded on each side of a unit, allowing the player to fire 2 plasma beams every second at his target by left-clicking on the mouse. The damage done is not lethal but continuous firing will destroy a defenceless hovercraft unit rather quickly. Players can aim and fire by making use of their Hovercrafts aiming scope, represented as a crosshair on screen. Shooting plasma beams cost energy so it may be necessary for the player to determine carefully the right time to shoot. Special Weapon Each ship has its own unique weapon; it can only be activated when the energy bar is full. Levitate (Jump ability) Jumping is another ability that the player can perform to escape from some nasty situations. When the player presses and holds the Spacebar key, his Hovercraft engages its bottom thrusters and fires, allowing the Hovercraft to hover at a height higher than normal. When the player is levitating, he can continue to accelerate, shoot and perform abilities. By jumping, the player can change escape traps or environment hazards. Furthermore, the player can extend his levitation by holding spacebar to reach over areas. Levitating however depletes the players energy source depending on how long the thrusters are engaged.
Page 9
Function Shoot plasma beams Allows player to hover higher than normal Unique power, depends on the hovercraft Accelerates quickly for 2 seconds.
Energy Cost 5 per Shot fired Initial Cost is 10. But increases as user holds button. Requires full energy bar of energy bar
There are also a number of power-ups that the player can obtain as they manoeuvre through a race course. These power-ups enable the player to obtain abilities which they can use to improve their performance in the race. Power-ups will look like floating glowing spheres with an icon and colour to match its power-type. Power-ups will spawn at several locations at different intervals during a race. Some Power-ups include:
Laser Beam (Shoot a beam of light) Fires a light of beam to cut through metal shielding, damaging the core of the ship, Hold right mouse to activate.
Power Booster (Allows player to speed up for a certain duration) A power-up that increases a Hovercrafts speed by 20%. Lasts for 5 seconds and is stackable with the engage turbo booster ability allowing the player to go full throttle. However is hard to control when you reach the speed of sound.
Page 10
Energy Shield (Blue spherical shield that covers the hovercraft from attacks) An obtainable power-up that gives the player a blue spherical shield that will cover the players hovercraft from any type of attacks or damage for 5 seconds. Activates instantly once the player picks up this buff.
Static Mine (A magnetic mine the explode when hovercraft are near it) An obtainable power-up that gives the player an advantage to stop enemies behind him by dropping a Static Mine. Anything that collides with it, will explode with a static charge of a radius, best weapon to obtain when youre ahead in the race.
Game Environment
Terrains in Mjolnir will affect the players speed, performance and control greatly. Going across bumpy terrains will cause the Hovercraft to tilt or experience a sudden decrease in speed. Thus, it is important for the player to observe his surroundings to avoid being slowed down. Additionally, each maps terrain is a mesh collider. This means that players will get damaged if they charge directly against a wall or if keep going through a rocky course. This interactivity will allow players experience realism in the game and provide a challenge. Maps are linear in the game, with routes planned out for the player to see. However, there will be hidden shortcuts to take. These shortcuts may blend in the terrain and it is up for the player to observe his surroundings. Shortcuts in the game can speed up the player's progress, but may also consist of hidden traps or enemies. All Content 2012, Digipen (Singapore) Corporation, All Rights Reserved. Page 11
Sandy Desert A standard beginner map, that consists of small platforms and small hills. The map is less compact and more spacious, giving plenty of room for players to manoeuvre their hovercrafts. Fewer traps will be placed. Players will get a feel of the controls and movement of the Hovercraft before attempting the harder race courses. The terrain is more tamed, with fewer bumps. The number of laps to complete the goal is 3.
Deceit Road Consisting of flat roads, slops and platforms instead of rugged or rocky terrain, this map serves to introduce traps and enemy turrets. The tricky part of this map is controlling the hovercraft swiftly enough to land between platforms while avoiding traps and gaping holes strewn across the map. The number of laps to complete the goal is 4.
Rocky Mountain Rocky Mountain is a combination of Sandy Desert and Deceit Road. The map provides an advance route to navigate through with twist and turns. There may be narrow spaces that requires a bit of manoeuvring and rocky hills that serve to deter the players course. The central theme in this race is to combine numerous environment hazards to test the players skill in controlling his Hovercraft. The number of laps to complete the goal is 2.
Page 12
Page 13
Game Controls
Turning the Ship is determined by the mouse sensitiveness of dragging left and right.
Page 14
Function Accelerate Brake Thrust Left Thrust Right Activate Power Slot 1 Activate Power Slot 2 Activate Power Slot 3 Engage Booster Pause / Access options
Function Fire Plasma Beams Special Weapon Zoom in/ Zoom out
The controls of the game are meant to be easy enough for players to identify with, hence the use of the W, A, S, D keys. To steer the hovercraft, the player will need to move his mouse in the direct he wants to face. Eg, move mouse right to look right. To control the ship properly, the player will need a balance of using the keyboard and mouse together. Attacking is simple enough by limiting the left and right mouse clicks to fire weapons. Additional input keys for gameplay is the T key for dropping turrets and the Tab key to engage Nitro drive. Keys 1 to 3 are used for abilities that the player may obtain during the race. The player will need to select 1 , 2 or 3 to first select their secondary weapon, and once a secondary weapon is selected, the player can simply right-click to fire his secondary weapon. The Escape key allows the player to pause the game and access the option screen.
Page 15
Visual Design
Planed in game GUI
Page 16
Points Indicates the current points earn in that level Health Indicates the current health of the hovercraft Energy Used for firing plasma beams and special weapon usage. Position Current position of player Check Point Displays the current best time when the player reaches the checkpoint Lap time Shows the total time when the player finishes the last lap Message Displays text to player if he/she has killed something or taken a power-up Crosshair Indicates which direction the player is currently moving towards at Power up slot When the player picks up a power up it will be slotted to the first found empty slot. The player can then use them during the race by pressing the 1, 2 or 3 button on the keyboard. Icons will glow to feedback usability. Speed Represented as Kilometres per hour Mini maps Shows the player the direction to go to the next checkpoint Laps Displays the current and laps needed to completed the level Hovercraft thruster Normal Accelerate (Holding the W button) The dust particles that generate from the Hovercraft's thrusters makes the game feel realistic
Hovercraft thruster Turbo Booster (Pressing the Tab button) when the turbo booster is in use, the camera will be shifted backwards, giving the visual effect that the ship has sped up.
Page 17
Behavior Design
The player may choose how many opponents to race with. These enemy racers in the game will be AI-controlled using a path-finding algorithm. Their first objective in a race course is to finish the race, with their secondary objective being to attack nearby targets in front or behind them. Waypoints will be used as a way for enemy racers to finish the race course. Enemy racers will go to each node in a sequence. If the AI were to be pushed out of the course or crash, it will immediately go to the nearest node and start its movement again. Some areas on the map will be tricky, for example, slopes or jumping between platforms. In this case, a behaviour tree design will be made to make the enemy racers react to such a situation.
Their AI-Behaviour actions will be controlled using a behaviour tree pattern. Based on a scenario, enemy racers will react in a way that will suit their objectives. For example, using homing rockets when a target is in front of them. All Content 2012, Digipen (Singapore) Corporation, All Rights Reserved. Page 18
Page 19
Collisions zones are represented by three kinds of meshes, box, sphere and complex meshes. Hovercraft and other mechanical constructs consists of a combination of either box mesh colliders or singular sphere colliders. Due to the complexity of the terrain, the colliders of the terrain will be mesh colliders where each triangular surface formed from 3 vertices are considered collidable.
Maglift Hovering
Maglift hovering for our vehicles are achieved by 5 sphere colliders attached to each ship, these are not rendered and are invisible in game. These spheres consist of 4 edge bumpers and a central hover bumper.
These Bumpers each perform a raycast with a specified length straight down in local space. In the case of the edge bumpers should the raycast return true, the entire ship is rotated around the local x_axis, to prevent the ship from hitting the ground. The hover bumper's function is different in that instead of rotating the ship in any direction, it adds a force in the local y_axis relative to the magnitude of how far into the surface the raycast has gone. This effectively produces lift in the direction of the surfaces's normal.
Page 20
Page 21
Page 22