Early gameplay

Swimmy Submarine

Experimenting with games in PyScript.

Awards

Give this entry an award

Files

File Uploader Date
Screenshot_2025-03-25_at_18-28-29_SwimmySub.png
Early gameplay
ntoll 2025/03/25 18:33
Screenshot_2025-03-25_at_18-19-54_SwimmySub.png
Loading screen
ntoll 2025/03/25 18:20

Diary Entries

A platform game...

No, not that sort of platform game... but a Python game in a new platform: the browser. ;-)

Thanks to PyScript I want to explore ways in which game making with Python could be delivered via the convenience of a URL. I don't want to use PyGame (also supported by PyScript), but perhaps play around with the built-in browser capabilities to figure out what bits and bobs are available, and how they can most effectively be exposed to game makers.

PyWeek is the vehicle for exploration..! Onwards!

Add a comment

Swimmy Submarine

After a false start on Monday, I put my thinking cap on for a game on the theme of "downstream".

Since I'm playing with relatively new technology for making a game in Python (i.e. running it in the browser via PyScript), I wanted a simple game... something daft but fun like Flappy Bird. How about Swimmy Sub? The back story isn't complicated... just navigate downstream in your sub, avoid the aquatic life and collect the treasure dropped by pirates.

Everything is being done via MicroPython and the DOM. Emoji are the "sprites", CSS is helping with basic layout, animated backgrounds via webp and I've even found a cheesy AI generated "under the water world" song to set the mood.

Here's a couple of screenies that show a few hour's worth of work, around 200 lines of Python... most of the work has been curating and refining assets:



Next steps:

  • A scoring system, and actual treasure to collect.
  • More subtle animation of the aquatic life.
  • BUBBLES!
  • Check it works on mobile (it should be simple).
  • Fine tuning of the various settings for speed and movement.
  • Play test with my kids.
  • Try not to get fed up with that damn AI generated music. ;-)
Onwards!

2 comments