This will come soon.
This game was made to show a practical example of the grab function I made some days ago. Here is the post in which I talked about this function.
The grab function
A little different version of this function that grabs a subsurface of the screen:
import pygame
def grab(screen, x, y, w, h):
"Grab part of screen blit on => screenshot"
sub = screen.subsurface(x, y, w, h)
screenshot = pygame.Surface((w, h))
screenshot.blit(sub, (0, 0))
return screenshot
The Puzzle Game
So, starting from this function I thought to make a puzzle game. The pieces of the puzzle are made using this function and creating 100 pieces.
Here you can see a screenshot of the game with an image of Gamora, the puzzle and the right side of the screen where you put the pieces back together.
You can add your own images. At the moment you can put 500×500 pixels images in the folder puzzles.
Here are the scrambled pieces.
A sneak peek to the game look
This is the look of the game at the moment. It is already different, because the third grid is now black, like you ca see in Gamora image of the game above.
1.1 – Pong the father of Arkanoid
1.2 – Starting arkanoid… from pong
1.3 – Adding background
1.4 – Collision detection
1.5 – Bricks collisions
1.6 – Still on Collisions
1.7 – Fixed strange bouncing
1.8 – How to destroy the bricks
1.9 – More levels
2.1 – Infinite level generator
2.3 – Sounds and faster frame rate tecnique
2.5 – New nicer levels simmetric and in color and menus
2.6 – Keyboard control
2.7 – Mouse exclusive control
2.xxx – Tiny version
5.0 – Arkagame: 5 different versions
Github repository
https://github.com/formazione/arkapygame
Subscribe to the newsletter for updates
Tkinter templatesTwitter: @pythonprogrammi - python_pygame
Claude's Games
1. Memory gameVideos
Speech recognition gamePygame's Platform Game


