You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The height can not equal or bigger of the board's height
The width is always equal to a fixed value
Calculation
Left Player Bar Start Position
x = k1
y = (3 * board.height / 6) - (player.width / 2)
Right Player Bar Start Position
x = board.width - k1 - player.width
y = (3 * board.height / 6) - (player.width / 2)
Data Model
classDiagram
%% Class relation
Board <.. Player
Player <.. Power
%% Class details
%% Legend:
%% Public (+)
%% Private (-)
%% Protected (#)
class Player{
Number id
String name
Number posX
Number posY
Number width
Number height
Color color
SetColor()
Move()
}
Loading
Footnotes
k = Variable depending of the width of the board. ↩↩2
The text was updated successfully, but these errors were encountered:
Player Bar
🔝 Parent #28 🔝
General
Calculation
Left Player Bar Start Position
x = k1
y = (3 * board.height / 6) - (player.width / 2)
Right Player Bar Start Position
x = board.width - k1 - player.width
y = (3 * board.height / 6) - (player.width / 2)
Data Model
Footnotes
k = Variable depending of the width of the board. ↩ ↩2
The text was updated successfully, but these errors were encountered: