« first day (2860 days earlier)      last day (2457 days later) » 
00:00 - 21:0021:00 - 22:00

21:01
Most of the time I've thought "it must be a framework bug" it's been a bug in my own code and the framework's been fine :P
Vue's old and widely-used enough chances are it's the same here too; you might have a race condition for example
Tell me about race conditions.
Race conditions come up when you're working with multithreading. You might not be. But basically it's like....
You have thread A wanting to paint the screen red.
you have thread B wanting to paint the screen blue.
You set them both up and say "go". The operating system and/or runtime environment manages these threads to have them perform their instructions in some order, with absolutely no guarantees about which one finishes first.
Thus you have a race condition wherein you don't know which color the screen will wind up painted.
I didn't set one of those up.
However, I'm using ES6
Which may have some of those builtin with classes.
@doppelgreener There.
Darn it...
It works, but too well.
  summon() {
    if (this.summonCost <= this.manaManager.mana && turnManager.turnNumber % 2 === this.decks.indexOf(this.deck)) {
      new Promise((r) =>{
        this.toggleSelected();
        setTimeout(r, 10);
      }).then(() =>{
        if (turnManager.turnNumber % 2 === this.decks.indexOf(this.deck)) {
          if (confirm('Are you sure you want to summon this card?')) {
            this.hand.manaManager.mana -= this.summonCost === 'N/A' ? 0 : this.summonCost;
            delete this.hand.cards[this.id];
What's r here meant to be?
@FreezePhoenix how big is the file size?
21:09
@TheMattbat999 why?
@doppelgreener See MDN documentation for Promises.
Oh, whoops, yes.
It's the "resolve" parameter.
R would just be the object for interacting with the promise.
Yeah.
At least I didn't name it "I"
boy I'm glad it's 2018 and we can use async / await everywhere
21:12
@TheMattbat999 the file is only 9 KB
But it does reference a copy of vue...
@doppelgreener Oh dear... I used a promise somewhere.
@doppelgreener Right there
:| And thats the part where it's messing up
Promises are async, but I'm not sure right now how that one's causing the issue
(but then again it's late and I have a cold)
:| The evidence is overwhelming
yes
XD
it's overwhelming evidence something is messing up there in that part that is async
something confusing me is why you have two then's like that
21:19
why the 10ms delay?
it seems there only to rely on a race condition
@doppelgreener :P that is a bad idea
yeah waiting on specific timing is a good way to mess something up
because whatever happens may take longer or shorter than 10ms
@Jimmy that is so that the card name lights up before the confirm does
:P But know that I think about it, that broke it
you can light up the card name on mousedown and respond on mouseup
and unselect the card after you mouseout or after the mouseup is done
@doppelgreener you mean 'onbeforemousedown'
21:22
I'm not sure that would run before the confirm halts your execution
@Jimmy it did.
Ok, now it works
Crap...
I mixed up Ligher and darker colors
@FreezePhoenix ok
(I was thinking on downloading the game)
and click on random card names until something happens
@Jimmy NONO not random..
read the page.
Infer some things about which side of the screen is which
:P I demand the active cards be highlighted! like in Hearthstone
21:26
@Jimmy they are.
wait
F is darker than D in hexcolor, right?
no
F is maximum brightness
0123456789ABCDEF
@FreezePhoenix Some feedback:
- The turn order should be stated in white text; black-on-dark-grey isn't great
- I'm not sure what the numbers beneath the cards represent. (I think the left is a mana cost and the right is how much mana it adds back each turn?)
- I'm not sure what I do after summoning cards. I imagine that's not implemented yet?
@doppelgreener after you summon, you can click a card name on the current team side, and then click a card name on the other team side, and it attacks.
aha, and red is the attack power
Yep.
I should make a tutorial, but that's in 3rd on priority
21:31
yeah by active card I meant, it took me a while to realize you attack by click your card then click the target
because it didn't look like the card was being selected
why can the demons not summon a ravine on turn 0?
00:00 - 21:0021:00 - 22:00

« first day (2860 days earlier)      last day (2457 days later) »