Settings

Theme

Tiny Games in JupyterLite

twitter.com

1 points by DerThorsten 4 years ago · 1 comment

Reader

DerThorstenOP 4 years ago

Let's start the week with something fun. We ported pyb2d, python bindings for #Box2D, to #pyodide / #wasm. With that, we can implement tiny games directly in #jupyterlite. While the framerate might not be the best, it should have some educational value.

This runs directly in the browser without any server.

Play billiard: https://jupyterlite.github.io/demo/lab?path=pyolite%2Fpyb2d%...

Play a World of Goo clone: https://jupyterlite.github.io/demo/lab?path=pyolite%2Fpyb2d%...

Play an Angry Birds clone: https://jupyterlite.github.io/demo/lab?path=pyolite%2Fpyb2d%...

Steer a rocket: https://jupyterlite.github.io/demo/lab?path=pyolite%2Fpyb2d%...

https://jupyterlite.github.io/demo/lab/

You can create your own deployment of jupyterlite with this: https://github.com/jupyterlite/demo

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection