This is the beginning of a lightweight 2D platformer developed in C#, using the built-in GDI+ graphics API within Winforms.
The goal was to implement a robust sprite animation system, integrated with platforming mechanics such as movement, collision, and dynamic object handling.
- 🎮 Smooth sprite animations for walking, jumping, and attacking
- 🎯 Precise collision detection with platforms and screen boundaries
- 🛠️ In-game platform builder: create, move, and delete platforms or bushes at runtime
- 🌿 Interactive objects — bushes can be placed and struck with a lightning effect
- 🌧️ Toggleable rain effect via the build menu
- 🧩 Modular architecture for easy extension and maintenance
- Clone the repository with Git
- Open the '.sln' file in Visual Studio 2022
- Build the solution with Ctrl+Shift+B
- Run with debugging
Go to the Releases section to download a ZIP archive containing the compiled executable (for Windows 7 and above, x64-based).
- Sprite movement and animation consistency
- Platform collision from above and below
- Screen boundary enforcement
- Runtime object management (platforms and interactive elements)
- Level serialization and deserialization integrity
- (in French): https://sources-codes.commentcamarche.net/forum/affich-878141-comprend-pas-les-sprites
- Three basic steps for using DrawImage: https://docs.microsoft.com/en-us/dotnet/framework/winforms/advanced/how-to-render-images-with-gdi
Only royalty-free resources were used in this project.
If you find this project useful or inspiring, please consider starring the repository — much appreciated !