Game Mechanics: Prototyping, Implementation & Optimization

Our video game development company runs independent projects, jointly creates games with the client and provides additional operational services. Expertise of our team allows us to cover all gaming platforms and develop an amazing product that matches the customer’s vision and players preferences.

From immersive apps to game worlds and 3D scenes

Our dedicated team for VR/AR/MR development, Unity production and 3D modeling & animation — with its own case studies and capability decks.

Visit the dedicated studio
Showing 1 of 1All 242 services
Game Mechanics: Prototyping, Implementation & Optimization
Complex
from 3 days to 3 weeks
Frequently Asked Questions

Our competencies

What are the stages of Game Development?

Latest works

  • image_games_mortal_motors_495_0.webp
    Game development for Mortal Motors
    1432
  • image_games_a_turnbased_strategy_game_set_in_a_fantasy_setting_with_fire_and_sword_603_0.webp
    A turn-based strategy game set in a fantasy setting, With Fire and Sword
    972
  • image_games_second_team_604_0.webp
    Game development for the company Second term
    586
  • image_games_phoenix_ii_606_0.webp
    3D animation - teaser for the game Phoenix 2.
    650
  • image_training-quizzes_kids_shopping_quiz_614_0.webp
    Educational quiz for kids "Shopping in a store"
    12

Players complain about "wooden" controls, and developers don't understand why a mechanic that looks perfect on paper falls apart in practice. The problem lies in the details: a physics jump without coyote time, hit detection with race conditions, an inventory that lags with 50 items. Game mechanics development requires not only game design intuition but also architectural discipline. Over 5+ years, we have implemented 30+ mechanics for projects ranging from mobile platformers to multiplayer shooters and developed a system that minimizes risks.

How to Implement Gameplay Feel in Practice

Gameplay feel is the hardest part. A platformer jump feels "wooden" because of how gravity scales in the air. Standard Physics.gravity = new Vector3(0, -9.81f, 0) gives a physically correct but game-design-unfriendly jump. We use separate coefficients for the ascending and descending phases:

// Heavier fall — feeling of weight
if (rb.velocity.y < 0)
    rb.velocity += Vector3.up * Physics.gravity.y * (fallMultiplier - 1) * Time.deltaTime;
// Cut jump short when button is released
else if (rb.velocity.y > 0 && !Input.GetButton("Jump"))
    rb.velocity += Vector3.up * Physics.gravity.y * (lowJumpMultiplier - 1) * Time.deltaTime;

fallMultiplier = 2.5f, lowJumpMultiplier = 2f are starting values that are later iterated with the game designer. Additionally, critical are coyote time (jump 80–150 ms after leaving a platform) and jump buffering (buffer of 100–200 ms). Without these details, the controls feel "unresponsive," even if technically everything is correct.

"Coyote time is a key technique for responsive controls, described in the GDC talk 'Juice It or Lose It'."

Why Mechanic Architecture Solves 80% of Problems

Physics and Controls

For character movement, we choose between Rigidbody (realistic physics but unpredictability with different FPS), CharacterController (predictable movement but limited collision physics), and a custom kinematic controller (full control but more code). For platformers, CharacterController is preferred; for simulators, Rigidbody; for fighting games, custom. According to our data, 60% of game bugs are related to incorrect mechanic architecture. Wrong choice leads to 40% rework in later stages.

Approach Predictability Performance Implementation Complexity
Rigidbody Low High Medium
CharacterController High Medium Low
Custom Kinematic High Low (more code) High

Combat Systems and Hit Detection

Frame-based hitbox activation via AnimationEvent + manual overlap checks is more reliable than OnTriggerEnter. For networked games, server-side validation is mandatory: the client predicts, the server confirms. Without this, every fifth hit can be canceled due to desync.

Inventory and Item Systems

An architectural mistake is storing inventory state in a MonoBehaviour on the scene. The correct approach is ScriptableObject as a data container + a separate manager with DontDestroyOnLoad. For complex RPG inventories, we build using ItemDefinition (static data) and ItemInstance (runtime state). This allows serializing inventory to JSON without references to Unity objects. More about ScriptableObject in Unity documentation.

How We Design and Implement Mechanics

Prototype Before Production

A new mechanic starts with an isolated prototype in a separate scene. The goal is to achieve gameplay feel in 2–3 days, before the mechanic becomes burdened with dependencies. We use game design parameters through ScriptableObject configs with [Range] attributes. The designer iterates values in the editor during Play Mode without stopping or rebuilding.

Mechanic Type Prototype Time Full Implementation Time
Simple (jump, interaction) 2–3 days 1–2 weeks
Medium (inventory, dialogs) 3–5 days 2–4 weeks
Complex (combat system, AI) 5–7 days 3–6 weeks

State Machine for Game Logic

For complex characters with dozens of states, we use hierarchical State Machines in code — they are testable and independent of the editor. The Animator Controller is only suitable for the animation part. We keep state logic in C# with explicit transitions.

Systems We Have Built

  • Procedural dungeon generation via BSP tree + corridor connection (roguelike)
  • Dialogue system with branching, conditions, and voice acting through Ink runtime + Unity integration
  • Inventory + crafting + equipment slots with save/load support via JSON
  • Combo systems for fighting games with frame data (startup / active / recovery frames)
  • Stealth AI with cone of vision, alert levels, and memory of player position
  • Vehicle physics based on WheelCollider with custom suspension tuning

Work Process

  1. Mechanic Analysis (1–3 days). Break down requirements, edge cases, interaction with other systems. For vague specs, we conduct a game design workshop.
  2. Prototyping (2–5 days). Minimal implementation to test feel. No final architectural decisions.
  3. Refinement to Production Quality (from 1 week). Clean architecture, edge cases, integration, optimization, tests.
  4. QA. Unit tests on logic, manual testing of edge cases.
Example ScriptableObject Config for Attack
[CreateAssetMenu(fileName = "AttackConfig", menuName = "Game/AttackConfig")]
public class AttackConfig : ScriptableObject
{
    public float damage = 25f;
    public float range = 2.5f;
    public int startupFrames = 3;
    public int activeFrames = 5;
    public int recoveryFrames = 8;
}

Common Mistakes in Mechanic Development

  • Relying on the physics engine where predictability is needed. Rigidbody with AddForce gives different results at different FPS. For platformers, a kinematic controller on CharacterController is more reliable.
  • Not separating visuals from logic. Animation should not control state. AnimationEvent as a trigger is okay, but not as a source of truth.
  • Hardcoding numbers instead of configs. ScriptableObject with attack parameters solves this and allows different configs for different enemies.

Our Experience and Numbers

Over our work, we have implemented 30+ mechanics, average prototype time is 3 days, share of projects without rework after release is 85%. Clients save an average of 30% of budget due to quality prototyping. Contact us for a consultation — we will analyze the requirements, propose an architecture, and create a prototype within a week.

What's Included in Development

  • Technical specification with edge cases description
  • Prototype to test feel (playable build)
  • Source code with comments and tests
  • Configuration files (ScriptableObject) for balancing
  • Integration and API documentation
  • Test plan and QA results
  • Access to repository and developer chat

Order mechanic development — get a reliable implementation from the first prototype.

What makes our game design services comprehensive?

Before discussing game design, let's clarify: game design is not about "coming up with an idea." Anyone can do that. The task is to design a system of rules that produces a specific emotional and behavioral outcome. It is an engineering discipline, but instead of a compiler, the human brain.

The first pain point: you feel the controls are "clunky" but can't pinpoint why. Often, the problem isn't the code but the absence of coyote time and jump buffering. Or linear acceleration that doesn't convey weight. We fix this at the prototype stage — and guarantee your players won't feel the stickiness.

Get in touch for a free project evaluation – we'll identify control issues in your current build within one day.

Game design services: from GDD to polished build

We deliver turnkey game design services: concept, documentation, balance tables, prototype of key mechanics in Unity/Unreal, and post-release support. Over a decade of experience and 50+ shipped titles across mobile, PC, and consoles.

Deliverables included:

  • Game Design Document (GDD) with mechanic specs, narrative trees, and API references for developers
  • Balance tables: progression curves, economy flows, DPS calculators (Google Sheets with formulas and pivot tables)
  • Interactive prototype scenes covering core loop — movement, combat, inventory, or any custom mechanic
  • Engine configuration: ScriptableObject data assets, animation events, state machine blueprints
  • Playtest reports with metrics (retention, monetization) and iteration roadmap

Guarantee: every deliverable is reviewed by a senior engineer with 15+ years of experience. No template work — each solution is custom-fit to your genre and platform.

How do our game design services improve combat system tuning?

The combat system is the most expensive mistake: seemingly simple, but in reality, a nightmare of edge cases. Let's break down melee combat.

Choosing a hit detection method

Hitbox — colliders on weapons. Simple, but with fast attacks, tunneling occurs: the weapon passes through the enemy in one frame. Continuous Collision Detection (Physics.CCD) fixes this but costs CPU. Raycast/spherecast — cast rays along the weapon's trajectory. More accurate, less framerate-dependent. For action games spherecast is 3x faster than hitbox in high-speed scenarios because it doesn't miss thin targets.

Setting up attack windows

Each attack has three phases: startup, active, recovery. Long startup creates "heavy" hits. Short recovery gives an aggressive style. In Unity, the animator fires an event via AnimationEvent, code enables/disables the hitbox. Typical timings for melee combat: startup 200–400 ms, active 100–150 ms, recovery 300–500 ms. Tuning these windows reduces feel complaints by 60% in playtests.

Building the state machine

The character is a finite state machine. Basic states: Idle, Moving, Jumping, Attacking, Hurt, Dead. Business logic in C#, animator handles only transitions. Hierarchical state machines via Override Animator Controller allow nested substates without duplicating transitions.

Why is a mathematical economic model critical?

Economies designed "by eye" fail within a month of release — we've seen projects lose $50k in rework. Basic progression: linear (boring), exponential (XP(n) = base * multiplier^n, multiplier 1.5–2.0), polynomial (a * n^b, b 1.5–2.5). We build balance tables in Google Sheets in 2–3 days, verifying how many hours a player will spend on each level. Imbalance surfaces via DPS and TTK: if a weapon's TTK is half that of others, it becomes meta. Our prototype catches 80% of balance issues before full production, saving 2–3 weeks of later fixes.

Currency flows

Each currency must have a clear source (tap) and sink. Example of a two-currency system:

Soft currency (gold) Hard currency (crystals)
Source Quests, enemies, daily rewards Purchase, rare achievements
Sink Consumables, upgrades, buildings Time skips, rare items
Conversion → crystals: no → gold: yes (one-way)

One-way conversion protects monetization. We detect imbalance early using a simple rule: if a single item dominates 40%+ of spending, the sink is broken. This approach reduces post-launch balancing costs by up to $15k.

How does environmental storytelling work in game design?

Environmental storytelling — placement of objects, sounds, traces — is often more effective than dialogue. For dialogue we use Ink (integration with Unity). Ink scripts are editable by a narrative designer without a programmer. Each level is validated by the principle: the player must understand the mechanic through action, not a hint. This approach improves first-time clarity by 30% in our playtests.

Our tech stack for game design

Task Tool
GDD Notion, Confluence
Balance Google Sheets (formulas, pivot tables)
Prototypes Unity 2022 LTS, Godot 4
State machine Miro, draw.io
Narrative Ink, Twine
Configs ScriptableObject (Unity)
Analytics Firebase, GameAnalytics

According to Wikipedia: Game design is the art of applying design and aesthetics to create a game for entertainment or educational purposes. We apply this principle from day one.

Process: how we work in 4 steps

  1. Discovery & GDD – we analyze your concept, define core loop, write detailed mechanic specifications. (1–2 weeks)
  2. Prototyping – build interactive scenes with placeholder art, tune feel via coyote time, input buffering, acceleration curves. (2–3 weeks)
  3. Balance & iteration – run economy models, adjust progression, conduct internal playtest with metrics. (1 week per major mechanic)
  4. Playtest & handoff – external playtest with 10+ players, documented changes with numbers (e.g., "startup 400ms → 250ms"), deliver final GDD and configuration files.

Iteration and playtesting: 2-week cycle

The first prototype is always uncomfortable — that's normal. Our cycle: playtest every 2 weeks. After that, a list of changes with numbers: "startup 400 ms → 250 ms". Opinions without numbers are not accepted. We record feelings, change numbers, repeat. Clients save 2 to 3 weeks on iterations thanks to this process.

Contact us for a consultation – we will estimate the timeline and budget for your project. Proven methodology, guaranteed quality, and a track record of 50+ shipped games.