return item in devtools and improve spacing
This commit is contained in:
parent
8cf049ff81
commit
75ddfbf8a3
|
@ -35,10 +35,12 @@ class Screen:
|
|||
|
||||
sideW = 20
|
||||
sideX = width-sideW
|
||||
|
||||
msgH = clamp(height // 5, 3, 5)
|
||||
msgY = height - msgH-1
|
||||
inputH = 1
|
||||
inputY = msgY + msgH
|
||||
|
||||
healthY = 0
|
||||
healthH = self._limitHeight(2, healthY)
|
||||
groundY = healthY + healthH
|
||||
|
@ -54,6 +56,7 @@ class Screen:
|
|||
"field": self.makeWin(0, 0, sideX - 1, msgY),
|
||||
"msg": self.makeWin(0, msgY, sideX - 1, msgH),
|
||||
"textinput": self.makeWin(0, inputY, sideX - 1, inputH),
|
||||
|
||||
"health": self.makeWin(sideX, healthY, sideW, healthH),
|
||||
"ground": self.makeWin(sideX, groundY, sideW, groundH),
|
||||
"inventory": self.makeWin(sideX, invY, sideW, invH),
|
||||
|
|
|
@ -70,6 +70,7 @@ def replaceobject(obj):
|
|||
return "food"
|
||||
if name == "pebble":
|
||||
return "pebble"
|
||||
return obj
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in New Issue