Skip to content

Commit 350b517

Browse files
committed
First commit
0 parents  commit 350b517

34 files changed

+3976
-0
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Cards.xlsx
2+
Design.pptx
3+
field.dwg
4+
README.txt
5+
img/cards/*
6+
img/cards2/

ISSUES.txt

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
------------------------------------- ERRORS -------------------------------------
2+
Ownership of the card should be added to the card's object in the game object
3+
Giant Trunade should only shuffle hands to which cards where returned
4+
Rewrite code using synchronous callbacks
5+
[Fixed] Attack position card must be shielded differently from defense position card
6+
[Fixed] Glitch when trying to summon a 1-tribute monster after a 2-tribute monster
7+
[Fixed] Card tooltip does not show when hovering over a card that requires tributes when the monster zone is full
8+
[Fixed] game.afterDamage() must always reset itself
9+
[Fixed] In "Monster Reborn", if monster is already on top, do not bring it to top
10+
[Fixed] Bring card to the top and make it glow in "Sangan" and "Witch of the Black Forest"
11+
[Fixed] Monster special summoned by "Monster Reborn" is not removed from the graveyard
12+
[Fixed] Continue implementation of reopenLastDiag
13+
[Fixed] "Monster Reborn" should allow summoning in face-up defense position.
14+
[Fixed] When damage is zero, game.status does not revert to "idle"
15+
[Fixed] After designating cards for an effect, the status stays at fieldSelect for a while, allowing more than the required number of cards to be selected.
16+
17+
------------------------------------- NOTES --------------------------------------
18+
"Monster Reborn" splices out the first card with the given ID in the graveyard
19+
20+
-------------------------------- CODE REFACTORING --------------------------------
21+
Refactor function bringToTop
22+
Refactor function applpyDamage (first check for position then for damage value)
23+
[Done] Remove function removeArrElement and replace all instances with splice
24+
Replace all loops on nodelists with foreach loops.
25+
[Done] Use Array.prototype.some and Array.prototype.every instead of map and filter in checkActivationConditions
26+
[Done] Use bitwise-anding with 1 for parity check
27+
[Done] Use the spread operator instead of Array.concat()
28+
Replace querySelector() and querySelectorAll() with shorthand functions ($ and $$)
29+
30+
----------------------------------- AESTHETICS -----------------------------------
31+
After activating "Monster Reborn" card should first be brought to the top before position is asked for
32+
Disable arrows/scrollbar in view diag when there are less than 6 cards

css/MaterialIcons.css

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@font-face {
2+
font-family: "Material Icons";
3+
font-style: normal;
4+
font-weight: 400;
5+
src: url("../fonts/MaterialIcons-Regular.ttf");
6+
}
7+
8+
.material-icons {
9+
font-family: "Material Icons";
10+
font-weight: normal;
11+
font-style: normal;
12+
font-size: 1em;
13+
display: inline-block;
14+
line-height: 1;
15+
text-transform: none;
16+
letter-spacing: normal;
17+
word-wrap: normal;
18+
white-space: nowrap;
19+
direction: ltr;
20+
-webkit-font-smoothing: antialiased;
21+
text-rendering: optimizeLegibility;
22+
-moz-osx-font-smoothing: grayscale;
23+
font-feature-settings: 'liga';
24+
}

0 commit comments

Comments
 (0)