-
Notifications
You must be signed in to change notification settings - Fork 51
Creating a New Project
Zalo edited this page Jul 12, 2017
·
3 revisions
Download this template.
Try to build it by launching build.bat or loading the project into Visual Studio. If you have problems compiling check the installation list again.
If everything goes ok BGB will be automatically launched after the build and you should see something like this
The template contains the minimum files required for making a build:
- ZGBMain_Init: The Main file for your project, all states an sprites declarations must be done in this file
- ZGBMain: This containts the default method for replacing tiles when adding them to the map
- SpritePlayer: this is the code of the Game Boy Sprite that you see on the screen. It does nothing, but has all the required methods
-
StateGame: the current State that makes a basic initialization:
- Loads all sprites graphics into memory
- Creates an sprite of type SPRITE_PLAYER and sets it as the scroll camera
- Loads all tile graphics into memory
- Initializes the scroll (this will center the camera on the sprite set as camera and fill the background)