def update(self): action = self.app.input.check_for_action('editor') if action: if action == 'quit': self.app.running = False if self.app.input.lastkey.vkey != K_NONE and action !='quit' : scene = scenes.get('game')() self.app.scene = scene
def update(self): self.nextc() self.dirty = True mouse = self.app.window.mouseinfo # if (self.cx, self.cy) != (mouse.cx, mouse.cy): # self.dirty = True # self.cx, self.cy = mouse.cx, mouse.cy # print self.cx, self.cy action = self.app.input.check_for_action('game') if action: if self._frame == 0: self.frame == self.credits self._frame += 1 self.dirty = True elif self._frame == 1: self._frame += 1 self.app.scene = get('splash')() self.dirty = True
#! /usr/bin/env python import os, sys, platform minor = "py2{0}".format(sys.version_info[1]) if os.name == "posix": if platform.system() == "Darwin": sys.path.append(os.path.join("./lib/osx", minor)) else: if platform.architecture()[0] == "64bit": sys.path.append(os.path.join("./lib/lin64", minor)) else: sys.path.append(os.path.join("./lib/lin32", minor)) else: sys.path.append(os.path.join("./lib/win32", minor)) from src import app, scenes editor = scenes.get("editor")() app = app.Application() app.run(editor)
def touched(self, game, ent): if ent.name == "player": if self.uuid not in game.seenmsgs: game.app.scene = get('credits')()
#! /usr/bin/env python import os, sys, platform minor = "py2{0}".format(sys.version_info[1]) if os.name == 'posix': if platform.system() == 'Darwin': sys.path.append(os.path.join("./lib/osx", minor)) else: if platform.architecture()[0] == '64bit': sys.path.append(os.path.join("./lib/lin64", minor)) else: sys.path.append(os.path.join("./lib/lin32", minor)) else: sys.path.append(os.path.join("./lib/win32", minor)) from src import app, scenes editor = scenes.get('splash')() app = app.Application() app.run(editor)
def touched(self, game, ent): if ent.name == "player": if self.uuid not in game.seenmsgs: game.app.scene = get("credits")()
#! /usr/bin/env python import os, sys, platform minor = "py2{0}".format(sys.version_info[1]) if os.name == 'posix': if platform.system() == 'Darwin': sys.path.append(os.path.join("./lib/osx", minor)) else: if platform.architecture()[0] == '64bit': sys.path.append(os.path.join("./lib/lin64", minor)) else: sys.path.append(os.path.join("./lib/lin32", minor)) else: sys.path.append(os.path.join("./lib/win32", minor)) from src import app, scenes editor = scenes.get('editor')() app = app.Application() app.run(editor)