Marketplace | Games

Smart-Contract #000-00000000000022

Chart
logo

Apple Snake 00602

Join the thrilling adventure of a brave crow as it faces off against the cunning alchemist in a high-flying showdown. Test your skills in this action-packed game where you control the crow's destiny.With stunning graphics and addictive gameplay, 'Flappy vs Alchemic' will keep you entertained.

Characteristics:

  • [Category] <-------------------------------------------> [Games]
  • [Creator] <-----------------------------------------------------> [InNotSystem13]
  • [Project] <---------------------------------------------------> [Apple Snake]
  • [Identifier] <--------------------------------------------------------> [00602]
  • [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 = 700
    screen_height = 700

    # Load the beach image
    beach_image = pygame.image.load("Static/photo4.JPG")
    beach_image = pygame.transform.scale(beach_image, (screen_width, screen_height))

    # Colors
    white = (255, 255, 255)

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

    # Load images
    snake_head = pygame.image.load("Static/photo3.JPG")
    snake_head = pygame.transform.scale(snake_head, (140, 140))

    circle = pygame.image.load("Static/photo2.JPG")
    circle = pygame.transform.scale(circle, (80, 80))

    # Size of the square and circle
    square_size = 70
    circle_size = 20

    # Initial coordinates of the snake
    snake_x = screen_width // 2
    snake_y = screen_height // 2

    # Initial direction of the snake
    direction = "right"

    # Initial length of the snake
    snake_length = 1

    # List of circle coordinates
    circles = [(
        random.randint(0, (screen_width - circle_size) // circle_size) * circle_size,
        random.randint(0, (screen_height - circle_size) // circle_size) * circle_size
    )]

    # Function to draw the snake and circles
    def draw_snake_and_circles():
        # Draw the beach background
        screen.blit(beach_image, (0, 0))
        for circle_x, circle_y in circles:
            screen.blit(circle, (circle_x, circle_y))
        screen.blit(snake_head, (snake_x, snake_y))

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

        # Handle key presses
        keys = pygame.key.get_pressed()
        if keys[pygame.K_UP] and direction != "down":
            direction = "up"
        if keys[pygame.K_DOWN] and direction != "up":
            direction = "down"
        if keys[pygame.K_LEFT] and direction != "right":
            direction = "left"
        if keys[pygame.K_RIGHT] and direction != "left":
            direction = "right"

        # Move the snake
        if direction == "up":
            snake_y -= square_size
        if direction == "down":
            snake_y += square_size
        if direction == "left":
            snake_x -= square_size
        if direction == "right":
            snake_x += square_size

        # Check for collision with circles
        for circle_x, circle_y in circles:
            if snake_x == circle_x and snake_y == circle_y:
                circles.remove((circle_x, circle_y))
                new_circle_x = random.randint(0, (screen_width - circle_size) // circle_size) * circle_size
                new_circle_y = random.randint(0, (screen_height - circle_size) // circle_size) * circle_size
                while (new_circle_x, new_circle_y) in circles:
                    new_circle_x = random.randint(0, (screen_width - circle_size) // circle_size) * circle_size
                    new_circle_y = random.randint(0, (screen_height - circle_size) // circle_size) * circle_size
                circles.append((new_circle_x, new_circle_y))
                snake_length += 1

        # Check for screen boundaries
        if snake_x < 0:
            snake_x = screen_width - square_size
        if snake_x >= screen_width:
            snake_x = 0
        if snake_y < 0:
            snake_y = screen_height - square_size
        if snake_y >= screen_height:
            snake_y = 0

        # Draw the snake and circles
        draw_snake_and_circles()

        pygame.display.update()

        # Delay for controlling the game speed
        pygame.time.delay(200)

    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 code is a simple game with a beach background. Where one object moves and the second one observes. The player controls an apple. The Snake Game is a fun adventure to start your Gaming creation that will help you have fun and test your skills. Enjoy the beach background and try to control the snake to understand how it works.
I dance to track Lil John - Snap yo Fingers
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