Quick clean-up of the render. =)
This commit is contained in:
parent
2009252bb8
commit
47d5a6fb43
12
render.go
12
render.go
@ -6,18 +6,6 @@ import (
|
|||||||
"github.com/gdamore/tcell/v2"
|
"github.com/gdamore/tcell/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// func checkSize(screen tcell.Screen) bool {
|
|
||||||
// var retval bool = true
|
|
||||||
// x, y := screen.Size()
|
|
||||||
// if x < 80 {
|
|
||||||
// retval = false
|
|
||||||
// }
|
|
||||||
// if y < 24 {
|
|
||||||
// retval = false
|
|
||||||
// }
|
|
||||||
// return retval
|
|
||||||
// }
|
|
||||||
|
|
||||||
func drawScore(screen tcell.Screen, style tcell.Style, score int) {
|
func drawScore(screen tcell.Screen, style tcell.Style, score int) {
|
||||||
var x, y int = 5, 24
|
var x, y int = 5, 24
|
||||||
for _, r := range []rune("[ Score: " + strconv.FormatInt(int64(score), 10) + " ]") {
|
for _, r := range []rune("[ Score: " + strconv.FormatInt(int64(score), 10) + " ]") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user