raylibstarter 0.1.0
main.cpp
Go to the documentation of this file.
1// Note: Probably you will never want to make changes directly to this file or
2// in the main function! Add your code to the existing scene files under
3// src/scenes and/or create new scenes.
4// General settings can be made in the config.h.in file.
5
6#include <string>
7
8#include <raylib.h>
9
10#include <game.h>
11#include <scenes.h>
12
13#include "config.h"
14
15using namespace std::string_literals;
16
17int main() {
18 game::core::Game game(game::Config::kStageWidth, game::Config::kStageHeight, game::Config::kFullScreen,
19 game::Config::kTargetFps, game::Config::kWindowFlags, game::Config::kExitKey,
20 game::Config::kUseMouse, game::Config::kAudio, game::Config::kProjectName);
21
22 game.Run("menu"s, std::make_unique<game::scenes::MenuScene>());
23
24 return EXIT_SUCCESS;
25}
The entry point into the game. The constructor is used to specify the basic settings such as the size...
Definition: game.h:15
int main()
Definition: main.cpp:17
Definition: actor.h:5