コード例 #1
0
ファイル: splash.py プロジェクト: pycoder01/pw11-prismbreak
    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
コード例 #2
0
    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
コード例 #3
0
ファイル: credits.py プロジェクト: pycoder01/pw11-prismbreak
 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
コード例 #4
0
#! /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)
コード例 #5
0
 def touched(self, game, ent):
     if ent.name == "player":
         if self.uuid not in game.seenmsgs:
             game.app.scene = get('credits')()
コード例 #6
0
ファイル: run_game.py プロジェクト: pycoder01/pw11-prismbreak
#! /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)
コード例 #7
0
 def touched(self, game, ent):
     if ent.name == "player":
         if self.uuid not in game.seenmsgs:
             game.app.scene = get("credits")()
コード例 #8
0
#! /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)