mirror of
https://github.com/BreizhHardware/project_sanic.git
synced 2026-05-09 08:15:51 +02:00
[PR #20] [MERGED] Dev felix #20
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
BreizhHardware/project_sanic#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
dev← Head:dev_felix📝 Commits (4)
ee54b5dFeat(Game Logic) - Refactor main game loop into a separate handler function for improved code organization and maintainability90b6c94Feat(Level Design) - Update platform positions and add movement behavior; implement camera panning in LevelEditor for enhanced editing experienced34b532Feat(Infinite Mode) - Implement infinite level generation and management; add InfiniteMapGenerator and InfiniteMapManager for procedural map creation6368555Update 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.pyfile, the refactoring of themain.pyfile 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 newhandlerfunction. This change reduces the complexity ofmain.pyand 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.