You are browsing as a guest. Sign up (or log in) to start making projects!

Pygame 2d Platformer

  • 13 Devlogs
  • 23 Total hours

a basic 2d platformer in pygame to learn physics and game development

Open comments for this post

25m 40s logged

Spooky Game

Changed:

  • now rather than charging automatically the flashlight has a small crank that the player has to turn by moving the mouse, the faster the player moves the mouse the faster the crank will turn and the faster the flashlight will charge.
  • added ambient noise to the forest
  • added the sounds of the players footsteps and running
  • added a click when turning on and off the flashlight
0
0
4
Ship #1

I made a 2d Platformer in python using the pygame module/library (i don't really know what the word is)
the most difficult part was player movement and collision especially because i was using pygame, pygame has almost no tools built in that are standard with other game engines like Godot or unity. The main reason i chose pygame for this was because it was a little farther into my comfort zone because i love to code in python and dont have as much experience in other languages or game engines. I also really enjoyed the fact that i have to do allot of things from pygame manually it shows me how complicated things actually are and helps me learn how they work

I am really proud of the level creation and level editor system i really like the level editor and i think its one of my favirote things ive ever coded in python even if i got a little help with ai

This game is not quite intending to be a standalone game so i encourage people to look at he game and mod it how they want to use it as a base for other projects im not the best at level design so id love to see if other people want to make a level as long as the level is named in sequence as level1, level2, etc the game will load it just fine I hope whoever plays or modifies this code has fun!

  • 12 devlogs
  • 23h
  • 7.74x multiplier
  • 174 Stardust
Try project → See source code →
Open comments for this post

1h 32m 19s logged

2d Platformer with pygame

Added:

  • new player anims/textures for falling, dashing, and taking damage from spikes
  • player now has hearts that are taken away when hitting spike rather than immediately dying
  • the checkpoint now is in the center of the tile it is placed in
  • fixed a bug where the player could dash in order to avoid hitting certain spikes

To Do:

  • make new levels
0
0
9
Open comments for this post

3h 31m 50s logged

2d Platformer with pygame

Added:

  • the ability to place spikes with different rotations
  • drew new player sprite and animations for walking and air dashing
  • the player now spawns a rainbow trail when air dashing
  • drew a new player spawn sprite replacing the previous placeholder
  • in the editor you can now zoom in, out, and drag around the grid with the scroll wheel

To Do:

  • make new levels
  • change the checkpoint sprite to render in the center of the tile
0
0
4
Open comments for this post

2h 14m 1s logged

2d Platformer with pygame

Changes:

  • added level transitions
  • built a few new levels
  • added the editor to the main menu
  • made some changed to the editor mainly adding level end tiles and a “quit to game” button

To Do:

  • make new player textures for normal movement, sprinting, air dashing, and jumping/falling
  • create a new character design
  • make new proper levels for the player to play
  • make changes to the way that spikes are placed so i can place them on walls and upside down
0
0
3
Open comments for this post

2h 14m 17s logged

2d Platformer with pygame

Changes:

  • made a level builder program

To Do:

  • add player spawn point to the level editor
  • draw new player sprites
  • create more levels
  • add level transitioning
0
0
2
Open comments for this post

1h 46m 50s logged

2d Platformer with pygame

Changes:

  • remade the Main menu
  • added an air dash ability
  • started work on a level transitioning

To Do:

  • create more levels
  • potentially make a proper level builder
0
0
3
Open comments for this post

1h 32m 37s logged

2d Platformer with pygame

Changes:

  • fixed bug where the player could stand on the side of a wall/platform
  • made new checkpoint and hazard (spike) textures
  • created placeholder player texture
  • gave the spike proper triangular collisions. earlier it had only box collisions and i was harder to avoid

To Do:

  • create main menu screen
  • add level changing
  • create more levels
  • create new player texture
0
0
2
Open comments for this post

1h 4m 21s logged

2d Platformer with pygame

Added:

  • proper level “editor” using a grid of characters in a
    text file
  • new texture for checkpoints
  • fullscreen support

To Do:

  • end level trigger
  • level changing
  • more levels
  • main menu, Sadly implementing the level “editor” resulted in the main menu screen breaking. I will try to fix that as soon as possible
0
0
2
Open comments for this post

1h 43m 29s logged

2d Platformer with pygame

Goals Accomplished:

  • Main menu
  • Wall jumping
  • slight level changes for testing

To Do

  • Air dash?
  • Better level build system
  • End level trigger
  • easy way to transition between levels
0
0
1
Open comments for this post

3h 11m 54s logged

2d Platformer with pygame

Goals Achieved:

  • Side Scrolling camera allowing for bigger levels.

New Stuff:

  • Kill blocks as a threat to the player
  • Checkpoints to resume after dying
  • A class system to more easily make levels
    now I only have to position everything

Need to make:

  • End level trigger
  • Menu screen?
  • Air dash
  • Wall jumping?
  • Maybe a better system to build levels
0
0
2
Open comments for this post

1h 50m 16s logged

2d Platformer with pygame

Goals Achieved:

  • Proper collisions for all surfaces
  • Reworked all code for movement

In Progress:

  • Textures
  • Proper map/level
  • Side scrolling for longer levels
0
0
1

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…