Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/game.py
blob: e5961c5740cd52c61fb82509b06a4f372bde9ed4 (plain)
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
#!/usr/bin/env python

import glucosa
import gtk


class Game(glucosa.GameArea):

    def __init__(self):
        glucosa.GameArea.__init__(self)

        head = Head()
        self.add_sprite(head)


class Head(glucosa.Sprite):
    def __init__(self):
        image = glucosa.Image('images/head.png')
        glucosa.Sprite.__init__(self, image, 0, 0)

        pass

if __name__ == '__main__':
    w = gtk.Window()
    w.add(Game())
    w.show_all()
    gtk.main()