perspecto
A downloadable game for Windows and macOS
Simple pygame for a Spatial themed Pygame Spring Jam.
https://github.com/mutkach/pygame-jam-entry-2025-spring
Goal of the game:
You are given a set of 2d-shapes or rendered objects that are presented as thumbnails on the right side of the screen. These objects are 2d-images as if they were drawn or rendered with a perpective projection (i.e. normal perspective) in mind;
However, their initial position in picture is lost. You need to rearrange them spatially inside the screen in a way that resulting composition corresponds to the rules of projection, i.e. all the non-parallel lines should converge towards a Vanishing point. For your convenience you are provided with a horizon line and points where you hit them. Ideally these should converge to a single point or two points. The better the convergence - the lower the dispersion - the lower score you get. Once you pass the minimal score, you may proceed to the next level (or hack your way there trivially by observing the logic in file main.py
).
Each object has a layer
attribute that governs the order of rendering of the image and does not affect the score of the composition. You may use it for convenient depiction of the objects in the natural order (that is, the order that they would appear in an initial image).
Colored points on the horizon indicate the intersections of the corresponding lines with the horizon.
Hint: Start with one building and optimize for smaller number.
Controls:
Left Mouse button
- for picking objects:
-
- to decrease the currentLayer
number=
- to increase the currentLayer
numberR
- to restart the current level.
Assets:
One of the levels was produced with the help of the greatest building generator buildify
Download
Install instructions
Use python and run main.py from the main directory.
Use perspecto_dist_{win, mac} for packaged executable win - for windows, mac - for macos.
Leave a comment
Log in with itch.io to leave a comment.