From 1b82d6f034934986e02a5b8404b9d066f1aa26c3 Mon Sep 17 00:00:00 2001 From: Matt Soucy Date: Sun, 22 May 2022 21:04:00 -0400 Subject: [PATCH] Add player sheet --- 2022/05-gencant/deck.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/2022/05-gencant/deck.rb b/2022/05-gencant/deck.rb index 2cd200a..14395ef 100644 --- a/2022/05-gencant/deck.rb +++ b/2022/05-gencant/deck.rb @@ -19,7 +19,16 @@ Squib::Deck.new(cards: 18, layout: 'layout.yml', width: '3.5in', height: '2.5in' save_pdf trim: 37.5, file: 'pnp.pdf' end -Squib::Deck.new(cards: 1, width: '3in', height: '4in') do +Squib::Deck.new(cards: 6, width: '3in', height: '4in') do rect + + png x: '0.5in', y: '0.5in', width: '2.0in', height: '2.0in', file: 'images/hexgrid.png' + + text x: '0.5in', y: '2.75in', width: '2in', height: '0.5in', str: 'Scoring', align: :center + (0..6).each do |i| + rect x: inches(0.5) + i * inches(2.0/7.0), y: '3.0in', width: '0.25in', height: '0.25in' + rect x: inches(0.5) + i * inches(2.0/7.0), y: '3.25in', width: '0.25in', height: '0.25in' + end + save_pdf trim: 37.5, file: 'player.pdf' end \ No newline at end of file