Marketplace | Games

Smart-Contract #000-00000000000024

Chart
logo

Square Jumps 00604

The game initializes with the square positioned at the bottom center of the screen. It can jump a maximum of two times, providing the player with an opportunity to reach the rectangles. The player can control the square using the keyboard. Pressing the spacebar allows the square to jump, while the left and right arrow keys enable movement in their respective directions.

Characteristics:

  • [Category] <------------------------------------------------------> [Games]
  • [Creator] <-----------------------------------------------------> [InNotSystem13]
  • [Project] <---------------------------------------------------> [Square Jumps]
  • [Identifier] <--------------------------------------------------------> [00604]
  • [Contract] <------------> [0xc762a1ccd7632b49BC914947cF8613E10F602687]
  • [Chain] <---------------------------------------------------------> [BSC Chain]
  • [Type] <----------------------------------------------------> [Application]

Binance Smart Chain (BSC)

Price: 1 USDT

Video instruction

“In order to start creating something exclusive, you don’t need any special knowledge or skills, you just need to be able to COPY and PASTE - it’s like with a girl, you just need to undress and paste!”

3 Simple steps to get started 🚀

Install Python: If you don't already have it, download and install Python from the official website. Python supports various operating systems, and you can choose the version that suits your computer.

Install PyCharm: Download and install the PyCharm IDE to make creating your application easier. You can find a free version of PyCharm Community Edition that is good to get started.

Copy Code: Open the PyCharm development environment, create a new project. Copy and paste the code into the window, click the Start button, you have launched your project. Use this code or other codes from the Metaverse to create something global and worthwhile!

Try just copying your first code and creating an application

In just 1 minute

    import pygame
    import sys
    import random

    # Initialize Pygame
    pygame.init()

    # Screen dimensions
    screen_width = 400
    screen_height = 400

    # Colors
    white = (255, 255, 255)
    blue = (0, 0, 255)
    yellow = (255, 255, 0)

    # Create the screen
    screen = pygame.display.set_mode((screen_width, screen_height))
    pygame.display.set_caption("Jumping Square")

    # Sizes of the square and rectangles
    square_size = 50
    rect_width = 40
    rect_height = 10

    # Initial coordinates of the square
    square_x = screen_width // 2
    square_y = screen_height - square_size

    # Initial jump speed
    jump_speed = -200  # Decrease the jump speed
    fall_speed = 5
    jump_count = 0
    max_jump_count = 2

    # Score
    score = 0

    # List of rectangle coordinates
    rectangles = []


    def create_rectangle():
        x = random.randint(0, screen_width - rect_width)
        y = random.randint(0, screen_height - rect_height)
        rectangles.append((x, y))


    # Create initial rectangles
    for _ in range(5):
        create_rectangle()

    # Main game loop
    running = True
    jumping = False
    while running:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                running = False

        keys = pygame.key.get_pressed()
        if keys[pygame.K_SPACE] and jump_count < max_jump_count:
            jumping = True
            square_y += jump_speed
            jump_count += 1
        elif keys[pygame.K_LEFT]:
            square_x -= 5  # Move to the left
        elif keys[pygame.K_RIGHT]:
            square_x += 5  # Move to the right

        if jumping:
            square_y += fall_speed

        if square_y >= screen_height - square_size:
            jumping = False
            jump_count = 0

        # Check for collisions between the square and rectangles
        for rect_x, rect_y in rectangles[:]:
            if square_x < rect_x + rect_width and square_x + square_size > rect_x and square_y < rect_y + rect_height and square_y + square_size > rect_y:
                score += 1
                rectangles.remove((rect_x, rect_y))
                create_rectangle()

        screen.fill(white)
        pygame.draw.rect(screen, blue, (square_x, square_y, square_size, square_size))

        for rect_x, rect_y in rectangles:
            pygame.draw.rect(screen, yellow, (rect_x, rect_y, rect_width, rect_height))

        pygame.display.update()

    pygame.quit()
    sys.exit()


    # pip install pygame


            
Copy the code, paste it into PyCharm, press the start button
Message to the community from the creator: This Python code uses the Pygame library to create an interactive game. It sets up a window with a defined width and height and displays a square and several yellow rectangles. The objective is to control the square, making it jump and move to collect by on the rectangles.
I dance to track Lil Pump - Big Maga Steppin
Quote from the creator: “The big path to wealth starts with 1 USD”
Start Price - 1 USDT
Additions: In the Marketplace “Calculators All” and “Games” I add and assign the main currency AK (A.KANGOL)
1 USDT & = & 1 AK (A.KANGOL)
(A.KANGOL) - [internal coin]
The purpose of the contract is step-by-step training using BlockChain in creating your projects using Python - [COPY & PASTE]
Логотип

Games

Товар 1

Flappy vs Alchimic 00601

Creator - InNotSystem13

Contract type - Open

Товар 2

Apple Snake 00602

Creator - InNotSystem13

Contract type - Open

Товар 3

Snake vs Alhimic 00603

Creator - InNotSystem13

Contract type - Open

Товар 4

Square Jumps 00604

Creator - InNotSystem13

Contract type - Open

Товар 5

Circle & Square 00605

Creator - InNotSystem13

Contract type - Open