Skip to content

Commit

Permalink
Add video to Pytris, remove incomplete section from peggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Longestboi committed Aug 2, 2024
1 parent 9e8c8de commit 8a0a616
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 0 additions & 4 deletions content/games/peggle-clone/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,3 @@ This clone was made during the downtime of a game programming internship, as the
# Video Demo
{{< rawhtml >}}<div class="gen-padding">{{< youtube 3KPSR-Rbs9I >}}</div>{{< /rawhtml >}}

{{< dots >}}

# Structure
This prototype project is structured in a way to make
Binary file added content/games/pytris/Pytris.webm
Binary file not shown.
10 changes: 9 additions & 1 deletion content/games/pytris/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ _Pytris_ is a clone of the classic tetromino puzzle game Tetris. I built this ga

I've achieved this by utilizing Pygame's built-in sprite type, `DirtySprite`, and the `LayeredDirty` sprite group. The "Dirty" part of these types denotes when or if the sprite should get redrawn, stopping the renderer from wasting time constantly redrawing some sprites, like backgrounds and other static objects.

# Video Demo (Unfinished)

{{< rawhtml >}}
<video class="gen-padding" style="display:block; margin:0 auto;" src=Pytris.webm type=”video/webm” controls >
</video >
{{< /rawhtml >}}

{{< dots >}}

# Code Showcase

## Signal.py (Obeserver Pattern Object)
Expand All @@ -26,7 +35,6 @@ import inspect

class Signal():
def __init__(self, function_definition: Callable):
self.function_definition = function_definition
self.funcs = []

def emit(self, *args):
Expand Down

0 comments on commit 8a0a616

Please sign in to comment.