mjaun / android-anuto

Another ugly tower defense for Android
GNU General Public License v2.0
213 stars 68 forks source link

Game Speed 3 levels, 1-4-8 #162

Closed smarek closed 4 years ago

smarek commented 5 years ago

Honestly, in some situations I find 4x speed too slow for testing out strategies This patch cycles speeds on button press between 1x, 4x and 8x

m4rkusxxl commented 5 years ago

I dont know if some fixed values (1/4/8) are okay, to cycle through. (If you want to go to 1x from 4x you need to go over 8x?)

Maybe pop up a slider when pushing the button (pausing the game for the time it is displayed), where you can select a speed with the slider and the game proceeds with the selected speed when the slider is released?

Dont know if speed below 1x are neccessary? Is 8x enough? (Actually waves 140+ take a looong time at 4x already. 8x will just cut that time in half.)

smarek commented 5 years ago

@m4rkusxxl yes, i'm aware of that downside, however it should be pretty easy to replace the button source with settings, where you could pick up 2 or more speed values, and make chain such as 1,4,1,8 which wouldn't kick your butt in case you need to slow down the game, however clicking fast enough shouldn't be problem too, we're talking fractions of second to go from 4x to 1x over 8x

However, the solution in PR i proposed is fine with me, and if you want to propose another mechanism, your PR will be, i suppose, welcome :)

mjaun commented 4 years ago

Closing this one because a similar mechanism is included in #175. Sorry I did not get back to you. But thanks for your contribution anyway!