Pokémon SDK Wiki
Credits

Configure your Project

This way of configuring a PSDK project will be replaced by .json files in Data

The Config Script

In the RMXP Script Editor you'll find a script called Config. It contains everything to configure the PSDK project (including some important constant).

Config
The Config Script

Here's the list of constant you can modify and what they should contain :

The viewport configuration

If you remove the Viewport module from the Config script. PSDK will use Data/Viewport.json as source for Viewport configuration.

The file looks like this : { "main": { "x": 0, "y": 0, "width": 320, "height": 240 } }

It's basically a Hash of Hash containing all the viewport configuration. When you write :

  @viewport = Viewport.create(:main, z)

The x, y, width & height parameters are taken from this file. This way if you want some custom viewport for UI that doesn't take the whole screen, you can use this configurations.

Using Viewport.create(type, z) is the only recommanded way to create a viewport. This allow the viewport to be moved when you want to add compatibility to fullscreen with your game thanks to Viewport::GLOBAL_OFFSET_X & Viewport::GLOBAL_OFFSET_Y. Note that the PSDK screen is 4:3 by default and most computer screens are 16:9 or 16:10.