| Summary: | Can not change the difficulty level after starting the first game | ||
|---|---|---|---|
| Product: | [Applications] kbounce | Reporter: | André Marcelo Alvarenga <alvarenga> |
| Component: | general | Assignee: | Roney Gomes <roney477> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kde-games-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 0.11 | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/kbounce/886a6153f1e5d9fce91c4180ba1f6bc45586048d | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
André Marcelo Alvarenga
2012-10-23 18:04:15 UTC
A patch to solve this bug has already been made and it's just waiting for revision on Review Board. Git commit 886a6153f1e5d9fce91c4180ba1f6bc45586048d by Roney Gomes. Committed on 10/12/2012 at 01:03. Pushed by roneygomes into branch 'master'. Allows the player to change game difficulty at any time. The KBounceGameWidget::setGameDifficulty() method has been created based on the old version of the levelChanged() slot and is responsible for increasing or decreasing balls' and walls' velocity. In the other hand, levelChanged's new version reacts to the user input making calls to setGameDifficulty() starting a new game when required. The point is to make methods follow the single responsibility model, making things easy to understand and maintain. REVIEW: 107084 M +13 -3 gamewidget.cpp M +2 -1 gamewidget.h M +0 -2 mainwindow.cpp http://commits.kde.org/kbounce/886a6153f1e5d9fce91c4180ba1f6bc45586048d Git commit 886a6153f1e5d9fce91c4180ba1f6bc45586048d by Roney Gomes. Committed on 10/12/2012 at 01:03. Pushed by roneygomes into branch 'master'. Allows the player to change game difficulty at any time. The KBounceGameWidget::setGameDifficulty() method has been created based on the old version of the levelChanged() slot and is responsible for increasing or decreasing balls' and walls' velocity. In the other hand, levelChanged's new version reacts to the user input making calls to setGameDifficulty() starting a new game when required. The point is to make methods follow the single responsibility model, making things easy to understand and maintain. REVIEW: 107084 M +13 -3 gamewidget.cpp M +2 -1 gamewidget.h M +0 -2 mainwindow.cpp http://commits.kde.org/kbounce/886a6153f1e5d9fce91c4180ba1f6bc45586048d Won't be backported to 4.9.4 due conflicts with master. The code has changed a lot in the last months since the porting to the QGraphicsView and KgSounde frameworks and wouldn't be possible to make this fix available without a merge. |