Snapple
Memuat...
Mencari...
Tidak Ditemukan
game.hpp
Ke dokumentasi file ini.
1
#include "
../backend/components.hpp
"
2
#include "
../prelude.hpp
"
3
4
#include "
scene_intro.hpp
"
5
#include "
scene_interlude.hpp
"
6
#include "
scene_game.hpp
"
7
8
#define FONT_PATH "assets/delius-font/delius-regular.ttf"
9
10
// Kelas utama untuk game. Menampung scene-scene yang ditampilkan pada game.
11
class
Game
{
12
private
:
13
GameComponents::GameStateManager
game_state_manager;
14
raylib::Font game_font;
15
16
raylib::Window* window;
17
IntroScene
intro_scene;
18
GameScene
game_scene;
19
InterludeScene
interlude_scene;
20
21
const
char
* music_file =
"assets/byte-blast.mp3"
;
22
raylib::Sound background_music;
23
bool
play_bgmusic =
true
;
24
25
public
:
26
Game
();
27
// Update state game.
28
void
update
();
29
// Gambar state game.
30
void
draw
();
31
// Mulai interlude game (di tengah intro dan game).
32
void
start_game_interlude
();
33
// Mulai game.
34
void
start_game
();
35
// Kembali ke main menu game.
36
void
go_back_to_menu
();
37
};
GameComponents::GameStateManager
Definition
components.hpp:146
GameScene
Definition
scene_game.hpp:367
Game::start_game
void start_game()
Definition
game.cpp:22
Game::draw
void draw()
Definition
game.cpp:12
Game::update
void update()
Definition
game.cpp:6
Game::Game
Game()
Definition
game.cpp:35
Game::go_back_to_menu
void go_back_to_menu()
Definition
game.cpp:27
Game::start_game_interlude
void start_game_interlude()
Definition
game.cpp:18
InterludeScene
Definition
scene_interlude.hpp:4
IntroScene
Definition
scene_intro.hpp:42
components.hpp
prelude.hpp
scene_game.hpp
scene_interlude.hpp
scene_intro.hpp
src
game
game.hpp
Dibangkitkan oleh
1.15.0