Nathan Steel
1f3758faed
Changes to cardSize
2 years ago
Nathan Steel
fc2784fec8
Add shuffle to server + button to frontend
2 years ago
Nathan Steel
2041108973
Draw basic cardData to cards in player hand
2 years ago
Nathan Steel
be96e46166
Changes to 'drawACard', serverdata, and UI changes
...
Return data from server for each client (cardCounts)
Return data for client that drew (cardData, listPos. etc.)
UI changes on client to display the temporary 'cards'
2 years ago
Nathan Steel
f69d5a8907
Start of 'drawACard' on server side
...
Hand/Deck count changes
Currently not actually drawing/moving cards from deck to hand
2 years ago
Nathan Steel
657fab5914
Add deck entities and draw deck with deckCount
2 years ago
Nathan Steel
aaf687acb8
Add pass turn and turn identifier
...
Pass turn via server
Identify whose turn by making their name bold
2 years ago
Nathan Steel
993f68636b
Add player/opponent Id to data and client UI
2 years ago
Nathan Steel
08df4d4552
Move js files and start split/board redo
2 years ago
Nathan Steel
579848c84c
Merge branch 'feature/serverSide' into develop
2 years ago
Nathan Steel
35330e7850
Add playerId/Order in a jamjarred kinda way
2 years ago
Nathan Steel
ea7c9b8596
Add 'pass', make roomData global+add item/player
...
Add a start of 'pass' mechanic (does nothing yet, just emits)
Make roomData global
Add itemData and playerData to roomData so it's all easy to access
2 years ago
Nathan Steel
16e307c32c
Add 'playerData' with socketId to roomMod
2 years ago
Nathan Steel
525e55a092
Change io to global
2 years ago
Nathan Steel
8df0969836
Add DB clauses to return requested cards only
2 years ago
Nathan Steel
8666ea05f4
Change players[] to contain player/deck Ids
2 years ago
Nathan Steel
06b3fe6da0
Add 'components' mod + add empty comps. to roomGen
...
Create a components module to be used as the overseeing list/build
of components to be used through-out the code-base.
Added the components in said module to roomGeneration, but they
are not used at current
2 years ago
Nathan Steel
c04b7f0b6c
Move all non-socket requests from server.js
2 years ago
Nathan Steel
840d263eb4
Add joinRoom functionality
...
Players can join room with independant sockets
When a room is 'filled' the game will start
2 years ago
Nathan Steel
71b3451bf7
Merge branch 'feature/basicEffects' into develop
2 years ago
Nathan Steel
1e82ae04b9
Add combat logic for taunt/flight/reach passives
2 years ago
Nathan Steel
a70f052780
Add taunt passive
2 years ago
Nathan Steel
3e512459cf
Add passives to cards via DB
2 years ago
Nathan Steel
5f89925a92
Effect changes
2 years ago
Nathan Steel
6a6c9ffb83
WIP: Actual effect check/doing
...
Needs lots of work, perhaps splitting into a function per step to
prevent loops, etc in case of chains, and counterspells, etc.
2 years ago
Nathan Steel
4fb1a2694d
Add functionality to trigger effect(s)
...
Currently takes the trigger conditions, but doesn't start the
effects
2 years ago
Nathan Steel
f9919bde0e
Add console debug for cardEffect
2 years ago
Nathan Steel
876b705407
Start 'pay' trigger + amend tapManaRequired
2 years ago
Nathan Steel
3fce4c0281
Add start of effectTrigger + debugging
2 years ago
Nathan Steel
f83f003a92
Add cardEffect component data
2 years ago
Nathan Steel
116f7af480
Add build cardEffect object from DB elements
2 years ago
Nathan Steel
e796bed764
Add SQL to return effects from DB
2 years ago
Nathan Steel
57e3095a09
DB changes for effects
2 years ago
Nathan Steel
aee875f4b4
Add itemId to debug tool on rightclick
...
Just makes it easier, don't need to inspect element then enter
the id anymore
2 years ago
Nathan Steel
c4d2989640
Add visual queues for passive effects
2 years ago
Nathan Steel
87e91d4a6d
Add draw/reach to effect/debug
2 years ago
Nathan Steel
916c0f2dcb
Add debug tool for effects
2 years ago
Nathan Steel
ccb86df970
Start of basic effect functionality
2 years ago
Nathan Steel
96b45239ab
Fix tap unit if destroyShield returns false
2 years ago
Nathan Steel
526569cbf5
Add flip card when shieldDestroyed/add to hand
2 years ago
Nathan Steel
13712689c1
Add more details to client debug
2 years ago
Nathan Steel
34ffc136c9
Merge branch 'feature/colourRequirements' into develop
2 years ago
Nathan Steel
5691411697
Fix card not playing with mana cost reached
2 years ago
Nathan Steel
8ebabeaa9c
Alter mana tap allow 2+cost with only 1 manareq
2 years ago
Nathan Steel
bd465c5baa
Add gradient fill to multi-mana cards
2 years ago
Nathan Steel
fe41db49e5
Add 'manaColour' attribute/DB element
...
Currently cards will only have one mana colour, in future
need to extend the (in code) functionality to multiple, as DB
is already set to allow multiple.
2 years ago
Nathan Steel
019e457808
Set COLOUR enum to contain more colour details
2 years ago
Nathan Steel
5e819bfefe
Contrast the text colour for colourCosts icons
2 years ago
Nathan Steel
7bd0840d75
Add colourReq to card UI
2 years ago
Nathan Steel
40e85730ba
Add the mana colour onto mana cards
2 years ago