MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / active

Method active

lib/WormPlugin/src/WormPlugin.cpp:88–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void WormPlugin::active(YAGfx& gfx)
89{
90 gfx.fillScreen(ColorDef::BLACK);
91
92 /* Force update */
93 m_timer.start(0U);
94
95 /* If in explosion phase, draw the last worm, meal and explosion state. */
96 if (true == m_isExplosion)
97 {
98 drawAllWorms(gfx);
99 drawMeal(gfx);
100 drawExplosion(gfx);
101 }
102}
103
104void WormPlugin::inactive()
105{

Callers

nothing calls this directly

Calls 2

fillScreenMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected