Puzzle game

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.

Pygame Grab part of the screen with subsurface

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

Pong v. 1.0 – Pygame example

1.2 – Starting arkanoid… from pong

Arkanoid… let’s make it better…

1.3 – Adding background

ArkaPyGame 1.3 – Adding a background

1.4 – Collision detection

ArkaPygame 1.4 – Collision detected

1.5 – Bricks collisions

Arkanoid in pygame part 5

1.6 – Still on Collisions

Arkanoid part 6 – Still on bricks collision

1.7 – Fixed strange bouncing

Arkanoid 1.7 – Fixed strange bouncing

1.8 – How to destroy the bricks

Arkanoid 1.8 – First stage almost complete: destroy bricks

1.9 – More levels

Arkanoid 1.9 – more stages

2.1 – Infinite level generator

Arkanoid 2.0 – infinite levels

2.3 – Sounds and faster frame rate tecnique

ArkaPyGame 2.1 – Arkanoid like game made with Pygame

2.5 – New nicer levels simmetric and in color and menus

Arkanoid-Pygame 2.5 – New levels and menu

2.6 – Keyboard control

ArkaGame 2.6 – Adding keyboard commands

2.7 – Mouse exclusive control

Arkanoid 2.7 with Pygame – Mouse control

2.xxx – Tiny version

TinyArka – “Mini” version of Arkanoid with pygame

5.0 – Arkagame: 5 different versions

Breakout / Arkanoid – 5 versions in one (pygame)

Github repository
https://github.com/formazione/arkapygame


Subscribe to the newsletter for updates
Tkinter templates

Avatar My youtube channel

Twitter: @pythonprogrammi - python_pygame

Claude's Games

Arkanoid
Platform 2d

1. Memory game

Videos

Speech recognition game

Pygame's Platform Game

Other Pygame's posts

Advertisement