PyCon JP 2024

Your locale preferences have been saved. We like to think that we have excellent support for English in pretalx, but if you encounter issues or errors, please contact us!

Playing games in the browser with WASM
2024-09-28 , 4F Track4

Learn about the convergence of PyGame in Python and WebAssembly. In this talk, explore how we can turn Python based games into web sensations. Understand the essential of game development with PyGame, from animation to interaction and how PygBag bridges these creations to the web with WebAssembly.

We will see how this transition from desktop to browser works, ensuring the games are accessible and performant on every device. Let's play video games in the browser with high efficiency in the browser!


Have you ever dreamt of turning your Python game creations using pygame into web sensations playable by anyone, anywhere? This talk dives deep into the exciting convergence of Pygame and WebAssembly, empowering you to bring your Python game development skills to the web!

In talk, attendees will learn about the Pygame development, laying a strong foundation with its fundamental concepts. From the initial steps of game initialization and window creation to the intricate handling of graphics, animation, and sound effects, and the crucial aspect of user input for engaging gameplay, they'll gain comprehensive insights into the essence of game creation.

Together, we will navigate the transformative journey from Pygame to the web through the innovative use of PygBag, that effortlessly converts Python game code into WebAssembly. This conversion enables the games to run smoothly within web browsers, bridging the gap between desktop development and web accessibility.

By the conclusion of this talk, attendees will have a better understanding of Pygame's capabilities, the transformative potential of PygBag in combining Python with WebAssembly.


Why did you choose this topic?

This topic helps to demonstrate how Pygame games can be seamlessly transformed into web-playable versions using WebAssembly through pygbag. This will help the Python developers to extend their game creations from desktop to the web, making them accessible to a wider audience and showcasing the exciting possibilities of combining Python with web technologies.

Knowledges and know-how the audience can get from your talk

This talk is intended for developers who know or has a basic understanding of game development concepts, and are interested in creating web-based games.

By attending the talk, the audience will be able to learn and understand the role of WebAssembly in web game development. They will discover how PyBag has the ability to bridge the gap between Python and WebAssembly and how it translates Python game code.

Prior knowledges speakers assume the audience to have

Some experience with PyGame is beneficial but not required.

Audience experiment

Intermediate

Language of presentation

English

Language of presentation material

English

Neeraj is a polyglot. Over the years, he has worked on a variety of full-stack software and data-science applications, as well as computational arts and Quantitative finance projects, and likes the challenge of creating new tools and applications.