Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ dist/
.DS_Store
.vite/
coverage/

# /brag launch video work files
brag-output*/
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

[![Vídeo de lançamento](assets/launch.jpg)](assets/launch.mp4)

*Vídeo de lançamento (20 s), feito com [/brag](https://github.com/latent-spaces/brag).*
*Vídeo de lançamento (22 s), feito com [/brag](https://github.com/latent-spaces/brag) a partir de jogos reais: telemóvel a 2, tablet a 3 (tabuleiro em triângulo) e a 4.*

Jogo de matemática **para 2 jogadores no mesmo ecrã (até 4 num tablet)** — ideal para passar o tempo enquanto esperam (no restaurante, no consultório, no carro…).

Pousem o telemóvel na mesa entre os dois: cada jogador fica numa ponta, com o seu avatar e a sua cor. Vão aparecendo contas cada vez mais difíceis, com 4 hipóteses de resposta. **Acertar faz a tua cor expandir pelo tabuleiro** (e roubar casas ao adversário!); **errar faz a tua cor encolher** um bocadinho. Ganha quem conquistar o tabuleiro todo — ou quem tiver mais território quando o tempo acabar.
Expand Down
Binary file modified assets/launch.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/launch.mp4
Binary file not shown.
11 changes: 7 additions & 4 deletions src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,10 +541,13 @@ export class BoardView {
const { ctx, cell: s } = this;
const g = Math.max(1.5, s * 0.08);
const rad = s * 0.24;
let l = x + (ext.l ? 0 : g / 2);
let r = x + s - (ext.r ? 0 : g / 2);
let t = y + (ext.t ? 0 : g / 2);
let b = y + s - (ext.b ? 0 : g / 2);
// Joined sides overlap by a hair: on fractional pixel ratios (1.5x tablets) touching
// edges would otherwise show faint antialiasing seams through the blob.
const j = -0.6;
let l = x + (ext.l ? j : g / 2);
let r = x + s - (ext.r ? j : g / 2);
let t = y + (ext.t ? j : g / 2);
let b = y + s - (ext.b ? j : g / 2);
if (scale !== 1) {
const cx = x + s / 2;
const cy = y + s / 2;
Expand Down
Loading