mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-21 07:49:17 +03:00
Horizontally center the paddle, make it bigger
This commit is contained in:
parent
6bbc0b5edb
commit
5de57ef30a
@ -41,9 +41,9 @@ render = \state ->
|
||||
|
||||
paddle =
|
||||
color = { r: 0.8, g: 0.8, b: 0.8, a: 1.0 }
|
||||
width = state.width * 0.1
|
||||
height = state.height * 0.1
|
||||
left = state.width - (state.width * 0.1)
|
||||
width = state.width * 0.25
|
||||
height = blockHeight
|
||||
left = (state.width * 0.5) - (width * 0.5)
|
||||
top = state.height - (height * 2)
|
||||
|
||||
Rect { left, top, width, height, color }
|
||||
|
Loading…
Reference in New Issue
Block a user