diff options
-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 |