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:
{
"The game is being completely desgined in pygame"
}{
"The game includes a level that is built with a list that contains the level data."
}{
"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:
Initialize three variables namely, DASH, DASH_TIMER, DASH_COOLDOWN.
After that I set a key for dashing. i.e SPACE BAR
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.
Top comments (0)