Skip to content

Creating a new project

dgough edited this page Feb 7, 2013 · 10 revisions

To create a new cross-platform game project, run the script gameplay-newproject:

The following is an example of running the gameplay-newproject.bat script:

1. Enter a name for the new project.
 
   This name will be given to the project
   executable and a folder with this name
   will be created to store all project files.
 
Project name: test
 
 
2. Enter a game title.
 
   On some platforms, this title is used to
   identify the game during installation and
   on shortcuts/icons.
 
Title: Test
 
 
3. Enter a short game description.
 
Description: Test Game
 
 
4. Enter a unique identifier for your project.
 
   This should be a human readable package name,
   containing at least two words separated by a
   period (eg. com.surname.gamename).
 
Unique ID: org.gameplay3d.test
 
 
5. Enter author name.
 
   On BlackBerry targets, this is used for
   signing and must match the developer name
   of your development certificate.
 
Author: My Company
 
 
6. Enter your game's main class name.
 
   Your initial game header and source file
   will be given this name and a class with
   this name will be created in these files.
 
Class name: TestGame
 
 
7. Enter the project path.
 
   This can be a relative path, absolute path,
   or empty for the current folder. Note that
   a project folder named test will also
   be created inside this folder.
 
Path: gameplay-samples
 
    1 file copied.
    ...

Windows (Visual Studio)

The simplest way to run the project on Windows is to add the Visual Studio project to the existing gameplay.sln solution, set the "gameplay" project as a dependency (right-click on the new project, click "Project Dependencies…", and select the "gameplay" project), and then build and run.

BlackBerry (Momentics)

Similarly, the easiest way to run the project on BlackBerry is import the new project into a QNX Momentics IDE workspace that already contains the gameplay project, set the "gameplay" project as a dependency (right-click the new project, click "Properties", go to "Project References", and select the "gameplay" project), and then build and run. (Note: make sure that both projects are set to the same Build Configuration.)

Mac (Xcode)

To run the project on Mac, simply open the Xcode project and build and run.

Android

To run the project on Android from Windows, use the steps described above for running the samples.

Clone this wiki locally