DEV Community

Cover image for Devlog (Platformer Game)
Muhammad Faseeh
Muhammad Faseeh

Posted on

Devlog (Platformer Game)

Recently, I have started working on a platformer game in pygame.
All the physics and mechanics are being designed from scratch.

Here are some basic features of the game:

  1. {
    "The game is being completely desgined in pygame"
    }

  2. {
    "The game includes a level that is built with a list that contains the level data."
    }

  3. {
    "Morever it includes a basic player that can interact with the platforms, jump from one platform to another platform and basic x-axis movement".

Most Important characteristic of the player is the dash.
This is how I made the player dash:

  1. Initialize three variables namely, DASH, DASH_TIMER, DASH_COOLDOWN.

  2. After that I set a key for dashing. i.e SPACE BAR

  3. Whenever the player presses the space bar according to his direction he either dashes to left or right with a speed 4X the original speed.

In the next blog I will be sharing my experience while creating a player with real art and add some graphics to my game.

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

AWS Security LIVE!

Hosted by security experts, AWS Security LIVE! showcases AWS Partners tackling real-world security challenges. Join live and get your security questions answered.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️