added victory by forfeit

This commit is contained in:
LuckyLaszlo
2022-12-08 04:08:16 +01:00
parent d2cdc564ac
commit b3bd43c423
8 changed files with 69 additions and 16 deletions

View File

@@ -68,6 +68,8 @@ class GameComponentsClient extends GameComponentsExtensionForClient {
scoreLeft: TextNumericValue;
scoreRight: TextNumericValue;
text1: TextElem;
text2: TextElem;
text3: TextElem;
w_grid_mid: RectangleClient;
w_grid_u1: RectangleClient;
@@ -90,6 +92,8 @@ class GameComponentsClient extends GameComponentsExtensionForClient {
// Text
pos.assign(0, c.h_mid);
this.text1 = new TextElem(pos, Math.floor(c.w/8), ctx, "white");
this.text2 = new TextElem(pos, Math.floor(c.w/24), ctx, "white");
this.text3 = new TextElem(pos, Math.floor(c.w/24), ctx, "white");
// Dotted Midline
pos.assign(c.w_mid-c.midLineSize/2, 0+c.wallSize);