Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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()
Exemplo n.º 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()