Nathan Steel
2e9be63962
Pass server deckBuilt to client before client load
...
The cards/decks built in server now are loaded before the
game client starts setting up the game. Should allow for
using the cards/decks stored in DB in the game instead of file
1 year ago
Nathan Steel
4b0b4495e4
WIP! Attempt to add async wait on board/front-end
...
Want to wait for the cards to be loaded in before the game
loads any graphics, etc. so the new DB deckLists can be used
instead of files
1 year ago
Nathan Steel
6f15287c62
Add HUGE changes for test of backend card gen.
1 year ago
Nathan Steel
3a0dfa82e7
Trialing card build from DB
1 year ago
Nathan Steel
041dba6614
Changes to DB functions + DB export dump
1 year ago
Nathan Steel
c1c67cb4d2
Add basic DB selects
1 year ago
Nathan Steel
469fc8838f
Add (forcefully -f) database.js. Git no pickup
...
Git didn't pickup the database.js file in status/diff/add so it was
missing. Thankfully noticed not long after the commit
1 year ago
Nathan Steel
bf5cfdf16c
Update README
1 year ago
Nathan Steel
c3413e1c2c
Add very basic DB access
...
Currently access DB, and return basic SELECT
Login details will be changed of course...
1 year ago
Nathan Steel
261d737601
Add mysql module
1 year ago
Nathan Steel
2a3250d932
Add cardFace/Sprite + print card front/back images
...
Added ECS elements for cardFace and cardSprite
Added spritesheet print into a clipping mask for cards
Added spritesheet print for cardBacks
Added a 'flip' function
1 year ago
Nathan Steel
0b0ce7ea5c
Merge branch 'feature/dataOriented' into develop
1 year ago
Nathan Steel
8d3f8b99d7
Simplifying code for future me + tidyup/removal P1
1 year ago
Nathan Steel
8296074cb5
Wrap inEvent logic around each eventHandler case
1 year ago
Nathan Steel
0ccb65b1a3
Fix wrong cards added to deck
1 year ago
Nathan Steel
afee6247fc
Add itemdata/cardData filter to frontend debug
1 year ago
Nathan Steel
b86e41c010
Fix error when playing card from hand
...
When opponent has hand in same position.
Added playerId to check
1 year ago
Nathan Steel
64a6a3ca85
Remove redundant ECSLoopTest from frontend
1 year ago
Nathan Steel
36f63ef354
FIX FOR LAST COMMIT
...
Forgot to add the index.html including change, and addition...
1 year ago
Nathan Steel
997ffae3c4
Add frontend console.log tool, renamed ECSLoop
1 year ago
Nathan Steel
515067936e
Prevent multi-mana taps when only one should
1 year ago
Nathan Steel
79bd2da845
Add faux deckDB/array to add cards/decklists
1 year ago
Nathan Steel
b2da688cf8
Add realDeck element and remove clickables
1 year ago
Nathan Steel
9fac1d3dcc
Jimmied in manaCost stuff, but not 100% working
1 year ago
Nathan Steel
70f4a362b1
Add 'Test ECS Loop' to frontend
1 year ago
Nathan Steel
9754497895
Add ECSeyey... shuffleDeck
1 year ago
Nathan Steel
6458e7d85a
Switch loops to normalised loop
1 year ago
Nathan Steel
f209af082b
ECSey LOOP NORMALISATION
1 year ago
Nathan Steel
96d21acc57
Fix deck count
1 year ago
Nathan Steel
73a44512ef
Add shield destroy check logic
1 year ago
Nathan Steel
10c825a7d8
Add status removal when item changes boardElement
1 year ago
Nathan Steel
572fc1b40b
Add untapCard helper
1 year ago
Nathan Steel
3ed1be6bc8
Fix gameWin
1 year ago
Nathan Steel
03e68b9a8c
Cleanup un-used code
...
Kept unused bits that are still to be switched to ECSey
1 year ago
Nathan Steel
9e65811dd3
Make 'untap all' button work ECSey
1 year ago
Nathan Steel
54f136295d
Add grave boardElement, Fix unit/unit makeAttack
1 year ago
Nathan Steel
221e621fa4
Fix multiple makeAttack cases being hit
1 year ago
Nathan Steel
9890f5302b
Redo basics of inspect item
1 year ago
Nathan Steel
6f3ae033ac
Rewrite attack logic to ECS
1 year ago
Nathan Steel
75aea0308b
Draw all existing elements ECS-ey
1 year ago
Nathan Steel
c89640e33a
Play card from hand to board
1 year ago
Nathan Steel
e7ea3b2b88
Remove drawOnBoardOpponent as rewritten
1 year ago
Nathan Steel
10b02f5f38
Fix onclick trigger events per boardElement
1 year ago
Nathan Steel
0c5b52aded
Move drawDecks to one method, Fix deck counter
1 year ago
Nathan Steel
5d059aedeb
Remove old drawHand methods
1 year ago
Nathan Steel
3c1309a63a
Add max hand size check ECS
1 year ago
Nathan Steel
9569dc8320
Add switch boardElement, and draw loop for ECS
1 year ago
Nathan Steel
85b0704a4e
Add item size and position to eventHandler
1 year ago
Nathan Steel
b0b784c619
Add all current drawing into drawECS loop
...
This is working well, drawing everything with only needing to pass the
item key
1 year ago
Nathan Steel
c3da40df0e
Move oppBoard draw into a non-specific loop
...
This should allow to draw all elements from the same loop and avoid
loads of scattered methods for draw. 1 draw method, other methods for
real functionality
1 year ago