Game Development with python

I recreated the original Super Mario Bros game from scratch using nothing but Pygame to display the frames on screen
Project Overview
The first level was developed in about 1000 line of python code. This was one of my early and most ambitious projects due to my lack of knowledge of game development in python when starting this project.

The games takes advantage of classes to use as a copy and paste blueprint for the enemies and interactive objects which allowed me to quickly create clones of objects with similar atributes.
Tracking the player's position relative to the map was some what of a challenge to figure out without any prior experience or knowledge. A good trick we discovered was to use a full size image for the map background and use the pixels of the image as the relative position to for the player.

Next problem I ran into was having the character walk off the screen and not being in sync with the background when scrolling. The solution I came up with was when the character reached about the halfway mark on the screen the character would stop moving in the horizontal position and the map would start scrolling backwards giving the illusion or the player moving thru the map.
Tracking player position
Getting creative
Aug 2017 — forever
One of the biggest mechanics in a platformer like Super Mario Bros is being able to interact with objects around the map. How was this done? It was done by using the players vertical screen position on the horizontal map position to determine collision with the objects on the screen.


in between each frame the game will check if the player's position has intersected with a list of objects in the screen and run the function related to the object. For example if the player ran into a pipe it would not allow you to move in that direction anymore or if it hit a brick from underneath it would do animation and bounce the player back down etc..
interactions with objects
Creating physics
Aug 2017 — forever