refactor: move hardcoded positions into config

This commit is contained in:
Giovani
2021-07-08 14:35:17 -04:00
parent 18313b0f7c
commit 1c65709542
2 changed files with 56 additions and 28 deletions

View File

@@ -18,11 +18,23 @@ image:
font: "resource/image/press-start-2p-font.bmp"
position:
# title screen
title-logo: [280, 125]
option-one: [320, 390]
option-two: [320, 440]
cursor-option-one: [300, 399]
cursor-option-two: [300, 449]
# single player game screen
top-label: [80, 120]
top-value: [80, 140]
score-label: [80, 180]
score-value: [80, 200]
lines-label: [300, 40]
next-label: [600, 120]
level-label: [600, 220]
well: [280, 80]
next-piece: [620, 160]
spawn-piece: [-260, -60]
engine:
fps: 60