-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp_template.py
35 lines (25 loc) · 1.11 KB
/
app_template.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from wizard_eyes.application import Application
class ExampleApp(Application):
"""Example application class.
Copy and modify this class definition to make a bot or utility."""
def __init__(self, *args, **kwargs):
"""Init function is run once when the application is created. This is
where you should add any extra attributes you might need, or load any
resources that need to be loaded before the setup function."""
super().__init__(*args, **kwargs)
def setup(self):
"""Setup function is run once before the main loop. This is where you
should load any resources you need, and setup any game objects."""
def update(self):
"""Update function is run once per frame. This is where you should
update any game objects."""
def action(self):
"""Action function is run once per frame. This is where you should
perform any actions you want to perform, such as clicking, typing,
etc."""
def main():
app = ExampleApp()
app.setup()
app.run()
if __name__ == '__main__':
main()