Creating A New Project - SickheadGames/AdventureKit GitHub Wiki
The best way to make full use of the Adventure Kit is to start a new project based on the demo. This is done by using the AdventureKit
project template. The scripts, art, and levels in this new project can then be modified as much as you like without changing the original kit content.
Open up your TGB executable by either the TGB icon on your desktop or in the Start menu in Windows. When the LevelBuilder is loaded select New Project
from the File
menu. You'll then be presented with the New Project
dialog:
Give your new project a name, select the AdventureKit
template from the drop down list, and click Create
. At this point, LevelBuilder will create the new project folder and show you a new workspace like this one:
You'll see that the Create pane is already filled with the config datablocks, sprites, and particle effects from the kit. Take some time to look thru what is now available to you. To learn more about projects see the Project Template Tutorial.
Before you continue lets talk about your workspace: the camera size and design resolution and how it effects the art in the kit.
Design resolution works in conjunction with your camera size to define the default size for new sprites added to the scene. The dark blue box in the previous workspace image is your camera size. Think of it as the window which you look thru to see your game world. The design resolution defines the size in pixels of that window.
One way you can set the design resolution by selecting Preferences...
in the Edit
menu and selecting the Level Editor
tab.
The default the design resolution is normally 800 x 600. You can read more about setting the camera and design resolution in the Workspace Tutorial.
Now the art in this kit can work in any resolution you like, but because of a bug with the config datablocks the kit is setup to work with a fixed camera size of 100x75 and a design resolution of 1024 x 768. If you prefer a different design resolution it is simple to adjust the size fields in yourProjectName/game/gameScripts/datablock.cs
to match the default sizes for the objects in your new design resolution.
And that's all you need to know about starting a new project. We'll show you another way to change the design resolution and camera size in the next tutorial, Building A Level.
Back to the [Adventure Kit Homepage](Home).