summary refs log tree commit diff stats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-14 16:13:08 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-14 16:13:08 -0500
commitce0628c5ad96e094db12a67d4e98b445fa873ad3 (patch)
tree94a67903059685969085f7ee5724b9960c74d3f6 /src/main.cpp
parent73c9b0fb4eb35e73d0005f896462e748a207d2b1 (diff)
downloadtanetane-ce0628c5ad96e094db12a67d4e98b445fa873ad3.tar.gz
tanetane-ce0628c5ad96e094db12a67d4e98b445fa873ad3.tar.bz2
tanetane-ce0628c5ad96e094db12a67d4e98b445fa873ad3.zip
Added map fadeouts
Screen fadeouts and map fadeouts are now handled by the effect system.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 592b3be..79fa306 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -11,6 +11,7 @@
11#include "input_system.h" 11#include "input_system.h"
12#include "message_system.h" 12#include "message_system.h"
13#include "script_system.h" 13#include "script_system.h"
14#include "effect_system.h"
14 15
15void loop(Renderer& renderer) { 16void loop(Renderer& renderer) {
16 Game game(renderer); 17 Game game(renderer);
@@ -21,6 +22,7 @@ void loop(Renderer& renderer) {
21 game.emplaceSystem<AnimationSystem>(); 22 game.emplaceSystem<AnimationSystem>();
22 game.emplaceSystem<CameraSystem>(); 23 game.emplaceSystem<CameraSystem>();
23 game.emplaceSystem<MessageSystem>(); 24 game.emplaceSystem<MessageSystem>();
25 game.emplaceSystem<EffectSystem>();
24 26
25 game.loadMap("map2", "debugWarp_mailboxes", Direction::down); 27 game.loadMap("map2", "debugWarp_mailboxes", Direction::down);
26 game.getSprite(game.getSpriteByAlias("lucas")).controllable = true; 28 game.getSprite(game.getSpriteByAlias("lucas")).controllable = true;