mirror of
https://github.com/BreizhHardware/project_sanic.git
synced 2026-05-09 08:15:51 +02:00
[PR #35] [MERGED] Fix(Player) - Initialize pygame mixer for sound handling; add error h… #35
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#35
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/35
Author: @BreizhHardware
Created: 4/9/2025
Status: ✅ Merged
Merged: 4/9/2025
Merged by: @ClementHVT
Base:
dev← Head:dev_felix📝 Commits (2)
2fbeaafFix(Player) - Initialize pygame mixer for sound handling; add error handling for jump sound playback.6e4f753Update src/Entity/Player.py📊 Changes
1 file changed (+8 additions, -2 deletions)
View changed files
📝
src/Entity/Player.py(+8 -2)📄 Description
This pull request includes changes to the
Playerclass in thesrc/Entity/Player.pyfile to add sound functionality using thepygamemixer. The most important changes include initializing the mixer in the constructor and adding error handling for playing the jump sound.Sound functionality improvements:
src/Entity/Player.py: Initialized thepygamemixer in the__init__method to enable sound playback.src/Entity/Player.py: Added error handling in themovemethod to catch exceptions when playing the jump sound and print an error message.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.