mirror of
https://github.com/BreizhHardware/project_sanic.git
synced 2026-05-09 08:15:51 +02:00
[PR #34] [MERGED] Dev felix #34
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#34
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/34
Author: @BreizhHardware
Created: 4/9/2025
Status: ✅ Merged
Merged: 4/9/2025
Merged by: @ClementHVT
Base:
dev← Head:dev_felix📝 Commits (5)
8ccae49Feat(Game Logic) - Add JumpBoost and SpeedBoost collectibles; implement collision handling for boosts, update player mechanics, and modify game state to support new collectible types.cd0ae07Feat(Game Logic) - Update player life system; increase max lives from 2 to 5 and current lives from 2 to 3, adjust life increment logic based on new max lives.1da4738Feat(Game Logic) - Enhance speedrun timer functionality; track total and collected items during gameplay, update leaderboard to display item collection stats, and modify coin collection logic to integrate with the speedrun timer.a76a713Feat(Game Logic) - Implement BackgroundManager for dynamic background handling; integrate into menu and leaderboard screens for enhanced visual experience.3e91e85Chore(Game Logic) - Update player life increment logic to respect max lives; fix typo in SpeedBoost collision handling method.📊 Changes
17 files changed (+598 additions, -137 deletions)
View changed files
📝
.gitignore(+3 -1)➕
assets/map/collectibles/jump.png(+0 -0)➕
assets/map/collectibles/speed.png(+0 -0)➕
assets/player/Sanic.gif(+0 -0)📝
map/levels/2.json(+16 -1)➕
src/Entity/JumpBoost.py(+112 -0)📝
src/Entity/Player.py(+122 -73)➕
src/Entity/SpeedBoost.py(+110 -0)📝
src/Map/Editor/LevelEditor.py(+5 -1)📝
src/Map/Speedrun/SpeedrunTimer.py(+7 -3)📝
src/Map/parser.py(+19 -0)➕
src/Menu/BackgroundManager.py(+45 -0)📝
src/Menu/Leaderboard.py(+84 -10)📝
src/Menu/LevelEditorSelectionMenu.py(+4 -0)📝
src/Menu/LevelSelectMenu.py(+4 -0)📝
src/Menu/Menu.py(+9 -39)📝
src/handler.py(+58 -9)📄 Description
This pull request introduces new collectible items, enhances player mechanics, and updates the game's menu and map parsing logic. The most important changes include adding jump and speed boost collectibles, updating the player class to handle these new collectibles, and modifying the map parser to recognize and place the new items.
New Collectibles:
src/Entity/JumpBoost.py: Added a newJumpBoostclass, which temporarily increases the player's jump power when collected.src/Entity/SpeedBoost.py: Added a newSpeedBoostclass, which temporarily increases the player's movement speed when collected.Player Enhancements:
src/Entity/Player.py: Updated the player class to include properties and methods for handling jump and speed boosts, including loading animations and handling collisions. [1] [2] [3] [4] [5] [6]Map and Collectibles:
map/levels/2.json: Added new jump and speed boost collectibles to the map.src/Map/parser.py: Updated the map parser to recognize and add the new jump and speed boost collectibles to the game. [1] [2]Menu Updates:
src/Menu/Menu.py: Updated the game menu to use English text for buttons and titles. [1] [2] [3] [4] [5]🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.