Hi y'all!
I'm currently doing the Ludum Dare, using C++ and SFML (because SFML is just so cool for this stuff), and I realized that SFML did not have an sf::Pig. As my game is about a pig, this made me sad. So I suggest the easter-eggy implementation of an sf::Pig! (Complete with texture and everything)
usage:
sf::Pig Johnny( sf::Pig::Personality::Nice, true); // creates a little piggy with attitude "nice" and active = true.
Johnny.runAround();
Johnny.Oink();
Johnny.Fart(sf::Pig::fartType::loud);
if(Johnny.shootGiantLaserBeamOutOfMouth())
{
Johnny.Slaughter();
}
else
{
Johnny.Explode();
}
I find this a genius idea. Thanks for reading!
(Yes, I AM kidding, although it'd be pretty cool to have an sf::Pig)