feat: add ability to move piece with arrow keys

This commit is contained in:
Giovani
2021-06-03 15:37:25 -04:00
parent b446a2f682
commit 1ece6dd218
3 changed files with 27 additions and 19 deletions

View File

@@ -3,16 +3,15 @@ window:
height: 600
icon: "img/tetris_icon.png"
title: "Tetris"
bg-color: "#6495ED" # cornflower-blue
engine:
fps: 60
tile-size: 20
# https://coolors.co/6495ed-ee6352-59cd90-fac05e-dfd9e2
# TODO change config color names, should be generic
color:
cornflower-blue: "#6495ED"
fire-opal: "#EE6352"
emerald: "#59CD90"
maximum-yellow-red: "#59CD90"
languid-lavender: "#DFD9E2"
base-1: "#EE6352"
base-2: "#59CD90"
base-3: "#59CD90"
border: "#DFD9E2"