refactor: move hardcoded positions into config
This commit is contained in:
12
config.yaml
12
config.yaml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user