14 lines
335 B
Python
14 lines
335 B
Python
|
from cinput import ControlInput, Button
|
||
|
from graphics import Graphics
|
||
|
from .draw import Draw
|
||
|
from .sunfish import initial
|
||
|
|
||
|
def execute(cinput: ControlInput, graphics: Graphics, _):
|
||
|
draw = Draw(graphics)
|
||
|
draw.draw(initial)
|
||
|
|
||
|
while True:
|
||
|
key = cinput.get_one_shot(5)
|
||
|
if key == Button.BTN_A:
|
||
|
return
|