Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sigmanificient/pygame-tilescrollingplatformer
A pygame implementation of the scratch Tile Scrolling Platformer tutorial series from griffpatch.
https://github.com/sigmanificient/pygame-tilescrollingplatformer
grifpatch porting-game pygame pygame-game python python3 scratch-implementation
Last synced: 2 months ago
JSON representation
A pygame implementation of the scratch Tile Scrolling Platformer tutorial series from griffpatch.
- Host: GitHub
- URL: https://github.com/sigmanificient/pygame-tilescrollingplatformer
- Owner: Sigmanificient
- Created: 2021-08-12T20:55:27.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-02T10:45:03.000Z (6 months ago)
- Last Synced: 2024-08-02T12:18:53.838Z (6 months ago)
- Topics: grifpatch, porting-game, pygame, pygame-game, python, python3, scratch-implementation
- Language: Python
- Homepage: https://www.youtube.com/watch?v=Fl-LX94Z4Cc&list=PLy4zsTUHwGJIc90UaTKd-wpIH12FCSoLh
- Size: 3.08 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# ![](img/icon.png) Pygame TileScrollingPlatformer
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Sigmanificient/Pygame-TileScrollingPlatformer/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Sigmanificient/Pygame-TileScrollingPlatformer/?branch=master)
[![Build Status](https://scrutinizer-ci.com/g/Sigmanificient/Pygame-TileScrollingPlatformer/badges/build.png?b=master)](https://scrutinizer-ci.com/g/Sigmanificient/Pygame-TileScrollingPlatformer/build-status/master)
![Lines of code](https://img.shields.io/tokei/lines/github/Sigmanificient/Pygame-TileScrollingPlatformer)
![GitHub repo size](https://img.shields.io/github/repo-size/Sigmanificient/Pygame-TileScrollingPlatformer)
![GitHub all releases](https://img.shields.io/github/downloads/Sigmanificient/Pygame-TileScrollingPlatformer/total)A pygame implementation of the scratch
[ Tile Scrolling Platformer](https://www.youtube.com/watch?v=Fl-LX94Z4Cc&list=PLy4zsTUHwGJIc90UaTKd-wpIH12FCSoLh)
tutorial series from
[griffpatch](https://www.youtube.com/channel/UCawsI_mlmPA7Cfld-qZhBQA).![](img/viewport.png)
- [Original scratch project](https://scratch.mit.edu/projects/485855713/)
- [Griffpatch's Github](https://github.com/griffpatch)## The Why
Implementing this tutorial in python bring some interesting insights.
1 - The scratch system covers a lot of the underlying functionalities that
pygame will not have by default. Pygame does offer a bridge to the sdl2
development library, but not a scratch like custom management or neither their
sprite system. Some scratch bricks such as the `not` can be directly translated
into python without any trouble, however a lot of them actually needs complete
rethinking, for instance `when ... pressed`, or harder `create clone`
, `broadcast` and more...2 - Scratch have its own online ecosystem, and even throughout the amelioration
its has received, is still subject to hard limitation (global 300 clone limit,
fixed 4/3 screen size, low fps limit, etc...). Without these limitations, the
doors open to a new dimension of possibilities.3 - Griffpatch tutorial is really well-made and explained, and this pygame
implementation project will allow me to learn a lot about some game mechanics,
which will be useful for future games.## The How
For every episode of the series, a release will be created that includes an
executable (window 10 x64, you can still try with other Windows version or with
a program such as wine, but it will not be guaranteed to work at all).This will come along as a todo-like project with the feature of the episode that
will help to organize the project.As Explicit said, this is a rewrite in the Python Programing language. For more
precision tho, it will be written for the version 3.8.6 +, fully typed (typing
library), and following pep8 guidelines. To know about installed packages and
version, you can check the requirements.txt file.*contributions are welcome !*
## The when
This project might take a lot of times and progress slowly as this is far from
begin my main current project. however, todo-projects will be set, release made,
And you can watch the repo to stay tune about the updates !## Install (for devs)
*Makes sure to have the right python version first !*
1 - download the files from the repository
```git
git clone https://github.com/Sigmanificient/Pygame-TileScrollingPlatformer
```2 - Install the required packages in your python intepreter or venv
```py
python -m pip install requirements.txt
```3 - Runs the `main.py` module.
```py
python -m main.py
```### Building as an executable
1 - Install the required packages in your python intepreter or venv
```py
python -m pip install requirements-build.txt
```2 - Use the pyinstaller cli to build it
```py
pyinstaller -w --onefile main.py
```You'll get the executable from the `/dist` folder but it order to works,
you'll need to add the assets folder aside of it.
*Huge thanks to Griffpatch for this amazing series and his works !*