diff options
author | Cristhofer Travieso <cristhofert97@gmail.com> | 2013-11-28 23:43:33 (GMT) |
---|---|---|
committer | Cristhofer Travieso <cristhofert97@gmail.com> | 2013-11-28 23:43:33 (GMT) |
commit | 2f4ba4f1a7c8bb312d38694d0407275f4a47dcd5 (patch) | |
tree | 51d583774d857048ab82f432805185edbec034c6 | |
parent | 4ae2b8be7a071a159858acc52ac07f625dac495a (diff) |
Signed-off-by: Cristhofer Travieso <cristhofert97@gmail.com>
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | canvas.py | 19 | ||||
-rw-r--r-- | window.py | 0 |
3 files changed, 22 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..737cf64 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.pyc +*~ +*.pyo diff --git a/canvas.py b/canvas.py new file mode 100644 index 0000000..b66eafd --- /dev/null +++ b/canvas.py @@ -0,0 +1,19 @@ +# + +import glucosa +from gi.repository import Gtk + + +class Canvas(glucosa.GameArea): + def __init__(self): + glucosa.GameArea(self) + + jumper = Jumper() + self.spritess.append(jumper) + + +class Jumper(glucosa.Sprite): + def __init__(self): + glucosa.Sprite(self) + + self.image = glucosa.image('images/jumper.svg') diff --git a/window.py b/window.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/window.py |