Welcome

Welcome
You have stumbled across the Black Bean development and testing blog.

Here you will find beta builds and concepts of Black Bean.

Thursday, July 7, 2011

K.I.S.S.

I went to bed already having a nightmare last-night.
Just when I thought everything was coming together I hit a snag.

The snag:
When "A" (card) was dragged into "B" (cup) I made "A" invisible deliberately, so "A" would be removed from the table.
But. . .
just because "A" is invisible to the end user (player) doesn't mean it doesn't exist in the program.
When Program "A" was run and finished we would loop back to the table with "A" invisible :)
The user would select "C" (a new card) drag it to "B" again and it would bug out because "A" was still there!
Solution:
table.removeChild(table.ACcard);

As simple as that. . .

Lesson - Don't code when your already fucked.

Here's a nice pick

No comments:

Post a Comment