|
|
@ -2531,7 +2531,7 @@ pg.draw.ellipse(<Surf>, color, <Rect>) |
|
|
|
<Surf> = <Font>.render(text, antialias, color, background=<span class="hljs-keyword">None</span>) |
|
|
|
</code></pre></div> |
|
|
|
|
|
|
|
<div><h3 id="sound">Sound</h3><pre><code class="python hljs"><Sound> = pg.mixer.Sound(<span class="hljs-string">'<path>'</span>) <span class="hljs-comment"># Loads a sound file.</span> |
|
|
|
<div><h3 id="sound">Sound</h3><pre><code class="python language-python hljs"><Sound> = pg.mixer.Sound(<span class="hljs-string">'<path>'</span>) <span class="hljs-comment"># Loads a sound file.</span> |
|
|
|
<Sound>.play() <span class="hljs-comment"># Starts playing the sound.</span> |
|
|
|
</code></pre></div> |
|
|
|
|
|
|
|