Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--canvas.py19
-rw-r--r--window.py0
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