Browse Source

Pygame

pull/52/head
Jure Šorn 5 years ago
parent
commit
e0378bf400
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -2982,7 +2982,7 @@ pg.draw.ellipse(<Surf>, color, <Rect>)
```
### Sound
```
```python
<Sound> = pg.mixer.Sound('<path>') # Loads a sound file.
<Sound>.play() # Starts playing the sound.
```

2
index.html

@ -2531,7 +2531,7 @@ pg.draw.ellipse(&lt;Surf&gt;, color, &lt;Rect&gt;)
&lt;Surf&gt; = &lt;Font&gt;.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">&lt;Sound&gt; = pg.mixer.Sound(<span class="hljs-string">'&lt;path&gt;'</span>) <span class="hljs-comment"># Loads a sound file.</span>
<div><h3 id="sound">Sound</h3><pre><code class="python language-python hljs">&lt;Sound&gt; = pg.mixer.Sound(<span class="hljs-string">'&lt;path&gt;'</span>) <span class="hljs-comment"># Loads a sound file.</span>
&lt;Sound&gt;.play() <span class="hljs-comment"># Starts playing the sound.</span>
</code></pre></div>

Loading…
Cancel
Save