CodeBlocks Project Wizard
Learn how to create a new projects with CodeBlocks
Nero Game Project
You can create a new Project using CodeBlocks. When you open CodeBlocks’s New Project window, you have the option Nero Game Project under the category Game Engine. You can create three types of project
- Development Engine
- Render Engine
- Full Project


Development Engine
If you choose Development Engine, CodeBlocks will create a small project demonstrating how to use the nero::DevEngine. The code generated can be seen below :
#include <Nero/engine/DevEngine.h> //Forward declaration class NewScene; int main() { nero_log("hello world"); nero::DevEngine engine(1305); engine.addScene<NewScene>("new scene"); engine.run(); return 0; } //Scene class class NewScene : public nero::Scene { public: NewScene(nero::Scene::Context context): nero::Scene(context) { //Ctr } };
Render Engine
If you choose Render Engine, CodeBlocks will create a small project demonstrating how to use the nero::RenderEngine. The code generated can be seen below :
#include <Nero/engine/RenderEngine.h> //Forward declaration class NewScene; int main() { nero_log("hello world"); nero::RenderEngine engine; engine.setScene<NewScene>("new scene"); engine.run(); return 0; } //Scene class class NewScene : public nero::Scene { public: NewScene(nero::Scene::Context context): nero::Scene(context) { //Ctr } };
Full Project
When you are ready to create a new game, you can use the option Full Project. In this case, CodeBlocks will generate a complete Project with the following files
- Main.cpp with DevEngine and RenderEngine
- Scene Class (header file + source file)
- Player Class (header file + source file)
- Loading Screen Class (header file + source file)
- Constant Pool header file
- Project header file
When you create a Full Project, you have to provide the following parameters
- Namespace : A valid C++ namespace for your project, the default value is ng for nero game
- Startup Screen Class : A valid C++ class name for the Render Engine startup screen, the default value is LoadingScreen
- Player Class : A valid C++ class name for your player, the default value is Player
- Scene Class : A valid C++ class name for your Scene.
- Project Lead : Your name or anything that represent you, this will be used for the Copyrights comment at the top of each file.
