-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgameview.py
More file actions
29 lines (23 loc) · 924 Bytes
/
gameview.py
File metadata and controls
29 lines (23 loc) · 924 Bytes
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
from threading import Thread
class GameView(object):
"""A state of the game. The menu can be a gameview, the game itself
is another gameview. The point of this is to keep the resources and
everything that may be necessary all contained.
Gameviews are given a canvas to work off.
The canvas is shared by gameviews, and is used so that the same
window can display different things at different times.
"""
def __init__(self, canvas):
"""Initializes the gameview"""
self.canvas = canvas
def render(self):
"""renders the gameview to the canvas"""
pass
def easing(self, elapsed):
"""eases in the objects to be all juicy and shit"""
pass
def main_loop(self, elapsed):
"""the main loop of this GameView. Iterates the world by the
elapsed number of seconds
"""
pass