Hi All
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 *
import sound
import random
import math
A = Action
class MyScene(Scene):
def setup(self):
pass
def did_change_size(self):
pass
def update(self):
pass
def touch_began(self, touch):
pass
def touch_moved(self, touch):
pass
def touch_ended(self, touch):
pass
if __name__ == '__main__':
run(MyScene(), show_fps=False)
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.