So I am trying to draw a simple line in Pythonista. I have selected a new game type template and the documentation states;
scene_drawing — Drawing Functions for the scene module
The functions in this module can be used within the scene.Scene.draw() method when using the classic render loop mode of the scene module.
The default game/animation template is thus;
from scene import *
A = Action
def touch_began(self, touch):
def touch_moved(self, touch):
def touch_ended(self, touch):
if __name__ == '__main__':
From the documentation I think I need to set up a def draw(self): function, but I am not sure what the documentation means when it refers to the scene.Scene.draw() method when using the classic render loop mode of the scene module.
Could someone help explain the syntax of what I need to include where please. Many thanks.