[PR #20] [MERGED] Dev felix #20

Closed
opened 2026-05-06 12:17:23 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/BreizhHardware/project_sanic/pull/20
Author: @BreizhHardware
Created: 4/3/2025
Status: Merged
Merged: 4/3/2025
Merged by: @ClementHVT

Base: devHead: dev_felix


📝 Commits (4)

  • ee54b5d Feat(Game Logic) - Refactor main game loop into a separate handler function for improved code organization and maintainability
  • 90b6c94 Feat(Level Design) - Update platform positions and add movement behavior; implement camera panning in LevelEditor for enhanced editing experience
  • d34b532 Feat(Infinite Mode) - Implement infinite level generation and management; add InfiniteMapGenerator and InfiniteMapManager for procedural map creation
  • 6368555 Update src/Map/Infinite/InfiniteMapManager.py

📊 Changes

16 files changed (+1261 additions, -679 deletions)

View changed files

Test.py (+0 -223)
assets/player/dead.jpg (+0 -0)
assets/sound/Death.mp3 (+0 -0)
📝 main.py (+2 -355)
map/infinite/2e9b8d03.json (+285 -0)
map/infinite/822377c7.json (+225 -0)
📝 map/levels/1.json (+2 -14)
📝 map/levels/2.json (+2 -14)
📝 map/levels/3.json (+9 -41)
📝 src/Map/Editor/LevelEditor.py (+53 -16)
src/Map/Infinite/InfiniteMapGenerator.py (+157 -0)
src/Map/Infinite/InfiniteMapManager.py (+81 -0)
📝 src/Map/parser.py (+0 -15)
📝 src/constant.py (+3 -0)
📝 src/game.py (+33 -1)
src/handler.py (+409 -0)

📄 Description

This pull request includes significant changes to the game codebase, primarily focusing on the removal of the Test.py file, the refactoring of the main.py file to use a new handler, and the addition of a new infinite level configuration.

Major Changes:

Codebase Cleanup:

  • Test.py: Removed the entire file, which included the player class, platform class, and the main game loop. This file was likely deprecated or redundant.

Refactoring:

  • main.py: Refactored to simplify the main game loop by moving the initialization and event handling logic to a new handler function. This change reduces the complexity of main.py and centralizes game logic.

New Features:

  • map/infinite/2e9b8d03.json: Added a new infinite level configuration, including platforms, enemies, checkpoints, exits, and collectibles. This level features various moving platforms and different types of collectibles, enhancing the gameplay experience.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BreizhHardware/project_sanic/pull/20 **Author:** [@BreizhHardware](https://github.com/BreizhHardware) **Created:** 4/3/2025 **Status:** ✅ Merged **Merged:** 4/3/2025 **Merged by:** [@ClementHVT](https://github.com/ClementHVT) **Base:** `dev` ← **Head:** `dev_felix` --- ### 📝 Commits (4) - [`ee54b5d`](https://github.com/BreizhHardware/project_sanic/commit/ee54b5d272d5b3cec0b1d879cdecf8ecc98bad44) Feat(Game Logic) - Refactor main game loop into a separate handler function for improved code organization and maintainability - [`90b6c94`](https://github.com/BreizhHardware/project_sanic/commit/90b6c948eb11567f25440bff6d5f879f2035f0a4) Feat(Level Design) - Update platform positions and add movement behavior; implement camera panning in LevelEditor for enhanced editing experience - [`d34b532`](https://github.com/BreizhHardware/project_sanic/commit/d34b5324dc97ae587fc0b3d72cea206cfc2ce8a6) Feat(Infinite Mode) - Implement infinite level generation and management; add InfiniteMapGenerator and InfiniteMapManager for procedural map creation - [`6368555`](https://github.com/BreizhHardware/project_sanic/commit/6368555e8cbf8dac1c5c32b25070db2e0c8e6fb1) Update src/Map/Infinite/InfiniteMapManager.py ### 📊 Changes **16 files changed** (+1261 additions, -679 deletions) <details> <summary>View changed files</summary> ➖ `Test.py` (+0 -223) ➕ `assets/player/dead.jpg` (+0 -0) ➕ `assets/sound/Death.mp3` (+0 -0) 📝 `main.py` (+2 -355) ➕ `map/infinite/2e9b8d03.json` (+285 -0) ➕ `map/infinite/822377c7.json` (+225 -0) 📝 `map/levels/1.json` (+2 -14) 📝 `map/levels/2.json` (+2 -14) 📝 `map/levels/3.json` (+9 -41) 📝 `src/Map/Editor/LevelEditor.py` (+53 -16) ➕ `src/Map/Infinite/InfiniteMapGenerator.py` (+157 -0) ➕ `src/Map/Infinite/InfiniteMapManager.py` (+81 -0) 📝 `src/Map/parser.py` (+0 -15) 📝 `src/constant.py` (+3 -0) 📝 `src/game.py` (+33 -1) ➕ `src/handler.py` (+409 -0) </details> ### 📄 Description This pull request includes significant changes to the game codebase, primarily focusing on the removal of the `Test.py` file, the refactoring of the `main.py` file to use a new handler, and the addition of a new infinite level configuration. ### Major Changes: #### Codebase Cleanup: * [`Test.py`](diffhunk://#diff-d1100ca3d28266f46ca4ed3eb199e43681ce1f9f89b297c3b28af3508195bd15L1-L223): Removed the entire file, which included the player class, platform class, and the main game loop. This file was likely deprecated or redundant. #### Refactoring: * [`main.py`](diffhunk://#diff-b10564ab7d2c520cdd0243874879fb0a782862c3c902ab535faabe57d5a505e1L1-R5): Refactored to simplify the main game loop by moving the initialization and event handling logic to a new `handler` function. This change reduces the complexity of `main.py` and centralizes game logic. #### New Features: * [`map/infinite/2e9b8d03.json`](diffhunk://#diff-4676786120b357bfa2dcd49f6bf8906110e2c88279f20bdaffa0af501a0fcb11R1-R285): Added a new infinite level configuration, including platforms, enemies, checkpoints, exits, and collectibles. This level features various moving platforms and different types of collectibles, enhancing the gameplay experience. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 12:17:23 +02:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BreizhHardware/project_sanic#20
No description provided.