Skip to content

Commit

Permalink
Link out inheritance example
Browse files Browse the repository at this point in the history
  • Loading branch information
acbart committed Oct 30, 2023
1 parent fae138c commit 85ece51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docsrc/examples/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ Build a simple interactive where two arrow boxes can be moved across the screen.

* Demonstrates: Handling key presses with ``typing`` and ``done typing``

:ref:`Inheritance<inheritance>`

Build a game where you add a new field to an existing Designer object by using inheritance.

* Demonstrates: Extending a Designer object with inheritance

`BlockPy Showcase`_

A simple gallery of web-based Designer examples using BlockPy.
Expand Down
2 changes: 2 additions & 0 deletions docsrc/examples/firefighter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,8 @@ It turns out that we can pass multiple functions in to the ``when`` function (ev
:lines: 162-165,180

**Task 24**: Fill in the blanks to make the text say "Game Over" and show the score.
Make sure you put this ``when`` after the ``update_score`` handler, so that the score does not update after the game ends.
The order of the ``when`` functions is the order that the functions will be called in.

^^^^^^^^^^^^^^^^
Extra Challenges
Expand Down

0 comments on commit 85ece51

Please sign in to comment.