https://github.com/mjs/pyweek11-cube
Automatically exported from code.google.com/p/pyweek11-cube
https://github.com/mjs/pyweek11-cube
Last synced: 3 months ago
JSON representation
Automatically exported from code.google.com/p/pyweek11-cube
- Host: GitHub
- URL: https://github.com/mjs/pyweek11-cube
- Owner: mjs
- License: other
- Created: 2015-04-01T13:43:12.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-01T13:46:12.000Z (about 10 years ago)
- Last Synced: 2025-03-07T13:02:10.407Z (4 months ago)
- Language: Python
- Size: 7.73 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
A game written for PyWeek #11, the 'write a game in Python in a week'
competition. pyweek.orgYou have been CAUGHT! Can you escape from this fiendish trandimensional puzzle
space?Keys:
W A S D - forward left right back
Up Down - up down, when you are granted the ability to move vertically
(moving vertically never actually happens)Most ideas are unfinished. It's pretty much just a cube moving around a 3D
maze, with some funky music. :-(DEPENDENCIES
------------To be able to run, first you'll need:
Windows or Linux (maybe Macs too, I haven't tried)
Python 2.6 or 2.7 (from python.org)
Pyglet 1.1.4 (easy_install or pip works, or from pyglet.org)
with AVBin if you want sound and music.AVBin is included in the Windows binary download of Pyglet. Otherwise you'll
have to download it from here:
http://code.google.com/p/avbin/downloads/listRUNNING THE GAME
----------------Run from the command line using:
python -O run.py [options]
Where options are:
--vsync, enables vsync
--windows or -w, run windowed instead of fullscreen
--print-fps, print fps to stdout on exit
--fps, display fps on screenAs always for pyglet / OpenGL programs, the -O flag is important, it can
greatly improve the framerate.DEVELOPMENT
-----------See the TODO.rst for future ideas.
The program spits out a logfile 'CaughtCube-debug.log'.
Also I have some simple commands stored in a Makefile, which I run under Linux
or under Windows with Cygwin binaries on the PATH. If you're on Windows but
don't have make or Cygwin, open up the Makefile. The commands in there are
generally simple, hopefully you can figure out how to do the same thing on your
own system.PROFILING
---------For profiling, I'm using the standard library cProfile, with 3rd party tool
'RunSnakeRun' to draw the output graphically.make profile
will run the script under the profiler, then run RunSnakeRun on the output.
RunSnakeRun is installed using: ``easy_install RunSnakeRun`` (or pip) or
download from:* http://www.vrplumber.com/programming/runsnakerun/
RunSnakeRun also needs:
* SquareMap: ``easy_install SquareMap`` (or pip)
* wxPython from http://www.wxpython.org/download.php#binariesCurrently runs under Windows at 60fps on my modest 2005-era Thinkpad T60 laptop
(ATI Radeon X1400).THANKS
------Thanks to both Alex Holkner and Richard Jones for pyglet, Euclid, and PyWeek,
which have transformed my hobbyist game coding. We all owe you, big time.Thanks to Chris DeLeon, for advice, moral support, and examples of how to do it
right.Music is I Wonder If God Was Sleeping (Transcendence Edit),
(cc) 2008 scottaltham
Licensed to the public under http://creativecommons.org/licenses/by-nc/3.0/
Verify at http://ccmixter.org/files/scottaltham/18129