Sei sulla pagina 1di 5

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.

org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Information specific to the Pygame SGE &mdash; The Pygame SGE 0.8.0 d ocumentation</title> <link rel="stylesheet" href="_static/default.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '', VERSION: '0.8.0', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <link rel="top" title="The Pygame SGE 0.8.0 documentation" href="index.html" /> <link rel="next" title="First Example: Hello, world!" href="hello_world.html " /> <link rel="prev" title="SGE Concepts" href="sge_concepts.html" /> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="hello_world.html" title="First Example: Hello, world!" accesskey="N">next</a> |</li> <li class="right" > <a href="sge_concepts.html" title="SGE Concepts" accesskey="P">previous</a> |</li> <li><a href="index.html">The Pygame SGE 0.8.0 documentation</a> &raquo;< /li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="information-specific-to-the-pygame-sge"> <h1>Information specific to the Pygame SGE<a class="headerlink" href="#informati on-specific-to-the-pygame-sge" title="Permalink to this headline"></a></h1>

<div class="section" id="license"> <h2>License<a class="headerlink" href="#license" title="Permalink to this headli ne"></a></h2> <p>The Pygame SGE is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p> <p>The Pygame SGE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</p> <p>You should have received a copy of the GNU Lesser General Public License along with the Pygame SGE. If not, see &lt;<a class="reference external" href=" http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>&gt;.</p> </div> <div class="section" id="dependencies"> <h2>Dependencies<a class="headerlink" href="#dependencies" title="Permalink to t his headline"></a></h2> <ul class="simple"> <li>Python 3.1 or later &lt;<a class="reference external" href="http://www.pytho n.org">http://www.python.org</a>&gt;</li> <li>Pygame 1.9.2 or later &lt;<a class="reference external" href="http://pygame. org">http://pygame.org</a>&gt;</li> </ul> </div> <div class="section" id="formats-support"> <h2>Formats Support<a class="headerlink" href="#formats-support" title="Permalin k to this headline"></a></h2> <p><a class="reference internal" href="Sprite.html#sge.Sprite" title="sge.Sprite "><tt class="xref py py-class docutils literal"><span class="pre">sge.Sprite</sp an></tt></a> supports the following image formats:</p> <ul class="simple"> <li>PNG</li> <li>JPEG</li> <li>Non-animated GIF</li> <li>BMP</li> <li>PCX</li> <li>Uncompressed Truevision TGA</li> <li>TIFF</li> <li>ILBM</li> <li>Netpbm</li> <li>X Pixmap</li> </ul> <p><a class="reference internal" href="Sound.html#sge.Sound" title="sge.Sound">< tt class="xref py py-class docutils literal"><span class="pre">sge.Sound</span>< /tt></a> supports the following audio formats:</p> <ul class="simple"> <li>Uncompressed WAV</li> <li>Ogg Vorbis</li> </ul> <p><a class="reference internal" href="Music.html#sge.Music" title="sge.Music">< tt class="xref py py-class docutils literal"><span class="pre">sge.Music</span>< /tt></a> supports the following audio formats:</p> <ul class="simple"> <li>Ogg Vorbis</li> <li>MP3 (support limited; use not recommended)</li> <li>MOD</li> <li>XM</li> <li>MIDI</li> </ul>

<p>For starting position in MOD files, the pattern order number is used instead of the number of milliseconds.</p> <p>If Pygame is built without full image support, <a class="reference internal" href="Sprite.html#sge.Sprite" title="sge.Sprite"><tt class="xref py py-class doc utils literal"><span class="pre">sge.Sprite</span></tt></a> will only be able to load uncompressed BMP images.</p> <p>The pygame.mixer module, which is used for all audio playback, is optional and depends on SDL_mixer; if pygame.mixer is unavailable, sounds and music will not play.</p> <p>On some systems, <a class="reference internal" href="Music.html#sge.Music" ti tle="sge.Music"><tt class="xref py py-class docutils literal"><span class="pre"> sge.Music</span></tt></a> attempting to load an unsupported format can crash the game. Since MP3 support is limited, it is best to avoid using it; consider using Ogg Vorbis instead.</p> </div> <div class="section" id="missing-features"> <h2>Missing Features<a class="headerlink" href="#missing-features" title="Permal ink to this headline"></a></h2> <p><a class="reference internal" href="Sprite.html#sge.Sprite.draw_line" title=" sge.Sprite.draw_line"><tt class="xref py py-meth docutils literal"><span class=" pre">sge.Sprite.draw_line()</span></tt></a> and <a class="reference internal" hr ef="Room.html#sge.Room.project_line" title="sge.Room.project_line"><tt class="xr ef py py-meth docutils literal"><span class="pre">sge.Room.project_line()</span> </tt></a> support anti-aliasing for lines with a thickness of 1 only. <a class="reference internal" href="Sprite.html#sge.Sprite.draw_text" title="sge .Sprite.draw_text"><tt class="xref py py-meth docutils literal"><span class="pre ">sge.Sprite.draw_text()</span></tt></a> and <a class="reference internal" href= "Room.html#sge.Room.project_text" title="sge.Room.project_text"><tt class="xref py py-meth docutils literal"><span class="pre">sge.Room.project_text()</span></t t></a> support anti-aliasing in all cases. No other drawing or projecting methods support anti-aliasing.</p> <p><a class="reference internal" href="globalvars.html#sge.BLEND_RGBA_SCREEN" ti tle="sge.BLEND_RGBA_SCREEN"><tt class="xref py py-data docutils literal"><span c lass="pre">sge.BLEND_RGBA_SCREEN</span></tt></a> and <a class="reference interna l" href="globalvars.html#sge.BLEND_RGB_SCREEN" title="sge.BLEND_RGB_SCREEN"><tt class="xref py py-data docutils literal"><span class="pre">sge.BLEND_RGB_SCREEN< /span></tt></a> are unsupported. If one of these blend modes is attempted, normal blending will be used instead.</p> </div> <div class="section" id="speed-improvements"> <h2>Speed Improvements<a class="headerlink" href="#speed-improvements" title="Pe rmalink to this headline"></a></h2> <p>The Pygame SGE supports hardware rendering, which can improve performance in some cases. It is not enabled by default. To enable it, set <tt class="xref py py-data docutils literal"><span class="pre">sge.hardware_ rendering</span></tt> to <tt class="xref py py-const docutils literal"><span cla ss="pre">True</span></tt>. The benefit of hardware acceleration is usually negligible, which is why it is disabled by default.</p> </div> </div> </div> </div> </div> <div class="sphinxsidebar">

<div class="sphinxsidebarwrapper"> <p class="logo"><a href="index.html"> <img class="logo" src="_static/sge_logo_alpha_black.png" alt="Logo "/> </a></p> <h3><a href="index.html">Table Of Contents</a></h3> <ul> <li><a class="reference internal" href="#">Information specific to the Pygame SG E</a><ul> <li><a class="reference internal" href="#license">License</a></li> <li><a class="reference internal" href="#dependencies">Dependencies</a></li> <li><a class="reference internal" href="#formats-support">Formats Support</a></l i> <li><a class="reference internal" href="#missing-features">Missing Features</a>< /li> <li><a class="reference internal" href="#speed-improvements">Speed Improvements< /a></li> </ul> </li> </ul> <h4>Previous topic</h4> <p class="topless"><a href="sge_concepts.html" title="previous chapter">SGE Concepts</a></p> <h4>Next topic</h4> <p class="topless"><a href="hello_world.html" title="next chapter">First Example: Hello, world!</a></p > <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="_sources/pygame.txt" rel="nofollow">Show Source</a></li> </ul> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="hello_world.html" title="First Example: Hello, world!" >next</a> |</li> <li class="right" >

<a href="sge_concepts.html" title="SGE Concepts" >previous</a> |</li> <li><a href="index.html">The Pygame SGE 0.8.0 documentation</a> &raquo;< /li> </ul> </div> <div class="footer"> Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. </div> </body> </html>

Potrebbero piacerti anche