VEHICLE_MID_X = WIDTH * 3 // 8
VEHICLE_MID_Y = HEIGHT * 1 // 2
BUTTON_INSET = (20, 20)
+SERUM_OFFSET = (0, 20)
def inset_button(pos, d):
self._inventory_pos %= len(serums)
serum_actor = self._serums.add(
big_serums.assemble(serums[self._inventory_pos]))
- serum_actor.pos = self._inventory_pad.center
+ inv_pad_centre = self._inventory_pad.center
+ serum_actor.pos = (
+ inv_pad_centre[0] + SERUM_OFFSET[0],
+ inv_pad_centre[1] + SERUM_OFFSET[1])
def _init_pads(self):
self._roach_pad = self._pads.add(