MistyMuffins

The WPCC Lounge

Recommended Posts

15 minutes ago, CypherHoof said:

Glimmy can ALWAYS boop a Sunny, she is one of the most magically gifted unicorns in Equestria :)

Little moments of silliness puts a smile on my face; perhaps Glimmy is offering some Sunny-coloured balloons over to Sunny.

On the other hand, perhaps it's feasible to port my JS game over to C#, but the ultra-long-term goal is to evolve it beyond its incremental game status.

On the other other hand, I found a really big Minecraft modpack.

Share this post


Link to post
Share on other sites
Badges

2 hours ago, Ganaram Inukshuk said:

Little moments of silliness puts a smile on my face; perhaps Glimmy is offering some Sunny-coloured balloons over to Sunny. 

Now I have this weird scene in my head where Sunset comes to Equestria and both she and Sunburst argue about who gets the nickname "sunny" from GlimGlam....

Share this post


Link to post
Share on other sites
Badges

9 hours ago, CypherHoof said:

Now I have this weird scene in my head where Sunset comes to Equestria and both she and Sunburst argue about who gets the nickname "sunny" from GlimGlam....

Worse: they have to share that nickname with a sun conure also named Sunny.

Share this post


Link to post
Share on other sites
Badges

God-King Xerxes

Share this post


Link to post
Share on other sites

15 minutes ago, Olly said:

God-King Xerxes

I think you said that before.

Also, for no good reason, Princess Applejack.

Also, Pseudo-Princess Gemmy, but she has those red and amber lights that big trucks usually have.

Share this post


Link to post
Share on other sites
Badges

17 hours ago, Ganaram Inukshuk said:

Also, for no good reason, Princess Applejack.

Would she have to share the crown with Big Mac's dream form? :)

Share this post


Link to post
Share on other sites
Badges

On 6/18/2019 at 6:47 AM, CypherHoof said:

Would she have to share the crown with Big Mac's dream form? :)

Well, now I dreamt that all the princesses were kidnapped or something. Now where have I heard that before...?

Share this post


Link to post
Share on other sites
Badges

7 minutes ago, Ganaram Inukshuk said:

Well, now I dreamt that all the princesses were kidnapped or something. Now where have I heard that before...?

Pretty much once per season? I know they gave an excuse for that in S9, but they ARE pretty useless in a fight.

Share this post


Link to post
Share on other sites
Badges

4 minutes ago, CypherHoof said:

Pretty much once per season? I know they gave an excuse for that in S9, but they ARE pretty useless in a fight.

...Zecora was also involved...

Share this post


Link to post
Share on other sites
Badges

18 minutes ago, Ganaram Inukshuk said:

...Zecora was also involved...

Best Zebra. also Only Zebra, so that sorta makes the first one a bit less impressive :D

Share this post


Link to post
Share on other sites
Badges

I really wanna finish the pic where Glimmy hands Sunny a balloon...

Share this post


Link to post
Share on other sites
Badges

6 hours ago, Ganaram Inukshuk said:

I really wanna finish the pic where Glimmy hands Sunny a balloon...

So finish it then? Will never get done if you don't work on it...

Share this post


Link to post
Share on other sites
Badges

40 minutes ago, CypherHoof said:

So finish it then? Will never get done if you don't work on it...

"...Hi, Sunburst."

mlpfim_glimmy_float.thumb.png.1e632ba8b8184bb0b15166baa6dadc62.png

(I was literally one detail from finishing, so I finished it. No background, no problem.)

Share this post


Link to post
Share on other sites
Badges

Hello, God-King Xerxes. 

Share this post


Link to post
Share on other sites

5 minutes ago, Olly said:

Hello, God-King Xerxes. 

last looked out, on the feast of stephen?

Share this post


Link to post
Share on other sites
Badges

Just now, CypherHoof said:

last looked out, on the feast of stephen?

wat

Share this post


Link to post
Share on other sites

Oh my goodness, I can't believe this worked:

// This is a counter whose range is [0, some_arbitrary_max]
// Setting the max really high mimics a range of [0, infinity); this is also the default
// This can be used for all sorts of applications, including a healthbar
public class Counter {

    private int _count;
    private int _max;

    // Constructor with a preset max
    public Counter(int presetMax) {
        Max = presetMax;
        _count = 0;
    }

    // Default constructor
    public Counter() {
        _max = int.MaxValue;
        _count = 0;
    }

    // Increment the count by an arbitrary value; decrement using a negative value
    public void IncrementCount(int amt) {
        int newCount = _count + amt;
        if (newCount < 0) _count = 0;
        else if (newCount > _max) _count = _max;
        else _count = newCount;
    }

    // Additional functions for zeroing or maxing out the counter
    public void ZeroOutCount() { Count = 0;   }
    public void MaxOutCount()  { Count = Max; }

    // Increment the max by an arbitrary value; decrement using a negative value
    // If the max ever becomes less than the count, the count should be reassigned
    // to be the same as the max; this ensures the count stays within [0, max]
    public void IncrementMax(int amt) {
        if (_max + amt < 0) _count = 0;
        else _max += amt;
        if (_max <= _count) _count = _max;
    }

    // Setter-getter for the max; this can also force the count to be any value, but
    // will readjust the count if the max falls below the count to keep the count within
    // the range [0, max]
    public int Max {
        set {
            if (value >= 0) _max = value;
            if (_max < _count) _count = _max;
        }
        get { return _max; }
    }

    // Setter-getter for the count; this can also force the count to be any value
    public int Count {
        set { if (value >= 0) _count = value; }
        get { return _count; }
    }
          
// This is the same as the regular counter but instead of having a count
// within the range [0, max], there are two counts (count1 and count2) such that
// 0 >= count1 >= count2 >= max; since this class encapsulates two instances of
// a counter, any and all calculations are handled by the individual counters
public class Bicounter {

    Counter _ctr2;       // Effective range of [0, max]
    Counter _ctr1;       // Effective range of [0, ctr2.Count]

    public Bicounter(int presetMax) {
        _ctr2 = new Counter(presetMax);
        _ctr1 = new Counter(_ctr2.Count);
    }

    public Bicounter() {
        _ctr2 = new Counter();
        _ctr1 = new Counter(_ctr2.Count);
    }

    public void IncrementCount1(int amt) {
        _ctr1.IncrementCount(amt);
    }

    public void IncrementCount2(int amt) {
        _ctr2.IncrementCount(amt);
        _ctr1.Max = _ctr2.Count;
    }

    public void ZeroOutCount() {
        _ctr2.ZeroOutCount();
        _ctr1.ZeroOutCount();
    }

    public void MaxOutCount() {
        _ctr2.MaxOutCount();
        _ctr1.Max = _ctr2.Max;
        _ctr1.MaxOutCount();
    }

    public int Max {
        set { _ctr2.Max = value; }
        get { return _ctr2.Max; }
    }

    public int Count2 {
        set { _ctr2.Count = value; _ctr1.Max = _ctr2.Count; }
        get { return _ctr2.Count; }
    }

    public int Count1 {
        set { _ctr1.Count = value; }
        get { return _ctr1.Count; }
    }
}

I may need more tests, but this is the healthbar-inside-of-a-healthbar thing I was talking about a few weeks ago such that 0 >= count_1 >= count_2 >= max, and I achieved it by encapsulating two separate counters inside of a bicounter class.

No, I'm not gonna think about making a tricounter or an ncounter; even though the code can be generalised, I don't have a use for anything beyond a bicounter. No, I have no idea how this would be done using ECS since the counter is an overly generalized healthbar. I can't justify using Unity's data oriented tech stack when I have a fairly puny project where everything would be represented by a UI.

If this was a healthbar, then the counter works fine. However, I have a situation where I may need the bicounter instead; EG, instead of distinguishing between occupied buildings and unoccupied buildings, I have to distinguish between unused plots of land, plots of land with an unoccupied building, and plots of land with an occupied building.

Now that I think about it, a bicounter may not be needed if a plot of land can contain more than one building; instead, it'd have to be two separate counters, one for used and unused plots of land, with a means of getting the number of individual buildings, and another for occupied and unoccupied buildings.

Share this post


Link to post
Share on other sites
Badges

herro everynyan

Share this post


Link to post
Share on other sites

1 hour ago, Olly said:

herro everynyan

I just drove 200 miles today.

Now I feel like I wanna sleep for 200 years.

Share this post


Link to post
Share on other sites
Badges

1 hour ago, Ganaram Inukshuk said:

I just drove 200 miles today.

Now I feel like I wanna sleep for 200 years.

So you would drive one hundred miles, and you would drive one hundred more?

Share this post


Link to post
Share on other sites
Badges

24 minutes ago, CypherHoof said:

So you would drive one hundred miles, and you would drive one hundred more?

No joke, but that was going through my head at one point.

Share this post


Link to post
Share on other sites
Badges

On 6/28/2019 at 9:44 AM, Ganaram Inukshuk said:

No joke, but that was going through my head at one point.

Well, that's gotta make the drive more hellish. should have tried singing the smile song instead :)

Share this post


Link to post
Share on other sites
Badges

3 hours ago, CypherHoof said:

Well, that's gotta make the drive more hellish. should have tried singing the smile song instead :)

Driving's already tiresome if I have to drive more than 120 miles in one day.

Share this post


Link to post
Share on other sites
Badges

You'd think I'd be accustomed to having no love life at this point but I still think about it. Hmmm

Share this post


Link to post
Share on other sites

23 minutes ago, Olly said:

You'd think I'd be accustomed to having no love life at this point but I still think about it. Hmmm

You alright...?

Share this post


Link to post
Share on other sites
Badges

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.