17 #ifndef HEADER_SUPERTUX_SUPERTUX_LEVELINTRO_HPP 18 #define HEADER_SUPERTUX_SUPERTUX_LEVELINTRO_HPP 20 #include "sprite/sprite_ptr.hpp" 21 #include "supertux/screen.hpp" 22 #include "supertux/timer.hpp" 23 #include "video/color.hpp" 34 static Color s_header_color;
35 static Color s_author_color;
36 static Color s_stat_hdr_color;
37 static Color s_stat_color;
38 static Color s_stat_perfect_color;
44 virtual void setup()
override;
50 void draw_stats_line(
DrawingContext& context,
int& py,
const std::string& name,
const std::string& stat,
bool isPerfect);
57 std::vector<SpritePtr> m_player_sprite;
58 std::vector<SpritePtr> m_santa_sprite;
59 std::vector<float> m_player_sprite_py;
60 std::vector<float> m_player_sprite_vy;
61 std::vector<std::unique_ptr<Timer>> m_player_sprite_jump_timer;
This class keeps player status between different game sessions (for example when switching maps in th...
Definition: player_status.hpp:39
virtual void setup() override
gets called before this screen gets activated (which is at least once before the first draw or update...
Definition: levelintro.cpp:60
Definition: controller.hpp:57
Screen that welcomes the player to a level.
Definition: levelintro.hpp:31
Abstract base class for code the MainLoop runs exclusively and full-screen.
Definition: screen.hpp:31
This class is a layer between level and worldmap to keep track of stuff like scores, and minor, but funny things, like number of jumps and stuff.
Definition: statistics.hpp:36
virtual IntegrationStatus get_status() const override
Gives details about what the user is doing right now.
Definition: levelintro.cpp:208
Represents a collection of Sectors running in a single GameSession.
Definition: level.hpp:30
Definition: compositor.hpp:29
virtual void draw(Compositor &compositor) override
gets called once per frame.
Definition: levelintro.cpp:120
Definition: integration.hpp:26
virtual void update(float dt_sec, const Controller &controller) override
gets called for once (per logical) frame.
Definition: levelintro.cpp:65
This class provides functions for drawing things on screen.
Definition: drawing_context.hpp:42