> For the complete documentation index, see [llms.txt](https://docs.torque3d.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.torque3d.org/getting-started/getting-familiar/your-first-game.md).

# Your First Game

### Introduction <a href="#introduction" id="introduction"></a>

To me there is no better way of learning something than to throw yourself into it and get dirty. So we will start right away with the first project. I will not go in depth with how the editors works in this tutorial but I will link you to places where you can get help to a specific task.&#x20;

The goal of this task is to teach you all of the parts that goes into setting up a really simple gameplay loop. The resulting game will be a very simple multiplayer coin-collecting game where the player who collects the most coins will win:

{% embed url="<https://youtu.be/ZOOSYrxdo0g>" %}
Very simple Coin Game
{% endembed %}

### Prerequisites <a href="#prerequisites" id="prerequisites"></a>

This guide will cover scripting and logic, not the editors and how to work with Torque3D in general. It’s assumed that you:

* Are able to run Torque3D
* Are able to create a new empty level
* Have familiarized yourself with the editors to some degree

Please read [Introduction To The Engine](/getting-started/getting-familiar/your-first-game/introduction-to-the-engine.md) in order to get a quick overview of the engine and getting your development environment setup.

So for a start I will ask you to create an empty project based on the basegame template. If you don’t know how to, take a look at [this guide](/getting-started/getting-familiar/getting-a-copy.md). Now enter the game, press F11 to enter the editor and play around with the terrain editing tools. [Launching the Game](/getting-started/getting-familiar/launching-the-game.md) covers these topics

This guide does not focus on the editors, so if you can’t figure out how to create a terrain, you should seek information somewhere else.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.torque3d.org/getting-started/getting-familiar/your-first-game.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
