User Tools

Site Tools


en:guides:beginners:setting_up_a_new_game_project

This is an old revision of the document!


Part 3 - Setting up a new game project

The easiest way to start your own project is to use the tutorials project downloaded in Part 1. We will change this as a basis for our own game.

Open the solution by clicking on the Tutorial.sln file located in the build/windows/vs2015 folder.

Remove all the projects in the Solution Explorer, except for the 01_Object project. We will re-use this one. This will be our single game project.

If want to use c++, rename the source file from 01_Object.c to 01_Object.cpp as c++. This guide will assume you are working in c++.

Remove all the source files from the src/ folder except for our 01_Object.cpp file:

In the same way remove everything in the bin folder except for the 01_Object.ini and the *.dll files. We only need the one ini file for our project.

A post-build step is included in your “Project” project that will copy over a new version of Orx from your local version of Orx every time you build. As we do not have a local version of Orx, and we want to simply keep using the same version of the Orx library that is packaged with the tutorial solution, you can simply stop this step by:

Project (properties) / Build Events / Post-Build Event / Use In Build: No

There is no problem if you do not follow this step, but it will remove an annoying warning every time you compile.

Press F6 to build the project and then run it to check that you receive the following window with an object in the centre:

Excellent. We have a working solution. If you don't like the 01_Object project name, continue here to learn how to rename it. Otherwise feel free to continue on as it is.

You can save the current solution as a template for other projects you might like to work on.

Just to make things easier for you, also consider adding Project.ini as an existing file into your project so you can conveniently make changes throughout this guide.


Next: A tour of an Orx project.

en/guides/beginners/setting_up_a_new_game_project.1494824807.txt.gz · Last modified: 2017/05/30 00:50 (7 years ago) (external edit)