Monogame: Tom Spilmans beard function is not working

Created on 24 Nov 2017  Â·  6Comments  Â·  Source: MonoGame/MonoGame

public Beard
{
    float timer;
    float beardLength;

    public Beard()
    {
        beardLength = 0;
        timer = 1000f; //ms
    }

    public void SetBeardLength(float value)
    {
        beardLength = value;
    }

    public void Update(GameTime gameTime)
    {
        timer -= (float)gameTime.ElapsedGameTime.MilliSeconds;
        if(timer <= 0)
        {
            beardLength += 0.01f;
            timer = 1000f;
        }

        if(beardLength > 9000)
        {
            beardLength = 0; // NOT WORKING
        }
    }
}

Please shave, makes you look like a 80 year old Kung Fu Master.

Feature Request

Most helpful comment

I'm against this proposition, he looks magnificent.

All 6 comments

I'm against this proposition, he looks magnificent.

@mrhelmut You are not impartial enough :)

@StealthKill That era was the best one ! That's cool to look like a Kung Fu Master ! You cannot imagine all the work needed to achieve this...

you look like a 80 year old Kung Fu Master

That's... a bad thing...? 😄

That's... a bad thing...? 😄

Well, when his beard gets long enough to interfere with his keyboard we could run in to trouble with the random merge and clicking the wrong button :P
Also if it objects to a grand new idea, it could threaten his life and throttle him red dwarf style 😄

I bet his beard is doing all the coding job.

🤣 nice.

On Dec 18, 2017 4:05 PM, "StealthKill" notifications@github.com wrote:

I bet his beard is doing all the coding job.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/MonoGame/MonoGame/issues/6079#issuecomment-352557068,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABbkcYtlHhCRzjbTkN2uQOIiwAbuELnkks5tBtN8gaJpZM4QqMOJ
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Legendree picture Legendree  Â·  3Comments

tomspilman picture tomspilman  Â·  4Comments

Grabiobot picture Grabiobot  Â·  5Comments

MichaelDePiazzi picture MichaelDePiazzi  Â·  4Comments

ryancheung picture ryancheung  Â·  4Comments