r/pygame • • Oct 13 '26

Core mechanics established , now adding levels

The Alpha release will be available for Linux and Windows later this month or early November

https://scriptilapia.itch.io/jarball

7 Upvotes

6 comments sorted by

2

u/PyLearner2024 Oct 13 '26

Very cool! Are you using an existing physics solver?

1

u/scriptilapia Oct 13 '26

Thanks. Yes. I'm using Pymunk to handle the physics, Pygame does the rendering.

2

u/[deleted] Oct 13 '26

[removed] — view removed comment

1

u/scriptilapia Oct 14 '26

Hello. I'm designing the levels one by one, the code around it is well organized so most levels are like 20-50 lines of code.

0

u/[deleted] Oct 14 '26

[removed] — view removed comment

1

u/scriptilapia Oct 14 '26

The mechanics take 80-90% of the code, the rest is the levels. The duplication issue haunted me , I would've ended up in repetitive hell , but in foresight I placed each chapter and its levels in one subpackage where they share their common resources specific to that chapter. One directory above a chapter package are more files and subpackages containing more common stuff that can be imported and varied if needed by any level. my goal was to make it simply flexible and interconnected to enable a variety of combos. Dodged tons of circular import traps in the process too

EVEN BETTER : A level editor

Since I'm just beginning I stashed this for if my game does well , so that it would be worth the time and effort . I already have the code and design in my head just need time and a reason to build it .