Search found 11 matches

by HumanBot
13 January 2021, 23:22
Forum: Developers
Topic: Where to slide to destroy something
Replies: 3
Views: 817

Re: Where to slide to destroy something

Ah okay thanks. That's good to know
by HumanBot
10 January 2021, 21:56
Forum: Developers
Topic: Where to slide to destroy something
Replies: 3
Views: 817

Re: Where to slide to destroy something

Actually I just came up with a cool idea that solves this. I do "removeFromZone" on the card with the destination set to its own zone. Then I do a fadeOutAndDestroy on that object. The result is the item slides up slightly as it fades away. Pretty cool.
by HumanBot
10 January 2021, 21:46
Forum: Developers
Topic: Where to slide to destroy something
Replies: 3
Views: 817

Where to slide to destroy something

So I ended up using the Zone class to build out each player's public hand. Not sure if that was the intended use of zone as I'm using a zone for each card type, but I decided to use it for now since each card type were a different size, had varying number of cards, and I needed a different way to or...
by HumanBot
25 December 2020, 00:26
Forum: Developers
Topic: Handling Frontend Robustness
Replies: 3
Views: 644

Re: Handling Frontend Robustness

Okay thanks. What you guys said makes a lot of sense
by HumanBot
24 December 2020, 08:46
Forum: Developers
Topic: Handling Frontend Robustness
Replies: 3
Views: 644

Handling Frontend Robustness

How do people deal with DOM modifications? I feel like its really easy for people to change an element's id or class and it could potentially break the code. I'm curious how other developers handle this issue generally. Do you guys just use a bunch of checks for each clickable feature or is there a ...
by HumanBot
17 August 2020, 08:38
Forum: Developers
Topic: onEnteringState() vs setAllPlayersMultiactive() in action
Replies: 4
Views: 1918

onEnteringState() vs setAllPlayersMultiactive() in action

So I called setAllPlayersMultiactive() in the action function of a multipleactiveplayer state and I noticed that at the very beginning of onEnteringState, if I called isCurrentPlayerActive(), it would return false. This leads me to believe that onEnteringState() and the action function for the state...
by HumanBot
08 August 2020, 00:36
Forum: Developers
Topic: How are people handling card metadata in a deck?
Replies: 2
Views: 1158

Re: How are people handling card metadata in a deck?

Oh oops, I must have missed that. Thanks for pointing that out.
by HumanBot
08 August 2020, 00:21
Forum: Developers
Topic: How are people handling card metadata in a deck?
Replies: 2
Views: 1158

How are people handling card metadata in a deck?

So i was reading the docs for the deck class and was wondering about how developers are handling metadata for each card. Hearts is a pretty easy example because its a single deck and the value of the cards explain themselves (numbers and suites). With multiple types of decks with cards that have abi...
by HumanBot
04 August 2020, 20:53
Forum: Developers
Topic: Total noob problem: reversi tutorial, can't display board
Replies: 6
Views: 2216

Re: Total noob problem: reversi tutorial, can't display board

In case you didn't know, you could do ctrl-f5 to refresh the page and reload the css assets. Makes the testing process a little quicker.
by HumanBot
03 August 2020, 20:34
Forum: Developers
Topic: Question about tutorial animation
Replies: 4
Views: 1706

Re: Question about tutorial animation

Oh yeah I realize it happened because I was accessing an empty element with the fadein/fadeout call. Not sure why that causes the problem, but I fixed that and the error doesnt show up anymore. Thanks for the replies.

Go to advanced search