originalutkin / board_game Goto Github PK
View Code? Open in Web Editor NEWSome testing board game project on unity
Some testing board game project on unity
My suggestion is to use https://wiki.js.org/ . It can be run with docker-compose and it can be configured to use local repository as a storage
Depends on number of cards change player hand position. Now it's possible that cards won't be visible because of offset
Chosen card cannot attack attack other cards on the same part of the battlefield (e.g. allies cards couldn't be attacked)
Cards in the hand should be moved after card is drown from the pile.
Original idea was to separate game logic code from Unity-specific code. However at this point it brings more difficulties rather than benefits.
In #51 cards could be moved on scene using the cursor. However there is no logic that is responsible for accept card by game board and holding it. Now we need to adjust this logic and make cards playable: once card is dropped on table, we need to recognise how to
Make card as playable object: card could attack the other card. Once card attacked the other one, health attribute of cards should be recalculated
Each player could do just a one action: put card on the table, beat the other card or just end current turn
get the idea of:
Each player can put their cards just to specific part of the battlefield (just half part of the whole battlefield belongs to the each player)
For now, card's behavior is the same either on battlefield or hand: it could be moved wherever it is possible. In #57 states were implemented for cards however Received state contains only logs for now. This behaviour should be adjusted and implementation is needed there.
Criteria: All method from IState pattern are implemented (or at least defined how it should be implemented) and card isn't movable once it is placed on table.
Draw player hand on game with card placeholders
After we have agreed upon on new project architecture in #51 and #52 and implemented it, scene is responsible for game preparation was broken by those kind of changes.
Since Mouse events could (or even should) be different in those scenes, we need to introduce new card script in game preparation in order to decouple it from card that is used in game itself. The code in those classes could repeat for now.
Make game preparation scene usable again
make https://github.com/dotnet/format tool work in pre-commit
Define basic card class that will be used in the game
Highlight the position where card could be put on the battlefield
specs:
cardA - attack: 1 health: 5
cardB - attack: 2 health: 4
cardC - attack: 3 health: 3
cardD - attack: 4 health: 2
choose different picture for card face
use the same picture on card back
In case card is hidden by other card in hand, change hidden card position in way to make it visible
In case player has finished his turn cards (on table and in hand) shouldn't react on click (or at least there is no possibility to play/move it during other player's turn )
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.