Beispiel #1
0
# -*- coding:utf-8 -*-

import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))

import batma


class Game(batma.Scene):
    def initialize(self):
        pass

    def load_content(self):
        pass

    def unload_content(self):
        pass

    def update(self, tick):
        pass

    def draw(self):
        pass


game = Game()
batma.run(game)
Beispiel #2
0
# -*- coding:utf-8 -*-

import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))

import batma

class Game(batma.Scene):
    def initialize(self):
        pass
    
    def load_content(self):
        self.sprite = batma.Sprite('assets/python_logo.png', batma.display.center)

    def unload_content(self):
        pass

    def update(self, tick):
        pass
    
    def draw(self):
        self.sprite.draw()

game = Game()
batma.run(game)
Beispiel #3
0
import batma

class MyGame(batma.Game):
    def initialize(self):
        pass
    
    def load_content(self):
        self.sprite = batma.Sprite('python_logo.png', self.center)

    def update(self, tick):
        pass
    
    def draw(self):
        self.sprite.draw()

game = MyGame()
batma.run()
Beispiel #4
0
import batma


class MyGame(batma.Game):
    def initialize(self):
        pass

    def load_content(self):
        self.sprite = batma.Sprite('python_logo.png', self.center)

    def update(self, tick):
        pass

    def draw(self):
        self.sprite.draw()


game = MyGame()
batma.run()