ClayHanson / BlocklandRebuilt-IssueBoard

Beta testing for Blockland Rebuilt.
6 stars 0 forks source link

Make `GameConnection::setBlackOut()` work for all clients #364

Closed Elletra closed 1 year ago

Elletra commented 1 year ago

Feature Pitch

Right now, GameConnection::setBlackOut() only works on localConnections (i.e. ServerConnection). I think it would be cool to have it usable on servers on all clients.

Elletra commented 1 year ago

Better yet, why not make a GameConnection::fadeScreen(bool fadeIn, int timeMS, ColorI color) that lets us fade to whatever color we want?

Maybe also GameConnection::onFadeOut() and GameConnection::onFadeIn() callbacks?

Trogtor commented 1 year ago

lol i didnt even see this before i made my suggestion

ClayHanson commented 1 year ago

Both GameConnection and ShapeBase can now be flashed with the following function: setScreenFlash(<duration in MS>, <ColorF start color>, <ColorF end color>)