mirror of
https://github.com/BreizhHardware/project_sanic.git
synced 2026-05-09 08:15:51 +02:00
[PR #43] [MERGED] Dev to main quasi final (normalement) #43
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#43
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/43
Author: @BreizhHardware
Created: 4/10/2025
Status: ✅ Merged
Merged: 4/10/2025
Merged by: @ClementHVT
Base:
main← Head:dev📝 Commits (10+)
1478360Feat(FloatingText) - Implement FloatingText class for displaying temporary messages; update player to manage and draw floating texts on screen; enhance error messages in constant.py and improve code readability.bf17cc7Fix(Enemy) - Correct indentation for player.add_projectiles() call to ensure proper execution flow in event handling.692504dRefactor(Player) - Remove draw_floating_text method and its call in update; streamline floating text management for improved performance.c59fea3Fix(Handler) - Correct parallax effect calculations for background positioning; ensure seamless background movement in all directions.9451e79Feat(Cinematic) - Add Cinematic class for level 1 storytelling; integrate cinematic playback into map loading process and remove redundant cinematic method from MapParser.ed86161Feat(Cinematic) - Update play_cinematic method to accept level name; ensure cinematic plays only for Level 1 and improve event handling during playback.49d69d2Merge pull request #41 from BreizhHardware/dev_felix722719eFeat(Cinematic) - Enhance cinematic playback by allowing multiple levels; refactor play_cinematic method to track played cinematics and improve text display functionality.178074aFix(.gitignore) - Add pycache directory to ignore list; ensure Python cache files are excluded from version control.d617e82Update src/Map/cinematic.py📊 Changes
52 files changed (+1496 additions, -288 deletions)
View changed files
➕
.DS_Store(+0 -0)📝
.gitignore(+2 -1)➕
assets/.DS_Store(+0 -0)➕
assets/map/.DS_Store(+0 -0)➕
assets/map/background/.DS_Store(+0 -0)➕
assets/map/enemy/.DS_Store(+0 -0)➕
assets/map/platform/.DS_Store(+0 -0)➕
assets/player/.DS_Store(+0 -0)➕
assets/sound/execuse_me.mp3(+0 -0)📝
map/levels/1.json(+2 -2)📝
map/levels/2.json(+3 -3)📝
map/levels/3.json(+875 -24)📝
map_test.json(+13 -0)➕
src/.DS_Store(+0 -0)📝
src/Database/CheckpointDB.py(+1 -1)📝
src/Database/__pycache__/CheckpointDB.cpython-313.pyc(+0 -0)📝
src/Database/__pycache__/InfiniteModeDB.cpython-313.pyc(+0 -0)📝
src/Database/__pycache__/LeaderboardDB.cpython-313.pyc(+0 -0)📝
src/Database/__pycache__/LevelDB.cpython-313.pyc(+0 -0)📝
src/Entity/Enemy.py(+36 -9)...and 32 more files
📄 Description
This pull request includes several changes to enhance the game's functionality, including the addition of floating text for player actions, the implementation of a cinematic class, and various code improvements. The most important changes are summarized below:
New Features:
Floating Text for Player Actions:
FloatingTextclass to display floating text when the player performs certain actions, such as gaining projectiles. (src/Entity/FloatingText.py)FloatingTextinto thePlayerclass, including initialization and update methods. (src/Entity/Player.py) [1] [2] [3]Cinematic Class Implementation:
Cinematicclass to handle game cinematics, including resource loading and display logic. (src/Map/cinematic.py)MapParserto use the newCinematicclass for playing cinematics based on the level. (src/Map/parser.py) [1] [2] [3] [4]Code Improvements:
Database Checkpoint Adjustment:
save_checkpointmethod to adjust thepos_yvalue by adding 100 before saving. (src/Database/CheckpointDB.py)Code Cleanup and Refactoring:
osinEnemy.py. (src/Entity/Enemy.py)draw_background. (src/handler.py)src/handler.py)Minor Fixes:
constant.py. (src/constant.py)handle_death_screenandhandler. (src/handler.py) [1] [2]🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.