#!/usr/bin/env python

import sys
from framework.application import Application

if __name__ == '__main__':
    app = Application(sys.argv)
    sys.exit(app.run())
Exemple #2
0
def main():
    framework_root = os.path.dirname(os.path.realpath(__file__))
    app = Application(framework_root)
    app.run()
Exemple #3
0
            self.npc_icon.image = Loader.get_image(
                "data/DialogWindow/woodcutter_icon.png")
            Renderer.submit(self.dialog, False)
            Renderer.submit(self.npc_icon, False)
            Renderer.submit(self.cancel_btn, False)
            if self.quest not in [2, 4]:
                Renderer.submit(self.accept_btn, False)
            for i in self.plot["woodcutter"][str(self.quest)]:
                plot = [
                    self.plot["woodcutter"][i]
                    for i in [j for j in list(self.plot["woodcutter"])]
                ][self.quest - 1]
                text = f.render(i, 1, (160, 135, 132))
                Renderer.submit((text, [320, 480 + (plot.index(i) * 40)] -
                                 Renderer.cameraTranslation))
        if self.quest == 2:
            text = f.render("Wood: " + str(self.wood) + "/3", 1,
                            (255, 120, 104))
            Renderer.submit((text, [100, 100] - Renderer.cameraTranslation))

        Renderer.present()
        if Developer_mode:
            Renderer.check(self.posit)

        return Trans.Pass


if __name__ == "__main__":
    app = Application(MainMenu(), "Game", 1080, 720)
    app.run()