未验证 提交 53c8fb6a 编写于 作者: D Dan Bader 提交者: GitHub

Merge branch 'master' into martin-martin-patch-1

Source files supporting the **Arcade - A Modern Python Game Framework** article
Source files supporting the [Arcade: A Primer on the Python Game Framework](https://realpython.com/arcade-python-game-framework/) article on [Real Python](https://realpython.com/).
......@@ -40,7 +40,7 @@ class SpaceShooter(arcade.Window):
Collisions end the game
"""
def __init__(self, width, height, title):
def __init__(self, width: int, height: int, title: str):
"""Initialize the game
"""
super().__init__(width, height, title)
......@@ -131,7 +131,7 @@ class SpaceShooter(arcade.Window):
self.clouds_list.append(cloud)
self.all_sprites.append(cloud)
def on_key_press(self, symbol, modifiers):
def on_key_press(self, symbol: int, modifiers: int):
"""Handle user keyboard input
Q: Quit the game
P: Pause the game
......
......@@ -12,7 +12,7 @@
<li class="nav-item active">
<a class="nav-link" href="{% url 'project_index' %}">Home</a>
</li>
<li class="nav-item">
<li class="nav-item active">
<a class="nav-link" href="{% url 'blog_index' %}">Blog</a>
</li>
</ul>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册